Modify PinName file to keep correspondence with spec

pull/10610/head
panyz0725@thundersoft.com 2019-05-14 17:27:56 +08:00 committed by adbridge
parent f179be9817
commit 2d2823d56b
2 changed files with 25 additions and 31 deletions

View File

@ -62,19 +62,19 @@ typedef enum {
PV0 = 17 << 3, PV1, PV2, PV3, PV4, PV5, PV6, PV7, PV0 = 17 << 3, PV1, PV2, PV3, PV4, PV5, PV6, PV7,
// Other mbed Pin Names // Other mbed Pin Names
LED1 = PK4, LED0 = PK4,
LED2 = PK5, LED1 = PK5,
LED3 = PK6, LED2 = PK6,
LED4 = PK7, LED3 = PK7,
// External data bus Pin Names // External data bus Pin Names
D0 = PV7, D0 = PG3,
D1 = PV6, D1 = PG4,
D2 = PC4, D2 = PG5,
D3 = PK2, D3 = PG2,
D4 = PC3, D4 = PG6,
D5 = PJ0, D5 = PA0,
D6 = PN0, D6 = PL5,
D7 = PL6, D7 = PL6,
D8 = PT0, D8 = PT0,
D9 = PP0, D9 = PP0,
@ -85,16 +85,15 @@ typedef enum {
D14 = PA5, D14 = PA5,
D15 = PA4, D15 = PA4,
// Analogue out pins
A0 = PF2,
A1 = PF3,
A2 = PF4,
A3 = PF5,
A4 = PF6,
A5 = PF7,
DAC0 = PG0, DAC0 = PG0,
DAC1 = PG1, DAC1 = PG1,
// Analogue out pins
A0 = PF7,
A1 = PF6,
A2 = PF5,
A3 = PF4,
A4 = PF3,
A5 = PF2,
// DAP_UART // DAP_UART
USBTX = PJ1, USBTX = PJ1,
@ -103,10 +102,8 @@ typedef enum {
MBEDIF_RXD = USBRX, MBEDIF_RXD = USBRX,
// Switches // Switches
SW1 = PV0, SW2 = PV3,
SW2 = PV1, USER_BUTTON = PV3,
SW3 = PV2,
SW4 = PV3,
// I2C pins // I2C pins
SDA = D14, SDA = D14,

View File

@ -60,10 +60,10 @@ typedef enum {
PY0 = 19 << 3, PY1, PY2, PY3, PY4, PY0 = 19 << 3, PY1, PY2, PY3, PY4,
// Other mbed Pin Names // Other mbed Pin Names
LED1 = PE4, LED0 = PE4,
LED2 = PE5, LED1 = PE5,
LED3 = PE6, LED2 = PE6,
LED4 = PE7, LED3 = PE7,
// External data bus Pin Names // External data bus Pin Names
D0 = PJ0, D0 = PJ0,
@ -101,11 +101,8 @@ typedef enum {
MBED_CONF_APP_UART0_RX = PE2, MBED_CONF_APP_UART0_RX = PE2,
// Switches // Switches
SW2 = PL4,
USER_BUTTON = PL4, USER_BUTTON = PL4,
SW1 = PL4,
SW2 = PL5,
SW3 = PV0,
SW4 = PV1,
// I2C pins // I2C pins
SDA = PG2, SDA = PG2,