The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_LPC824/TOOLCHAIN_ARM_MICRO/PeripheralNames.h@171:3a7713b1edbc, 2018-11-08 (annotated)
- Committer:
- AnnaBridge
- Date:
- Thu Nov 08 11:45:42 2018 +0000
- Revision:
- 171:3a7713b1edbc
- Parent:
- TARGET_SSCI824/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/PeripheralNames.h@156:ff21514d8981
mbed library. Release version 164
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 156:ff21514d8981 | 1 | /* mbed Microcontroller Library |
AnnaBridge | 156:ff21514d8981 | 2 | * Copyright (c) 2006-2013 ARM Limited |
AnnaBridge | 156:ff21514d8981 | 3 | * |
AnnaBridge | 156:ff21514d8981 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
AnnaBridge | 156:ff21514d8981 | 5 | * you may not use this file except in compliance with the License. |
AnnaBridge | 156:ff21514d8981 | 6 | * You may obtain a copy of the License at |
AnnaBridge | 156:ff21514d8981 | 7 | * |
AnnaBridge | 156:ff21514d8981 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
AnnaBridge | 156:ff21514d8981 | 9 | * |
AnnaBridge | 156:ff21514d8981 | 10 | * Unless required by applicable law or agreed to in writing, software |
AnnaBridge | 156:ff21514d8981 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
AnnaBridge | 156:ff21514d8981 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
AnnaBridge | 156:ff21514d8981 | 13 | * See the License for the specific language governing permissions and |
AnnaBridge | 156:ff21514d8981 | 14 | * limitations under the License. |
AnnaBridge | 156:ff21514d8981 | 15 | */ |
AnnaBridge | 156:ff21514d8981 | 16 | #ifndef MBED_PERIPHERALNAMES_H |
AnnaBridge | 156:ff21514d8981 | 17 | #define MBED_PERIPHERALNAMES_H |
AnnaBridge | 156:ff21514d8981 | 18 | |
AnnaBridge | 156:ff21514d8981 | 19 | #include "cmsis.h" |
AnnaBridge | 156:ff21514d8981 | 20 | |
AnnaBridge | 156:ff21514d8981 | 21 | #ifdef __cplusplus |
AnnaBridge | 156:ff21514d8981 | 22 | extern "C" { |
AnnaBridge | 156:ff21514d8981 | 23 | #endif |
AnnaBridge | 156:ff21514d8981 | 24 | |
AnnaBridge | 156:ff21514d8981 | 25 | // Default peripherals |
AnnaBridge | 156:ff21514d8981 | 26 | |
AnnaBridge | 156:ff21514d8981 | 27 | // SPI: MOSI, MISO, CLK, SEL |
AnnaBridge | 156:ff21514d8981 | 28 | #define MBED_SPI0 P0_26, P0_25, P0_24, P0_15 |
AnnaBridge | 156:ff21514d8981 | 29 | |
AnnaBridge | 156:ff21514d8981 | 30 | #define MBED_UART0 P0_7, P0_18 |
AnnaBridge | 156:ff21514d8981 | 31 | #define MBED_UARTUSB USBTX, USBRX |
AnnaBridge | 156:ff21514d8981 | 32 | |
AnnaBridge | 156:ff21514d8981 | 33 | #define MBED_I2C0 P0_11, P0_10 |
AnnaBridge | 156:ff21514d8981 | 34 | |
AnnaBridge | 156:ff21514d8981 | 35 | typedef enum { |
AnnaBridge | 156:ff21514d8981 | 36 | ADC_0 = 0, |
AnnaBridge | 156:ff21514d8981 | 37 | ADC_1, |
AnnaBridge | 156:ff21514d8981 | 38 | ADC_2, |
AnnaBridge | 156:ff21514d8981 | 39 | ADC_3, |
AnnaBridge | 156:ff21514d8981 | 40 | ADC_4, |
AnnaBridge | 156:ff21514d8981 | 41 | ADC_5, |
AnnaBridge | 156:ff21514d8981 | 42 | ADC_6, |
AnnaBridge | 156:ff21514d8981 | 43 | ADC_7, |
AnnaBridge | 156:ff21514d8981 | 44 | ADC_8, |
AnnaBridge | 156:ff21514d8981 | 45 | ADC_9, |
AnnaBridge | 156:ff21514d8981 | 46 | ADC_10, |
AnnaBridge | 156:ff21514d8981 | 47 | ADC_11, |
AnnaBridge | 156:ff21514d8981 | 48 | } ADCName; |
AnnaBridge | 156:ff21514d8981 | 49 | |
AnnaBridge | 156:ff21514d8981 | 50 | |
AnnaBridge | 156:ff21514d8981 | 51 | #ifdef __cplusplus |
AnnaBridge | 156:ff21514d8981 | 52 | } |
AnnaBridge | 156:ff21514d8981 | 53 | #endif |
AnnaBridge | 156:ff21514d8981 | 54 | |
AnnaBridge | 156:ff21514d8981 | 55 | #endif |