mbed library sources change for ST sensors and ST BLE

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Fri May 16 09:00:06 2014 +0100
Revision:
193:cff126de7aaf
Parent:
186:2e805bf06ee4
Synchronized with git revision 71a478f780d9221934b90eab64a2c789ba8e51fb

Full URL: https://github.com/mbedmicro/mbed/commit/71a478f780d9221934b90eab64a2c789ba8e51fb/

[LPC11U68] PwmOut and USBDevice support

Who changed what in which revision?

UserRevisionLine numberNew 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_PERIPHERALNAMES_H
mbed_official 174:8bb9f3a33240 17 #define MBED_PERIPHERALNAMES_H
mbed_official 174:8bb9f3a33240 18
mbed_official 174:8bb9f3a33240 19 #include "cmsis.h"
mbed_official 174:8bb9f3a33240 20
mbed_official 174:8bb9f3a33240 21 #ifdef __cplusplus
mbed_official 174:8bb9f3a33240 22 extern "C" {
mbed_official 174:8bb9f3a33240 23 #endif
mbed_official 174:8bb9f3a33240 24
mbed_official 174:8bb9f3a33240 25 typedef enum {
mbed_official 174:8bb9f3a33240 26 UART_0 = (int)LPC_USART0_BASE,
mbed_official 174:8bb9f3a33240 27 UART_1 = (int)LPC_USART1_BASE,
mbed_official 174:8bb9f3a33240 28 UART_2 = (int)LPC_USART2_BASE,
mbed_official 174:8bb9f3a33240 29 UART_3 = (int)LPC_USART3_BASE,
mbed_official 174:8bb9f3a33240 30 UART_4 = (int)LPC_USART4_BASE,
mbed_official 174:8bb9f3a33240 31 } UARTName;
mbed_official 174:8bb9f3a33240 32
mbed_official 174:8bb9f3a33240 33 typedef enum {
mbed_official 186:2e805bf06ee4 34 ADC_0 = 0,
mbed_official 186:2e805bf06ee4 35 ADC_1,
mbed_official 186:2e805bf06ee4 36 ADC_2,
mbed_official 186:2e805bf06ee4 37 ADC_3,
mbed_official 186:2e805bf06ee4 38 ADC_4,
mbed_official 186:2e805bf06ee4 39 ADC_5,
mbed_official 186:2e805bf06ee4 40 ADC_6,
mbed_official 186:2e805bf06ee4 41 ADC_7,
mbed_official 186:2e805bf06ee4 42 ADC_8,
mbed_official 186:2e805bf06ee4 43 ADC_9,
mbed_official 186:2e805bf06ee4 44 ADC_10,
mbed_official 186:2e805bf06ee4 45 ADC_11,
mbed_official 174:8bb9f3a33240 46 } ADCName;
mbed_official 174:8bb9f3a33240 47
mbed_official 174:8bb9f3a33240 48 typedef enum {
mbed_official 174:8bb9f3a33240 49 SPI_0 = (int)LPC_SSP0_BASE,
mbed_official 174:8bb9f3a33240 50 SPI_1 = (int)LPC_SSP1_BASE
mbed_official 174:8bb9f3a33240 51 } SPIName;
mbed_official 174:8bb9f3a33240 52
mbed_official 174:8bb9f3a33240 53 typedef enum {
mbed_official 174:8bb9f3a33240 54 I2C_0 = (int)LPC_I2C0_BASE,
mbed_official 174:8bb9f3a33240 55 I2C_1 = (int)LPC_I2C1_BASE
mbed_official 174:8bb9f3a33240 56 } I2CName;
mbed_official 174:8bb9f3a33240 57
mbed_official 193:cff126de7aaf 58 typedef enum {
mbed_official 193:cff126de7aaf 59 SCT0_0 = 0,
mbed_official 193:cff126de7aaf 60 SCT0_1,
mbed_official 193:cff126de7aaf 61 SCT0_2,
mbed_official 193:cff126de7aaf 62 SCT0_3,
mbed_official 193:cff126de7aaf 63 SCT1_0,
mbed_official 193:cff126de7aaf 64 SCT1_1,
mbed_official 193:cff126de7aaf 65 SCT1_2,
mbed_official 193:cff126de7aaf 66 SCT1_3,
mbed_official 193:cff126de7aaf 67 } PWMName;
mbed_official 174:8bb9f3a33240 68
mbed_official 174:8bb9f3a33240 69 #ifdef __cplusplus
mbed_official 174:8bb9f3a33240 70 }
mbed_official 174:8bb9f3a33240 71 #endif
mbed_official 174:8bb9f3a33240 72
mbed_official 174:8bb9f3a33240 73 #endif