mbed library sources change for ST sensors and ST BLE
Fork of mbed-src by
targets/hal/TARGET_NXP/TARGET_LPC11U6X/objects.h@636:83ea0d2b909b, 2016-04-14 (annotated)
- Committer:
- NickZhouARM
- Date:
- Thu Apr 14 07:07:44 2016 +0000
- Revision:
- 636:83ea0d2b909b
- Parent:
- 220:aa774fb95d17
Working version for ST BLE + Sensors
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 174:8bb9f3a33240 | 1 | /* mbed Microcontroller Library |
mbed_official | 174:8bb9f3a33240 | 2 | * Copyright (c) 2006-2013 ARM Limited |
mbed_official | 174:8bb9f3a33240 | 3 | * |
mbed_official | 174:8bb9f3a33240 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mbed_official | 174:8bb9f3a33240 | 5 | * you may not use this file except in compliance with the License. |
mbed_official | 174:8bb9f3a33240 | 6 | * You may obtain a copy of the License at |
mbed_official | 174:8bb9f3a33240 | 7 | * |
mbed_official | 174:8bb9f3a33240 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mbed_official | 174:8bb9f3a33240 | 9 | * |
mbed_official | 174:8bb9f3a33240 | 10 | * Unless required by applicable law or agreed to in writing, software |
mbed_official | 174:8bb9f3a33240 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 174:8bb9f3a33240 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 174:8bb9f3a33240 | 13 | * See the License for the specific language governing permissions and |
mbed_official | 174:8bb9f3a33240 | 14 | * limitations under the License. |
mbed_official | 174:8bb9f3a33240 | 15 | */ |
mbed_official | 174:8bb9f3a33240 | 16 | #ifndef MBED_OBJECTS_H |
mbed_official | 174:8bb9f3a33240 | 17 | #define MBED_OBJECTS_H |
mbed_official | 174:8bb9f3a33240 | 18 | |
mbed_official | 174:8bb9f3a33240 | 19 | #include "cmsis.h" |
mbed_official | 174:8bb9f3a33240 | 20 | #include "PortNames.h" |
mbed_official | 174:8bb9f3a33240 | 21 | #include "PeripheralNames.h" |
mbed_official | 174:8bb9f3a33240 | 22 | #include "PinNames.h" |
mbed_official | 174:8bb9f3a33240 | 23 | |
mbed_official | 174:8bb9f3a33240 | 24 | #ifdef __cplusplus |
mbed_official | 174:8bb9f3a33240 | 25 | extern "C" { |
mbed_official | 174:8bb9f3a33240 | 26 | #endif |
mbed_official | 174:8bb9f3a33240 | 27 | |
mbed_official | 174:8bb9f3a33240 | 28 | #if DEVICE_INTERRUPTIN |
mbed_official | 174:8bb9f3a33240 | 29 | struct gpio_irq_s { |
mbed_official | 174:8bb9f3a33240 | 30 | uint32_t ch; |
mbed_official | 174:8bb9f3a33240 | 31 | }; |
mbed_official | 174:8bb9f3a33240 | 32 | #endif |
mbed_official | 174:8bb9f3a33240 | 33 | |
mbed_official | 174:8bb9f3a33240 | 34 | #if DEVICE_PWMOUT |
mbed_official | 174:8bb9f3a33240 | 35 | struct pwmout_s { |
mbed_official | 174:8bb9f3a33240 | 36 | LPC_SCT0_Type* pwm; |
mbed_official | 174:8bb9f3a33240 | 37 | uint32_t pwm_ch; |
mbed_official | 174:8bb9f3a33240 | 38 | }; |
mbed_official | 174:8bb9f3a33240 | 39 | #endif |
mbed_official | 174:8bb9f3a33240 | 40 | |
mbed_official | 174:8bb9f3a33240 | 41 | #if DEVICE_SERIAL |
mbed_official | 174:8bb9f3a33240 | 42 | struct serial_s { |
mbed_official | 174:8bb9f3a33240 | 43 | LPC_USART0_Type *uart; |
mbed_official | 220:aa774fb95d17 | 44 | LPC_USART4_Type *mini_uart; |
mbed_official | 174:8bb9f3a33240 | 45 | unsigned char index; |
mbed_official | 174:8bb9f3a33240 | 46 | }; |
mbed_official | 174:8bb9f3a33240 | 47 | #endif |
mbed_official | 174:8bb9f3a33240 | 48 | |
mbed_official | 174:8bb9f3a33240 | 49 | #if DEVICE_ANALOGIN |
mbed_official | 174:8bb9f3a33240 | 50 | struct analogin_s { |
mbed_official | 174:8bb9f3a33240 | 51 | ADCName adc; |
mbed_official | 174:8bb9f3a33240 | 52 | }; |
mbed_official | 174:8bb9f3a33240 | 53 | #endif |
mbed_official | 174:8bb9f3a33240 | 54 | |
mbed_official | 174:8bb9f3a33240 | 55 | #if DEVICE_ANALOGOUT |
mbed_official | 174:8bb9f3a33240 | 56 | struct dac_s { |
mbed_official | 174:8bb9f3a33240 | 57 | DACName dac; |
mbed_official | 174:8bb9f3a33240 | 58 | }; |
mbed_official | 174:8bb9f3a33240 | 59 | #endif |
mbed_official | 174:8bb9f3a33240 | 60 | |
mbed_official | 174:8bb9f3a33240 | 61 | #if DEVICE_I2C |
mbed_official | 174:8bb9f3a33240 | 62 | struct i2c_s { |
mbed_official | 174:8bb9f3a33240 | 63 | LPC_I2C0_Type *i2c; |
mbed_official | 174:8bb9f3a33240 | 64 | }; |
mbed_official | 174:8bb9f3a33240 | 65 | #endif |
mbed_official | 174:8bb9f3a33240 | 66 | |
mbed_official | 174:8bb9f3a33240 | 67 | #if DEVICE_SPI |
mbed_official | 174:8bb9f3a33240 | 68 | struct spi_s { |
mbed_official | 174:8bb9f3a33240 | 69 | LPC_SSP0_Type *spi; |
mbed_official | 174:8bb9f3a33240 | 70 | unsigned char spi_n; |
mbed_official | 174:8bb9f3a33240 | 71 | }; |
mbed_official | 174:8bb9f3a33240 | 72 | #endif |
mbed_official | 174:8bb9f3a33240 | 73 | |
mbed_official | 174:8bb9f3a33240 | 74 | #include "gpio_object.h" |
mbed_official | 174:8bb9f3a33240 | 75 | |
mbed_official | 174:8bb9f3a33240 | 76 | #ifdef __cplusplus |
mbed_official | 174:8bb9f3a33240 | 77 | } |
mbed_official | 174:8bb9f3a33240 | 78 | #endif |
mbed_official | 174:8bb9f3a33240 | 79 | |
mbed_official | 174:8bb9f3a33240 | 80 | #endif |