mbed library sources

Dependents:   frdm_kl05z_gpio_test

Fork of mbed-src by mbed official

Committer:
shaoziyang
Date:
Sat Sep 13 14:25:46 2014 +0000
Revision:
323:9e901b0a5aa1
Parent:
59:ef93cc6bbf65
test with CLOCK_SETUP = 0

Who changed what in which revision?

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