mirror of https://github.com/ARMmbed/mbed-os.git
Generic pin names added
parent
0046800c09
commit
04fc7aa36f
|
@ -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;
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue