Generic pin names added

pull/7669/head
Jiwon Yune 2018-08-06 14:50:19 +01:00
parent 0046800c09
commit 04fc7aa36f
6 changed files with 66 additions and 8 deletions

View File

@ -208,7 +208,7 @@ typedef enum {
GPIO5 = PTC6,
GPIO6 = NOT_CONNECTED,
//Purse Width Modulation (PWM)
// Pulse Width Modulation (PWM)
PWM0 = GPIO2,
PWM1 = GPIO3,
PWM2 = GPIO0,
@ -288,12 +288,19 @@ typedef enum {
SWD_TGT_CTS = UART1_CTS,
SWD_TGT_RTS = UART1_RTS,
// Generics
SERIAL_TX = UART0_TX,
SERIAL_RX = UART0_RX,
I2C_SCL = I2C0_SCL,
I2C_SDA = I2C0_SDA,
SPI_MOSI = SPI0_MOSI,
SPI_MISO = SPI0_MISO,
SPI_SCK = SPI0_SCK,
SPI_CS = SPI0_SS0,
PWM_OUT = PWM0,
// Not connected
NC = NOT_CONNECTED
} PinName;

View File

@ -163,6 +163,17 @@ typedef enum {
SWD_TGT_CTS = UART1_CTS,
SWD_TGT_RTS = UART1_RTS,
// Generics
SERIAL_TX = UART0_TX,
SERIAL_RX = UART0_RX,
I2C_SCL = I2C0_SCL,
I2C_SDA = I2C0_SDA,
SPI_MOSI = SPI0_MOSI,
SPI_MISO = SPI0_MISO,
SPI_SCK = SPI0_SCK,
SPI_CS = SPI0_SS0,
PWM_OUT = PWM0,
// Not connected
NC = NOT_CONNECTED
} PinName;

View File

@ -161,6 +161,17 @@ typedef enum {
SWD_TGT_CTS = UART1_CTS,
SWD_TGT_RTS = UART1_RTS,
// Generics
SERIAL_TX = UART0_TX,
SERIAL_RX = UART0_RX,
I2C_SCL = I2C0_SCL,
I2C_SDA = I2C0_SDA,
SPI_MOSI = SPI0_MOSI,
SPI_MISO = SPI0_MISO,
SPI_SCK = SPI0_SCK,
SPI_CS = SPI0_SS0,
PWM_OUT = PWM0,
// Not connected
NC = NOT_CONNECTED
} PinName;

View File

@ -222,9 +222,19 @@ typedef enum {
SWD_TGT_CTS = UART1_CTS,
SWD_TGT_RTS = UART1_RTS,
// Generics
SERIAL_TX = UART1_TX,
SERIAL_RX = UART1_RX,
I2C_SCL = I2C0_SCL,
I2C_SDA = I2C0_SDA,
SPI_MOSI = SPI0_MOSI,
SPI_MISO = SPI0_MISO,
SPI_SCK = SPI0_SCK,
SPI_CS = SPI0_SS0,
PWM_OUT = PWM0,
// Not connected
NC = NOT_CONNECTED
} PinName;
typedef enum {

View File

@ -229,9 +229,19 @@ typedef enum {
SWD_TGT_CTS = UART1_CTS,
SWD_TGT_RTS = UART1_RTS,
// Generics
SERIAL_TX = UART1_TX,
SERIAL_RX = UART1_RX,
I2C_SCL = I2C0_SCL,
I2C_SDA = I2C0_SDA,
SPI_MOSI = SPI0_MOSI,
SPI_MISO = SPI0_MISO,
SPI_SCK = SPI0_SCK,
SPI_CS = SPI0_SS0,
PWM_OUT = PWM0,
// Not connected
NC = NOT_CONNECTED
} PinName;
typedef enum {

View File

@ -258,9 +258,18 @@ typedef enum {
SWD_TGT_CTS = NOT_CONNECTED,
SWD_TGT_RTS = NOT_CONNECTED,
// Generics
SERIAL_TX = UART0_TX,
SERIAL_RX = UART0_RX,
I2C_SCL = I2C0_SCL,
I2C_SDA = I2C0_SDA,
SPI_MOSI = SPI0_MOSI,
SPI_MISO = SPI0_MISO,
SPI_SCK = SPI0_SCK,
SPI_CS = SPI0_SS0,
// Not connected
NC = NOT_CONNECTED
} PinName;
typedef enum {