/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 mbed official

Committer:
bogdanm
Date:
Wed Jun 11 15:14:05 2014 +0100
Revision:
85:024bf7f99721
Parent:
84:0b3ab51c8877
Release 85 of the mbed library

Main changes:

- K64F Ethernet fixes
- Updated tests
- Fixes for various mbed targets
- Code cleanup: fixed warnings, more consistent code style
- GCC support for K64F

There is a known issue with the I2C interface on some ST targets. If you
find the I2C interface problematic on your ST board, please log a bug
against this on mbed.org.

Who changed what in which revision?

UserRevisionLine numberNew 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 85:024bf7f99721 44 LPC_USART4_Type *mini_uart;
bogdanm 84:0b3ab51c8877 45 unsigned char index;
bogdanm 84:0b3ab51c8877 46 };
bogdanm 84:0b3ab51c8877 47 #endif
bogdanm 84:0b3ab51c8877 48
bogdanm 84:0b3ab51c8877 49 #if DEVICE_ANALOGIN
bogdanm 84:0b3ab51c8877 50 struct analogin_s {
bogdanm 84:0b3ab51c8877 51 ADCName adc;
bogdanm 84:0b3ab51c8877 52 };
bogdanm 84:0b3ab51c8877 53 #endif
bogdanm 84:0b3ab51c8877 54
bogdanm 84:0b3ab51c8877 55 #if DEVICE_ANALOGOUT
bogdanm 84:0b3ab51c8877 56 struct dac_s {
bogdanm 84:0b3ab51c8877 57 DACName dac;
bogdanm 84:0b3ab51c8877 58 };
bogdanm 84:0b3ab51c8877 59 #endif
bogdanm 84:0b3ab51c8877 60
bogdanm 84:0b3ab51c8877 61 #if DEVICE_I2C
bogdanm 84:0b3ab51c8877 62 struct i2c_s {
bogdanm 84:0b3ab51c8877 63 LPC_I2C0_Type *i2c;
bogdanm 84:0b3ab51c8877 64 };
bogdanm 84:0b3ab51c8877 65 #endif
bogdanm 84:0b3ab51c8877 66
bogdanm 84:0b3ab51c8877 67 #if DEVICE_SPI
bogdanm 84:0b3ab51c8877 68 struct spi_s {
bogdanm 84:0b3ab51c8877 69 LPC_SSP0_Type *spi;
bogdanm 84:0b3ab51c8877 70 unsigned char spi_n;
bogdanm 84:0b3ab51c8877 71 };
bogdanm 84:0b3ab51c8877 72 #endif
bogdanm 84:0b3ab51c8877 73
bogdanm 84:0b3ab51c8877 74 #include "gpio_object.h"
bogdanm 84:0b3ab51c8877 75
bogdanm 84:0b3ab51c8877 76 #ifdef __cplusplus
bogdanm 84:0b3ab51c8877 77 }
bogdanm 84:0b3ab51c8877 78 #endif
bogdanm 84:0b3ab51c8877 79
bogdanm 84:0b3ab51c8877 80 #endif