mbed library

Dependents:   Printf

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Fri Sep 12 16:41:52 2014 +0100
Revision:
89:552587b429a1
Parent:
TARGET_GHI_MBUINO/TARGET_NXP/TARGET_LPC11UXX/objects.h@88:9327015d4013
Release 89 of the mbed library

Main changes:

- low power optimizations for Nordic targets
- code structure changes for Freescale K64F targets
- bug fixes in various backends

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 88:9327015d4013 1 /* mbed Microcontroller Library
bogdanm 88:9327015d4013 2 * Copyright (c) 2006-2013 ARM Limited
bogdanm 88:9327015d4013 3 *
bogdanm 88:9327015d4013 4 * Licensed under the Apache License, Version 2.0 (the "License");
bogdanm 88:9327015d4013 5 * you may not use this file except in compliance with the License.
bogdanm 88:9327015d4013 6 * You may obtain a copy of the License at
bogdanm 88:9327015d4013 7 *
bogdanm 88:9327015d4013 8 * http://www.apache.org/licenses/LICENSE-2.0
bogdanm 88:9327015d4013 9 *
bogdanm 88:9327015d4013 10 * Unless required by applicable law or agreed to in writing, software
bogdanm 88:9327015d4013 11 * distributed under the License is distributed on an "AS IS" BASIS,
bogdanm 88:9327015d4013 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
bogdanm 88:9327015d4013 13 * See the License for the specific language governing permissions and
bogdanm 88:9327015d4013 14 * limitations under the License.
bogdanm 88:9327015d4013 15 */
bogdanm 88:9327015d4013 16 #ifndef MBED_OBJECTS_H
bogdanm 88:9327015d4013 17 #define MBED_OBJECTS_H
bogdanm 88:9327015d4013 18
bogdanm 88:9327015d4013 19 #include "cmsis.h"
bogdanm 88:9327015d4013 20 #include "PortNames.h"
bogdanm 88:9327015d4013 21 #include "PeripheralNames.h"
bogdanm 88:9327015d4013 22 #include "PinNames.h"
bogdanm 88:9327015d4013 23
bogdanm 88:9327015d4013 24 #ifdef __cplusplus
bogdanm 88:9327015d4013 25 extern "C" {
bogdanm 88:9327015d4013 26 #endif
bogdanm 88:9327015d4013 27
bogdanm 88:9327015d4013 28 struct gpio_irq_s {
bogdanm 88:9327015d4013 29 uint32_t ch;
bogdanm 88:9327015d4013 30 };
bogdanm 88:9327015d4013 31
bogdanm 88:9327015d4013 32 struct port_s {
bogdanm 88:9327015d4013 33 __IO uint32_t *reg_dir;
bogdanm 88:9327015d4013 34 __IO uint32_t *reg_mpin;
bogdanm 88:9327015d4013 35 PortName port;
bogdanm 88:9327015d4013 36 uint32_t mask;
bogdanm 88:9327015d4013 37 };
bogdanm 88:9327015d4013 38
bogdanm 88:9327015d4013 39 struct pwmout_s {
bogdanm 88:9327015d4013 40 PWMName pwm;
bogdanm 88:9327015d4013 41 };
bogdanm 88:9327015d4013 42
bogdanm 88:9327015d4013 43 struct serial_s {
bogdanm 88:9327015d4013 44 LPC_USART_Type *uart;
bogdanm 88:9327015d4013 45 int index;
bogdanm 88:9327015d4013 46 };
bogdanm 88:9327015d4013 47
bogdanm 88:9327015d4013 48 struct analogin_s {
bogdanm 88:9327015d4013 49 ADCName adc;
bogdanm 88:9327015d4013 50 };
bogdanm 88:9327015d4013 51
bogdanm 88:9327015d4013 52 struct i2c_s {
bogdanm 88:9327015d4013 53 LPC_I2C_Type *i2c;
bogdanm 88:9327015d4013 54 };
bogdanm 88:9327015d4013 55
bogdanm 88:9327015d4013 56 struct spi_s {
bogdanm 88:9327015d4013 57 LPC_SSPx_Type *spi;
bogdanm 88:9327015d4013 58 };
bogdanm 88:9327015d4013 59
bogdanm 88:9327015d4013 60 #include "gpio_object.h"
bogdanm 88:9327015d4013 61
bogdanm 88:9327015d4013 62 #ifdef __cplusplus
bogdanm 88:9327015d4013 63 }
bogdanm 88:9327015d4013 64 #endif
bogdanm 88:9327015d4013 65
bogdanm 88:9327015d4013 66 #endif