mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Committer:
AnnaBridge
Date:
Wed Feb 20 22:31:08 2019 +0000
Revision:
189:f392fc9709a3
mbed library release version 165

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 189:f392fc9709a3 1 /* mbed Microcontroller Library
AnnaBridge 189:f392fc9709a3 2 * (C)Copyright TOSHIBA ELECTRONIC DEVICES & STORAGE CORPORATION 2018 All rights reserved
AnnaBridge 189:f392fc9709a3 3 *
AnnaBridge 189:f392fc9709a3 4 * Licensed under the Apache License, Version 2.0 (the "License");
AnnaBridge 189:f392fc9709a3 5 * you may not use this file except in compliance with the License.
AnnaBridge 189:f392fc9709a3 6 * You may obtain a copy of the License at
AnnaBridge 189:f392fc9709a3 7 *
AnnaBridge 189:f392fc9709a3 8 * http://www.apache.org/licenses/LICENSE-2.0
AnnaBridge 189:f392fc9709a3 9 *
AnnaBridge 189:f392fc9709a3 10 * Unless required by applicable law or agreed to in writing, software
AnnaBridge 189:f392fc9709a3 11 * distributed under the License is distributed on an "AS IS" BASIS,
AnnaBridge 189:f392fc9709a3 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
AnnaBridge 189:f392fc9709a3 13 * See the License for the specific language governing permissions and
AnnaBridge 189:f392fc9709a3 14 * limitations under the License.
AnnaBridge 189:f392fc9709a3 15 */
AnnaBridge 189:f392fc9709a3 16 #ifndef MBED_PERIPHERALNAMES_H
AnnaBridge 189:f392fc9709a3 17 #define MBED_PERIPHERALNAMES_H
AnnaBridge 189:f392fc9709a3 18
AnnaBridge 189:f392fc9709a3 19 #include "PinNames.h"
AnnaBridge 189:f392fc9709a3 20
AnnaBridge 189:f392fc9709a3 21 #ifdef __cplusplus
AnnaBridge 189:f392fc9709a3 22 extern "C" {
AnnaBridge 189:f392fc9709a3 23 #endif
AnnaBridge 189:f392fc9709a3 24
AnnaBridge 189:f392fc9709a3 25 typedef enum {
AnnaBridge 189:f392fc9709a3 26 SERIAL_0 = 0,
AnnaBridge 189:f392fc9709a3 27 SERIAL_1,
AnnaBridge 189:f392fc9709a3 28 SERIAL_2,
AnnaBridge 189:f392fc9709a3 29 SERIAL_3,
AnnaBridge 189:f392fc9709a3 30 SERIAL_4,
AnnaBridge 189:f392fc9709a3 31 SERIAL_5,
AnnaBridge 189:f392fc9709a3 32 INVALID_SERIAL = (int)NC
AnnaBridge 189:f392fc9709a3 33 } UARTName;
AnnaBridge 189:f392fc9709a3 34
AnnaBridge 189:f392fc9709a3 35 typedef enum {
AnnaBridge 189:f392fc9709a3 36 ADC_AINA00 = 0,
AnnaBridge 189:f392fc9709a3 37 ADC_AINA01,
AnnaBridge 189:f392fc9709a3 38 ADC_AINA02,
AnnaBridge 189:f392fc9709a3 39 ADC_AINA03,
AnnaBridge 189:f392fc9709a3 40 ADC_AINA04,
AnnaBridge 189:f392fc9709a3 41 ADC_AINA05,
AnnaBridge 189:f392fc9709a3 42 ADC_AINA06,
AnnaBridge 189:f392fc9709a3 43 ADC_AINA07,
AnnaBridge 189:f392fc9709a3 44 ADC_AINA08,
AnnaBridge 189:f392fc9709a3 45 ADC_AINA09,
AnnaBridge 189:f392fc9709a3 46 ADC_AINA10,
AnnaBridge 189:f392fc9709a3 47 ADC_AINA11,
AnnaBridge 189:f392fc9709a3 48 ADC_AINA12,
AnnaBridge 189:f392fc9709a3 49 ADC_AINA13,
AnnaBridge 189:f392fc9709a3 50 ADC_AINA14,
AnnaBridge 189:f392fc9709a3 51 ADC_AINA15,
AnnaBridge 189:f392fc9709a3 52 ADC_AINA16,
AnnaBridge 189:f392fc9709a3 53 ADC_AINA17,
AnnaBridge 189:f392fc9709a3 54 ADC_AINA18,
AnnaBridge 189:f392fc9709a3 55 ADC_AINA19,
AnnaBridge 189:f392fc9709a3 56 ADC_AINA20,
AnnaBridge 189:f392fc9709a3 57 INVALID_ADC = (int)NC
AnnaBridge 189:f392fc9709a3 58 } ADCName;
AnnaBridge 189:f392fc9709a3 59
AnnaBridge 189:f392fc9709a3 60 typedef enum {
AnnaBridge 189:f392fc9709a3 61 DAC_A0 = 0,
AnnaBridge 189:f392fc9709a3 62 DAC_A1,
AnnaBridge 189:f392fc9709a3 63 INVALID_DAC = (int)NC
AnnaBridge 189:f392fc9709a3 64 } DACName;
AnnaBridge 189:f392fc9709a3 65
AnnaBridge 189:f392fc9709a3 66 typedef enum {
AnnaBridge 189:f392fc9709a3 67 SPI_0 = 0,
AnnaBridge 189:f392fc9709a3 68 SPI_1,
AnnaBridge 189:f392fc9709a3 69 SPI_2,
AnnaBridge 189:f392fc9709a3 70 SPI_3,
AnnaBridge 189:f392fc9709a3 71 SPI_4,
AnnaBridge 189:f392fc9709a3 72 INVALID_SPI = (int)NC
AnnaBridge 189:f392fc9709a3 73 } SPIName;
AnnaBridge 189:f392fc9709a3 74
AnnaBridge 189:f392fc9709a3 75 typedef enum {
AnnaBridge 189:f392fc9709a3 76 I2C_0 = 0,
AnnaBridge 189:f392fc9709a3 77 I2C_1,
AnnaBridge 189:f392fc9709a3 78 I2C_2,
AnnaBridge 189:f392fc9709a3 79 I2C_3,
AnnaBridge 189:f392fc9709a3 80 INVALID_I2C = (int)NC
AnnaBridge 189:f392fc9709a3 81 } I2CName;
AnnaBridge 189:f392fc9709a3 82
AnnaBridge 189:f392fc9709a3 83 typedef enum {
AnnaBridge 189:f392fc9709a3 84 PWM_0 = 0,
AnnaBridge 189:f392fc9709a3 85 PWM_1,
AnnaBridge 189:f392fc9709a3 86 PWM_2,
AnnaBridge 189:f392fc9709a3 87 PWM_3,
AnnaBridge 189:f392fc9709a3 88 PWM_4,
AnnaBridge 189:f392fc9709a3 89 PWM_5,
AnnaBridge 189:f392fc9709a3 90 PWM_6,
AnnaBridge 189:f392fc9709a3 91 PWM_7,
AnnaBridge 189:f392fc9709a3 92 INVALID_PWM = (int)NC
AnnaBridge 189:f392fc9709a3 93 } PWMName;
AnnaBridge 189:f392fc9709a3 94
AnnaBridge 189:f392fc9709a3 95 typedef enum {
AnnaBridge 189:f392fc9709a3 96 GPIO_IRQ_00 = 0,
AnnaBridge 189:f392fc9709a3 97 GPIO_IRQ_01,
AnnaBridge 189:f392fc9709a3 98 GPIO_IRQ_02,
AnnaBridge 189:f392fc9709a3 99 GPIO_IRQ_03,
AnnaBridge 189:f392fc9709a3 100 GPIO_IRQ_04,
AnnaBridge 189:f392fc9709a3 101 GPIO_IRQ_05,
AnnaBridge 189:f392fc9709a3 102 GPIO_IRQ_06,
AnnaBridge 189:f392fc9709a3 103 GPIO_IRQ_07,
AnnaBridge 189:f392fc9709a3 104 GPIO_IRQ_08,
AnnaBridge 189:f392fc9709a3 105 GPIO_IRQ_09,
AnnaBridge 189:f392fc9709a3 106 GPIO_IRQ_10,
AnnaBridge 189:f392fc9709a3 107 GPIO_IRQ_11,
AnnaBridge 189:f392fc9709a3 108 GPIO_IRQ_12,
AnnaBridge 189:f392fc9709a3 109 GPIO_IRQ_13,
AnnaBridge 189:f392fc9709a3 110 GPIO_IRQ_14,
AnnaBridge 189:f392fc9709a3 111 GPIO_IRQ_15,
AnnaBridge 189:f392fc9709a3 112 GPIO_IRQ_16,
AnnaBridge 189:f392fc9709a3 113 GPIO_IRQ_17_18,
AnnaBridge 189:f392fc9709a3 114 GPIO_IRQ_19_22,
AnnaBridge 189:f392fc9709a3 115 GPIO_IRQ_23_26,
AnnaBridge 189:f392fc9709a3 116 GPIO_IRQ_27_28,
AnnaBridge 189:f392fc9709a3 117 GPIO_IRQ_29,
AnnaBridge 189:f392fc9709a3 118 GPIO_IRQ_30_31,
AnnaBridge 189:f392fc9709a3 119 INVALID_GPIO_IRQ = (int)NC
AnnaBridge 189:f392fc9709a3 120 } gpio_irqname;
AnnaBridge 189:f392fc9709a3 121
AnnaBridge 189:f392fc9709a3 122 #define STDIO_UART_TX USBTX
AnnaBridge 189:f392fc9709a3 123 #define STDIO_UART_RX USBRX
AnnaBridge 189:f392fc9709a3 124 #define STDIO_UART SERIAL_1
AnnaBridge 189:f392fc9709a3 125
AnnaBridge 189:f392fc9709a3 126 #ifdef __cplusplus
AnnaBridge 189:f392fc9709a3 127 }
AnnaBridge 189:f392fc9709a3 128 #endif
AnnaBridge 189:f392fc9709a3 129
AnnaBridge 189:f392fc9709a3 130 #endif