/TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/adc/fsl_adc_hal.h substitute line 894 extern } by }
Fork of mbed by
TARGET_LPC11U68/TARGET_NXP/TARGET_LPC11U6X/objects.h@84:0b3ab51c8877, 2014-05-19 (annotated)
- Committer:
- bogdanm
- Date:
- Mon May 19 18:14:09 2014 +0100
- Revision:
- 84:0b3ab51c8877
- Child:
- 85:024bf7f99721
Release 84 of the mbed library
Main changes:
- added LPC11U68 to the official build
- Bug fixes and new features for ST Nucleo boards
- I2C fixes for Freescale targets
- Added nRF51822 exporters
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 84:0b3ab51c8877 | 1 | /* mbed Microcontroller Library |
bogdanm | 84:0b3ab51c8877 | 2 | * Copyright (c) 2006-2013 ARM Limited |
bogdanm | 84:0b3ab51c8877 | 3 | * |
bogdanm | 84:0b3ab51c8877 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
bogdanm | 84:0b3ab51c8877 | 5 | * you may not use this file except in compliance with the License. |
bogdanm | 84:0b3ab51c8877 | 6 | * You may obtain a copy of the License at |
bogdanm | 84:0b3ab51c8877 | 7 | * |
bogdanm | 84:0b3ab51c8877 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
bogdanm | 84:0b3ab51c8877 | 9 | * |
bogdanm | 84:0b3ab51c8877 | 10 | * Unless required by applicable law or agreed to in writing, software |
bogdanm | 84:0b3ab51c8877 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
bogdanm | 84:0b3ab51c8877 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
bogdanm | 84:0b3ab51c8877 | 13 | * See the License for the specific language governing permissions and |
bogdanm | 84:0b3ab51c8877 | 14 | * limitations under the License. |
bogdanm | 84:0b3ab51c8877 | 15 | */ |
bogdanm | 84:0b3ab51c8877 | 16 | #ifndef MBED_OBJECTS_H |
bogdanm | 84:0b3ab51c8877 | 17 | #define MBED_OBJECTS_H |
bogdanm | 84:0b3ab51c8877 | 18 | |
bogdanm | 84:0b3ab51c8877 | 19 | #include "cmsis.h" |
bogdanm | 84:0b3ab51c8877 | 20 | #include "PortNames.h" |
bogdanm | 84:0b3ab51c8877 | 21 | #include "PeripheralNames.h" |
bogdanm | 84:0b3ab51c8877 | 22 | #include "PinNames.h" |
bogdanm | 84:0b3ab51c8877 | 23 | |
bogdanm | 84:0b3ab51c8877 | 24 | #ifdef __cplusplus |
bogdanm | 84:0b3ab51c8877 | 25 | extern "C" { |
bogdanm | 84:0b3ab51c8877 | 26 | #endif |
bogdanm | 84:0b3ab51c8877 | 27 | |
bogdanm | 84:0b3ab51c8877 | 28 | #if DEVICE_INTERRUPTIN |
bogdanm | 84:0b3ab51c8877 | 29 | struct gpio_irq_s { |
bogdanm | 84:0b3ab51c8877 | 30 | uint32_t ch; |
bogdanm | 84:0b3ab51c8877 | 31 | }; |
bogdanm | 84:0b3ab51c8877 | 32 | #endif |
bogdanm | 84:0b3ab51c8877 | 33 | |
bogdanm | 84:0b3ab51c8877 | 34 | #if DEVICE_PWMOUT |
bogdanm | 84:0b3ab51c8877 | 35 | struct pwmout_s { |
bogdanm | 84:0b3ab51c8877 | 36 | LPC_SCT0_Type* pwm; |
bogdanm | 84:0b3ab51c8877 | 37 | uint32_t pwm_ch; |
bogdanm | 84:0b3ab51c8877 | 38 | }; |
bogdanm | 84:0b3ab51c8877 | 39 | #endif |
bogdanm | 84:0b3ab51c8877 | 40 | |
bogdanm | 84:0b3ab51c8877 | 41 | #if DEVICE_SERIAL |
bogdanm | 84:0b3ab51c8877 | 42 | struct serial_s { |
bogdanm | 84:0b3ab51c8877 | 43 | LPC_USART0_Type *uart; |
bogdanm | 84:0b3ab51c8877 | 44 | unsigned char index; |
bogdanm | 84:0b3ab51c8877 | 45 | }; |
bogdanm | 84:0b3ab51c8877 | 46 | #endif |
bogdanm | 84:0b3ab51c8877 | 47 | |
bogdanm | 84:0b3ab51c8877 | 48 | #if DEVICE_ANALOGIN |
bogdanm | 84:0b3ab51c8877 | 49 | struct analogin_s { |
bogdanm | 84:0b3ab51c8877 | 50 | ADCName adc; |
bogdanm | 84:0b3ab51c8877 | 51 | }; |
bogdanm | 84:0b3ab51c8877 | 52 | #endif |
bogdanm | 84:0b3ab51c8877 | 53 | |
bogdanm | 84:0b3ab51c8877 | 54 | #if DEVICE_ANALOGOUT |
bogdanm | 84:0b3ab51c8877 | 55 | struct dac_s { |
bogdanm | 84:0b3ab51c8877 | 56 | DACName dac; |
bogdanm | 84:0b3ab51c8877 | 57 | }; |
bogdanm | 84:0b3ab51c8877 | 58 | #endif |
bogdanm | 84:0b3ab51c8877 | 59 | |
bogdanm | 84:0b3ab51c8877 | 60 | #if DEVICE_I2C |
bogdanm | 84:0b3ab51c8877 | 61 | struct i2c_s { |
bogdanm | 84:0b3ab51c8877 | 62 | LPC_I2C0_Type *i2c; |
bogdanm | 84:0b3ab51c8877 | 63 | }; |
bogdanm | 84:0b3ab51c8877 | 64 | #endif |
bogdanm | 84:0b3ab51c8877 | 65 | |
bogdanm | 84:0b3ab51c8877 | 66 | #if DEVICE_SPI |
bogdanm | 84:0b3ab51c8877 | 67 | struct spi_s { |
bogdanm | 84:0b3ab51c8877 | 68 | LPC_SSP0_Type *spi; |
bogdanm | 84:0b3ab51c8877 | 69 | unsigned char spi_n; |
bogdanm | 84:0b3ab51c8877 | 70 | }; |
bogdanm | 84:0b3ab51c8877 | 71 | #endif |
bogdanm | 84:0b3ab51c8877 | 72 | |
bogdanm | 84:0b3ab51c8877 | 73 | #include "gpio_object.h" |
bogdanm | 84:0b3ab51c8877 | 74 | |
bogdanm | 84:0b3ab51c8877 | 75 | #ifdef __cplusplus |
bogdanm | 84:0b3ab51c8877 | 76 | } |
bogdanm | 84:0b3ab51c8877 | 77 | #endif |
bogdanm | 84:0b3ab51c8877 | 78 | |
bogdanm | 84:0b3ab51c8877 | 79 | #endif |