mbed library sources, include can_api for nucleo-f091rc
Dependents: CanNucleoF0_example
Fork of mbed-src by
targets/hal/TARGET_NXP/TARGET_LPC2460/PeripheralNames.h@554:edd95c0879f8, 2015-06-01 (annotated)
- Committer:
- mbed_official
- Date:
- Mon Jun 01 11:00:11 2015 +0100
- Revision:
- 554:edd95c0879f8
Synchronized with git revision 7a1d25e3dfbe5bc1457774d4af3c73383a0ff81d
Full URL: https://github.com/mbedmicro/mbed/commit/7a1d25e3dfbe5bc1457774d4af3c73383a0ff81d/
Silicon Labs - Initial test framework pin definitions for EFM32 platforms
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 554:edd95c0879f8 | 1 | /* mbed Microcontroller Library |
mbed_official | 554:edd95c0879f8 | 2 | * Copyright (c) 2006-2015 ARM Limited |
mbed_official | 554:edd95c0879f8 | 3 | * |
mbed_official | 554:edd95c0879f8 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mbed_official | 554:edd95c0879f8 | 5 | * you may not use this file except in compliance with the License. |
mbed_official | 554:edd95c0879f8 | 6 | * You may obtain a copy of the License at |
mbed_official | 554:edd95c0879f8 | 7 | * |
mbed_official | 554:edd95c0879f8 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mbed_official | 554:edd95c0879f8 | 9 | * |
mbed_official | 554:edd95c0879f8 | 10 | * Unless required by applicable law or agreed to in writing, software |
mbed_official | 554:edd95c0879f8 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 554:edd95c0879f8 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 554:edd95c0879f8 | 13 | * See the License for the specific language governing permissions and |
mbed_official | 554:edd95c0879f8 | 14 | * limitations under the License. |
mbed_official | 554:edd95c0879f8 | 15 | */ |
mbed_official | 554:edd95c0879f8 | 16 | #ifndef MBED_PERIPHERALNAMES_H |
mbed_official | 554:edd95c0879f8 | 17 | #define MBED_PERIPHERALNAMES_H |
mbed_official | 554:edd95c0879f8 | 18 | |
mbed_official | 554:edd95c0879f8 | 19 | #include "cmsis.h" |
mbed_official | 554:edd95c0879f8 | 20 | |
mbed_official | 554:edd95c0879f8 | 21 | #ifdef __cplusplus |
mbed_official | 554:edd95c0879f8 | 22 | extern "C" { |
mbed_official | 554:edd95c0879f8 | 23 | #endif |
mbed_official | 554:edd95c0879f8 | 24 | |
mbed_official | 554:edd95c0879f8 | 25 | typedef enum { |
mbed_official | 554:edd95c0879f8 | 26 | UART_0 = (int)LPC_UART0_BASE, |
mbed_official | 554:edd95c0879f8 | 27 | UART_1 = (int)LPC_UART1_BASE, |
mbed_official | 554:edd95c0879f8 | 28 | UART_2 = (int)LPC_UART2_BASE, |
mbed_official | 554:edd95c0879f8 | 29 | UART_3 = (int)LPC_UART3_BASE |
mbed_official | 554:edd95c0879f8 | 30 | } UARTName; |
mbed_official | 554:edd95c0879f8 | 31 | |
mbed_official | 554:edd95c0879f8 | 32 | typedef enum { |
mbed_official | 554:edd95c0879f8 | 33 | ADC0_0 = 0, |
mbed_official | 554:edd95c0879f8 | 34 | ADC0_1, |
mbed_official | 554:edd95c0879f8 | 35 | ADC0_2, |
mbed_official | 554:edd95c0879f8 | 36 | ADC0_3, |
mbed_official | 554:edd95c0879f8 | 37 | ADC0_4, |
mbed_official | 554:edd95c0879f8 | 38 | ADC0_5, |
mbed_official | 554:edd95c0879f8 | 39 | ADC0_6, |
mbed_official | 554:edd95c0879f8 | 40 | ADC0_7 |
mbed_official | 554:edd95c0879f8 | 41 | } ADCName; |
mbed_official | 554:edd95c0879f8 | 42 | |
mbed_official | 554:edd95c0879f8 | 43 | typedef enum { |
mbed_official | 554:edd95c0879f8 | 44 | DAC_0 = 0 |
mbed_official | 554:edd95c0879f8 | 45 | } DACName; |
mbed_official | 554:edd95c0879f8 | 46 | |
mbed_official | 554:edd95c0879f8 | 47 | typedef enum { |
mbed_official | 554:edd95c0879f8 | 48 | SPI_0 = (int)LPC_SSP0_BASE, |
mbed_official | 554:edd95c0879f8 | 49 | SPI_1 = (int)LPC_SSP1_BASE |
mbed_official | 554:edd95c0879f8 | 50 | } SPIName; |
mbed_official | 554:edd95c0879f8 | 51 | |
mbed_official | 554:edd95c0879f8 | 52 | typedef enum { |
mbed_official | 554:edd95c0879f8 | 53 | I2C_0 = (int)LPC_I2C0_BASE, |
mbed_official | 554:edd95c0879f8 | 54 | I2C_1 = (int)LPC_I2C1_BASE, |
mbed_official | 554:edd95c0879f8 | 55 | I2C_2 = (int)LPC_I2C2_BASE |
mbed_official | 554:edd95c0879f8 | 56 | } I2CName; |
mbed_official | 554:edd95c0879f8 | 57 | |
mbed_official | 554:edd95c0879f8 | 58 | typedef enum { |
mbed_official | 554:edd95c0879f8 | 59 | PWM_1 = 1, |
mbed_official | 554:edd95c0879f8 | 60 | PWM_2, |
mbed_official | 554:edd95c0879f8 | 61 | PWM_3, |
mbed_official | 554:edd95c0879f8 | 62 | PWM_4, |
mbed_official | 554:edd95c0879f8 | 63 | PWM_5, |
mbed_official | 554:edd95c0879f8 | 64 | PWM_6 |
mbed_official | 554:edd95c0879f8 | 65 | } PWMName; |
mbed_official | 554:edd95c0879f8 | 66 | |
mbed_official | 554:edd95c0879f8 | 67 | typedef enum { |
mbed_official | 554:edd95c0879f8 | 68 | CAN_1 = (int)LPC_CAN1_BASE, |
mbed_official | 554:edd95c0879f8 | 69 | CAN_2 = (int)LPC_CAN2_BASE |
mbed_official | 554:edd95c0879f8 | 70 | } CANName; |
mbed_official | 554:edd95c0879f8 | 71 | |
mbed_official | 554:edd95c0879f8 | 72 | #define STDIO_UART_TX USBTX |
mbed_official | 554:edd95c0879f8 | 73 | #define STDIO_UART_RX USBRX |
mbed_official | 554:edd95c0879f8 | 74 | #define STDIO_UART UART_2 |
mbed_official | 554:edd95c0879f8 | 75 | |
mbed_official | 554:edd95c0879f8 | 76 | // Default peripherals |
mbed_official | 554:edd95c0879f8 | 77 | #define MBED_SPI0 p5, p6, p7, p8 |
mbed_official | 554:edd95c0879f8 | 78 | //#define MBED_SPI1 p11, p12, p13, p14 |
mbed_official | 554:edd95c0879f8 | 79 | |
mbed_official | 554:edd95c0879f8 | 80 | #define MBED_UART0 p9, p10 |
mbed_official | 554:edd95c0879f8 | 81 | #define MBED_UART1 p13, p14 |
mbed_official | 554:edd95c0879f8 | 82 | #define MBED_UART2 p15, p16 |
mbed_official | 554:edd95c0879f8 | 83 | #define MBED_UARTUSB USBTX, USBRX |
mbed_official | 554:edd95c0879f8 | 84 | |
mbed_official | 554:edd95c0879f8 | 85 | #define MBED_I2C0 p17, p18 |
mbed_official | 554:edd95c0879f8 | 86 | //#define MBED_I2C1 p9, p10 |
mbed_official | 554:edd95c0879f8 | 87 | |
mbed_official | 554:edd95c0879f8 | 88 | #define MBED_CAN0 p19, p20 |
mbed_official | 554:edd95c0879f8 | 89 | |
mbed_official | 554:edd95c0879f8 | 90 | #define MBED_ANALOGOUT0 p21 |
mbed_official | 554:edd95c0879f8 | 91 | |
mbed_official | 554:edd95c0879f8 | 92 | #define MBED_ANALOGIN0 p22 |
mbed_official | 554:edd95c0879f8 | 93 | #define MBED_ANALOGIN1 p23 |
mbed_official | 554:edd95c0879f8 | 94 | //#define MBED_ANALOGIN2 p17 |
mbed_official | 554:edd95c0879f8 | 95 | //#define MBED_ANALOGIN3 p18 |
mbed_official | 554:edd95c0879f8 | 96 | //#define MBED_ANALOGIN4 p19 |
mbed_official | 554:edd95c0879f8 | 97 | //#define MBED_ANALOGIN5 p20 |
mbed_official | 554:edd95c0879f8 | 98 | |
mbed_official | 554:edd95c0879f8 | 99 | #define MBED_PWMOUT0 p24 |
mbed_official | 554:edd95c0879f8 | 100 | #define MBED_PWMOUT1 p25 |
mbed_official | 554:edd95c0879f8 | 101 | #define MBED_PWMOUT2 p26 |
mbed_official | 554:edd95c0879f8 | 102 | #define MBED_PWMOUT3 p27 |
mbed_official | 554:edd95c0879f8 | 103 | //#define MBED_PWMOUT4 p22 |
mbed_official | 554:edd95c0879f8 | 104 | //#define MBED_PWMOUT5 p21 |
mbed_official | 554:edd95c0879f8 | 105 | |
mbed_official | 554:edd95c0879f8 | 106 | #define MBED_USB_D_PLUS p28 |
mbed_official | 554:edd95c0879f8 | 107 | #define MBED_USB_D_MINUS p29 |
mbed_official | 554:edd95c0879f8 | 108 | |
mbed_official | 554:edd95c0879f8 | 109 | #define MBED_MCICLK p30 |
mbed_official | 554:edd95c0879f8 | 110 | #define MBED_MCICMD p31 |
mbed_official | 554:edd95c0879f8 | 111 | #define MBED_MCIDAT0 p32 |
mbed_official | 554:edd95c0879f8 | 112 | #define MBED_MCIDAT1 p33 |
mbed_official | 554:edd95c0879f8 | 113 | #define MBED_MCIDAT2 p34 |
mbed_official | 554:edd95c0879f8 | 114 | #define MBED_MCIDAT3 p35 |
mbed_official | 554:edd95c0879f8 | 115 | |
mbed_official | 554:edd95c0879f8 | 116 | #ifdef __cplusplus |
mbed_official | 554:edd95c0879f8 | 117 | } |
mbed_official | 554:edd95c0879f8 | 118 | #endif |
mbed_official | 554:edd95c0879f8 | 119 | |
mbed_official | 554:edd95c0879f8 | 120 | #endif |