mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Committer:
mbed_official
Date:
Tue Dec 16 08:15:08 2014 +0000
Revision:
440:8a0b45cd594f
Parent:
13:0645d8841f51
Synchronized with git revision 67fbbf0b635d0c0d93fbe433306c537c2ad206aa

Full URL: https://github.com/mbedmicro/mbed/commit/67fbbf0b635d0c0d93fbe433306c537c2ad206aa/

Targets: nrf51 - updating app_timer.c from Norid'c SDKv7.1.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 13:0645d8841f51 1 /* mbed Microcontroller Library
bogdanm 13:0645d8841f51 2 * Copyright (c) 2006-2013 ARM Limited
bogdanm 13:0645d8841f51 3 *
bogdanm 13:0645d8841f51 4 * Licensed under the Apache License, Version 2.0 (the "License");
bogdanm 13:0645d8841f51 5 * you may not use this file except in compliance with the License.
bogdanm 13:0645d8841f51 6 * You may obtain a copy of the License at
bogdanm 13:0645d8841f51 7 *
bogdanm 13:0645d8841f51 8 * http://www.apache.org/licenses/LICENSE-2.0
bogdanm 13:0645d8841f51 9 *
bogdanm 13:0645d8841f51 10 * Unless required by applicable law or agreed to in writing, software
bogdanm 13:0645d8841f51 11 * distributed under the License is distributed on an "AS IS" BASIS,
bogdanm 13:0645d8841f51 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
bogdanm 13:0645d8841f51 13 * See the License for the specific language governing permissions and
bogdanm 13:0645d8841f51 14 * limitations under the License.
bogdanm 13:0645d8841f51 15 */
bogdanm 13:0645d8841f51 16 #ifndef MBED_PERIPHERALNAMES_H
bogdanm 13:0645d8841f51 17 #define MBED_PERIPHERALNAMES_H
bogdanm 13:0645d8841f51 18
bogdanm 13:0645d8841f51 19 #include "cmsis.h"
bogdanm 13:0645d8841f51 20
bogdanm 13:0645d8841f51 21 #ifdef __cplusplus
bogdanm 13:0645d8841f51 22 extern "C" {
bogdanm 13:0645d8841f51 23 #endif
bogdanm 13:0645d8841f51 24
bogdanm 13:0645d8841f51 25 typedef enum {
bogdanm 13:0645d8841f51 26 UART_0 = (int)LPC_USART_BASE
bogdanm 13:0645d8841f51 27 } UARTName;
bogdanm 13:0645d8841f51 28
bogdanm 13:0645d8841f51 29 typedef enum {
bogdanm 13:0645d8841f51 30 I2C_0 = (int)LPC_I2C_BASE
bogdanm 13:0645d8841f51 31 } I2CName;
bogdanm 13:0645d8841f51 32
bogdanm 13:0645d8841f51 33 typedef enum {
bogdanm 13:0645d8841f51 34 ADC0_0 = 0,
bogdanm 13:0645d8841f51 35 ADC0_1,
bogdanm 13:0645d8841f51 36 ADC0_2,
bogdanm 13:0645d8841f51 37 ADC0_3,
bogdanm 13:0645d8841f51 38 ADC0_4,
bogdanm 13:0645d8841f51 39 ADC0_5,
bogdanm 13:0645d8841f51 40 ADC0_6,
bogdanm 13:0645d8841f51 41 ADC0_7
bogdanm 13:0645d8841f51 42 } ADCName;
bogdanm 13:0645d8841f51 43
bogdanm 13:0645d8841f51 44 typedef enum {
bogdanm 13:0645d8841f51 45 SPI_0 = (int)LPC_SSP0_BASE,
bogdanm 13:0645d8841f51 46 SPI_1 = (int)LPC_SSP1_BASE
bogdanm 13:0645d8841f51 47 } SPIName;
bogdanm 13:0645d8841f51 48
bogdanm 13:0645d8841f51 49 typedef enum {
bogdanm 13:0645d8841f51 50 PWM_1 = 0,
bogdanm 13:0645d8841f51 51 PWM_2,
bogdanm 13:0645d8841f51 52 PWM_3,
bogdanm 13:0645d8841f51 53 PWM_4,
bogdanm 13:0645d8841f51 54 PWM_5,
bogdanm 13:0645d8841f51 55 PWM_6,
bogdanm 13:0645d8841f51 56 PWM_7,
bogdanm 13:0645d8841f51 57 PWM_8,
bogdanm 13:0645d8841f51 58 PWM_9,
bogdanm 13:0645d8841f51 59 PWM_10,
bogdanm 13:0645d8841f51 60 PWM_11
bogdanm 13:0645d8841f51 61 } PWMName;
bogdanm 13:0645d8841f51 62
bogdanm 13:0645d8841f51 63 #define STDIO_UART_TX UART_TX
bogdanm 13:0645d8841f51 64 #define STDIO_UART_RX UART_RX
bogdanm 13:0645d8841f51 65 #define STDIO_UART UART_0
bogdanm 13:0645d8841f51 66
bogdanm 13:0645d8841f51 67 #ifdef __cplusplus
bogdanm 13:0645d8841f51 68 }
bogdanm 13:0645d8841f51 69 #endif
bogdanm 13:0645d8841f51 70
bogdanm 13:0645d8841f51 71 #endif