helpfor studient
Dependents: STM32_F103-C8T6basecanblink_led
Fork of mbed-dev by
targets/TARGET_TOSHIBA/TARGET_TMPM46B/PeripheralNames.h@186:9c2029bfadbe, 2018-04-20 (annotated)
- Committer:
- Anna Bridge
- Date:
- Fri Apr 20 11:31:35 2018 +0100
- Revision:
- 186:9c2029bfadbe
- Parent:
- 185:08ed48f1de7f
Update to latest version of mbed lib
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 185:08ed48f1de7f | 1 | /* mbed Microcontroller Library |
AnnaBridge | 185:08ed48f1de7f | 2 | * (C)Copyright TOSHIBA ELECTRONIC DEVICES & STORAGE CORPORATION 2017 All rights reserved |
AnnaBridge | 185:08ed48f1de7f | 3 | * |
AnnaBridge | 185:08ed48f1de7f | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
AnnaBridge | 185:08ed48f1de7f | 5 | * you may not use this file except in compliance with the License. |
AnnaBridge | 185:08ed48f1de7f | 6 | * You may obtain a copy of the License at |
AnnaBridge | 185:08ed48f1de7f | 7 | * |
AnnaBridge | 185:08ed48f1de7f | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
AnnaBridge | 185:08ed48f1de7f | 9 | * |
AnnaBridge | 185:08ed48f1de7f | 10 | * Unless required by applicable law or agreed to in writing, software |
AnnaBridge | 185:08ed48f1de7f | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
AnnaBridge | 185:08ed48f1de7f | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
AnnaBridge | 185:08ed48f1de7f | 13 | * See the License for the specific language governing permissions and |
AnnaBridge | 185:08ed48f1de7f | 14 | * limitations under the License. |
AnnaBridge | 185:08ed48f1de7f | 15 | */ |
AnnaBridge | 185:08ed48f1de7f | 16 | #ifndef MBED_PERIPHERALNAMES_H |
AnnaBridge | 185:08ed48f1de7f | 17 | #define MBED_PERIPHERALNAMES_H |
AnnaBridge | 185:08ed48f1de7f | 18 | |
AnnaBridge | 185:08ed48f1de7f | 19 | #include "PinNames.h" |
AnnaBridge | 185:08ed48f1de7f | 20 | |
AnnaBridge | 185:08ed48f1de7f | 21 | #ifdef __cplusplus |
AnnaBridge | 185:08ed48f1de7f | 22 | extern "C" { |
AnnaBridge | 185:08ed48f1de7f | 23 | #endif |
AnnaBridge | 185:08ed48f1de7f | 24 | |
AnnaBridge | 185:08ed48f1de7f | 25 | typedef enum { |
AnnaBridge | 185:08ed48f1de7f | 26 | SERIAL_0 = 0, |
AnnaBridge | 185:08ed48f1de7f | 27 | SERIAL_1, |
AnnaBridge | 185:08ed48f1de7f | 28 | SERIAL_2, |
AnnaBridge | 185:08ed48f1de7f | 29 | SERIAL_3, |
AnnaBridge | 185:08ed48f1de7f | 30 | SERIAL_4, |
AnnaBridge | 185:08ed48f1de7f | 31 | SERIAL_5, |
AnnaBridge | 185:08ed48f1de7f | 32 | INVALID_SERIAL = (int)NC |
AnnaBridge | 185:08ed48f1de7f | 33 | } UARTName; |
AnnaBridge | 185:08ed48f1de7f | 34 | |
AnnaBridge | 185:08ed48f1de7f | 35 | typedef enum { |
AnnaBridge | 185:08ed48f1de7f | 36 | ADC_A0, |
AnnaBridge | 185:08ed48f1de7f | 37 | ADC_A1, |
AnnaBridge | 185:08ed48f1de7f | 38 | ADC_A2, |
AnnaBridge | 185:08ed48f1de7f | 39 | ADC_A3, |
AnnaBridge | 185:08ed48f1de7f | 40 | ADC_A4, |
AnnaBridge | 185:08ed48f1de7f | 41 | ADC_A5, |
AnnaBridge | 185:08ed48f1de7f | 42 | ADC_A6, |
AnnaBridge | 185:08ed48f1de7f | 43 | ADC_A7, |
AnnaBridge | 185:08ed48f1de7f | 44 | INVALID_ADC = (int)NC |
AnnaBridge | 185:08ed48f1de7f | 45 | } ADCName; |
AnnaBridge | 185:08ed48f1de7f | 46 | |
AnnaBridge | 185:08ed48f1de7f | 47 | typedef enum { |
AnnaBridge | 185:08ed48f1de7f | 48 | SPI_0 = 0, |
AnnaBridge | 185:08ed48f1de7f | 49 | SPI_1, |
AnnaBridge | 185:08ed48f1de7f | 50 | SPI_2, |
AnnaBridge | 185:08ed48f1de7f | 51 | INVALID_SPI = (int)NC |
AnnaBridge | 185:08ed48f1de7f | 52 | } SPIName; |
AnnaBridge | 185:08ed48f1de7f | 53 | |
AnnaBridge | 185:08ed48f1de7f | 54 | typedef enum { |
AnnaBridge | 185:08ed48f1de7f | 55 | I2C_0 = 0, |
AnnaBridge | 185:08ed48f1de7f | 56 | I2C_1, |
AnnaBridge | 185:08ed48f1de7f | 57 | I2C_2, |
AnnaBridge | 185:08ed48f1de7f | 58 | INVALID_I2C = (int)NC |
AnnaBridge | 185:08ed48f1de7f | 59 | } I2CName; |
AnnaBridge | 185:08ed48f1de7f | 60 | |
AnnaBridge | 185:08ed48f1de7f | 61 | typedef enum { |
AnnaBridge | 185:08ed48f1de7f | 62 | PWM_0 = 0, |
AnnaBridge | 185:08ed48f1de7f | 63 | PWM_1, |
AnnaBridge | 185:08ed48f1de7f | 64 | PWM_2, |
AnnaBridge | 185:08ed48f1de7f | 65 | PWM_3, |
AnnaBridge | 185:08ed48f1de7f | 66 | PWM_4, |
AnnaBridge | 185:08ed48f1de7f | 67 | PWM_5, |
AnnaBridge | 185:08ed48f1de7f | 68 | INVALID_PWM = (int)NC |
AnnaBridge | 185:08ed48f1de7f | 69 | } PWMName; |
AnnaBridge | 185:08ed48f1de7f | 70 | |
AnnaBridge | 185:08ed48f1de7f | 71 | typedef enum { |
AnnaBridge | 185:08ed48f1de7f | 72 | GPIO_IRQ_0 = 1, |
AnnaBridge | 185:08ed48f1de7f | 73 | GPIO_IRQ_1 = 2, |
AnnaBridge | 185:08ed48f1de7f | 74 | GPIO_IRQ_2 = 7, |
AnnaBridge | 185:08ed48f1de7f | 75 | GPIO_IRQ_3 = 8, |
AnnaBridge | 185:08ed48f1de7f | 76 | GPIO_IRQ_4 = 13, |
AnnaBridge | 185:08ed48f1de7f | 77 | GPIO_IRQ_5 = 14, |
AnnaBridge | 185:08ed48f1de7f | 78 | GPIO_IRQ_6 = 15, |
AnnaBridge | 185:08ed48f1de7f | 79 | INVALID_GPIO_IRQ = (int)NC |
AnnaBridge | 185:08ed48f1de7f | 80 | } GPIO_IRQName; |
AnnaBridge | 185:08ed48f1de7f | 81 | |
AnnaBridge | 185:08ed48f1de7f | 82 | #define STDIO_UART_TX PE5 |
AnnaBridge | 185:08ed48f1de7f | 83 | #define STDIO_UART_RX PE6 |
AnnaBridge | 185:08ed48f1de7f | 84 | #define STDIO_UART SERIAL_1 |
AnnaBridge | 185:08ed48f1de7f | 85 | |
AnnaBridge | 185:08ed48f1de7f | 86 | #define MBED_SPI0 PK3, PK2, PK4, PK1 |
AnnaBridge | 185:08ed48f1de7f | 87 | #define MBED_SPI1 PF4, PF5, PF3, PF6 |
AnnaBridge | 185:08ed48f1de7f | 88 | #define MBED_SPI2 PD2, PD1, PD3, PD0 |
AnnaBridge | 185:08ed48f1de7f | 89 | |
AnnaBridge | 185:08ed48f1de7f | 90 | #define MBED_UART0 PE2, PE1 |
AnnaBridge | 185:08ed48f1de7f | 91 | #define MBED_UART1 PE5, PE6 |
AnnaBridge | 185:08ed48f1de7f | 92 | #define MBED_UART2 PL2, PL1 |
AnnaBridge | 185:08ed48f1de7f | 93 | #define MBED_UART3 PB0, PB1 |
AnnaBridge | 185:08ed48f1de7f | 94 | #define MBED_UART4 PF1, PF2 |
AnnaBridge | 185:08ed48f1de7f | 95 | #define MBED_UART5 PA6, PA5 |
AnnaBridge | 185:08ed48f1de7f | 96 | #define MBED_UARTUSB USBTX, USBRX |
AnnaBridge | 185:08ed48f1de7f | 97 | |
AnnaBridge | 185:08ed48f1de7f | 98 | #define MBED_I2C0 PK2, PK3 |
AnnaBridge | 185:08ed48f1de7f | 99 | #define MBED_I2C1 PF7, PF6 |
AnnaBridge | 185:08ed48f1de7f | 100 | #define MBED_I2C2 PH0, PH1 |
AnnaBridge | 185:08ed48f1de7f | 101 | |
AnnaBridge | 185:08ed48f1de7f | 102 | #define MBED_ANALOGIN0 A0 |
AnnaBridge | 185:08ed48f1de7f | 103 | #define MBED_ANALOGIN1 A1 |
AnnaBridge | 185:08ed48f1de7f | 104 | #define MBED_ANALOGIN2 A2 |
AnnaBridge | 185:08ed48f1de7f | 105 | #define MBED_ANALOGIN3 A3 |
AnnaBridge | 185:08ed48f1de7f | 106 | #define MBED_ANALOGIN4 A4 |
AnnaBridge | 185:08ed48f1de7f | 107 | #define MBED_ANALOGIN5 A5 |
AnnaBridge | 185:08ed48f1de7f | 108 | |
AnnaBridge | 185:08ed48f1de7f | 109 | #define MBED_PWMOUT0 PE4 |
AnnaBridge | 185:08ed48f1de7f | 110 | #define MBED_PWMOUT1 PB6 |
AnnaBridge | 185:08ed48f1de7f | 111 | #define MBED_PWMOUT2 PH1 |
AnnaBridge | 185:08ed48f1de7f | 112 | #define MBED_PWMOUT3 PH0 |
AnnaBridge | 185:08ed48f1de7f | 113 | #define MBED_PWMOUT4 PA7 |
AnnaBridge | 185:08ed48f1de7f | 114 | |
AnnaBridge | 185:08ed48f1de7f | 115 | #ifdef __cplusplus |
AnnaBridge | 185:08ed48f1de7f | 116 | } |
AnnaBridge | 185:08ed48f1de7f | 117 | #endif |
AnnaBridge | 185:08ed48f1de7f | 118 | |
AnnaBridge | 185:08ed48f1de7f | 119 | #endif |