mirror of https://github.com/ARMmbed/mbed-os.git
Addressed review comments: fixed unmapped switches and added Hexiware buttons
parent
ad8f2fcbdf
commit
e52f649555
|
@ -201,6 +201,11 @@ typedef enum {
|
||||||
LED3 = LED_BLUE,
|
LED3 = LED_BLUE,
|
||||||
LED4 = LED_RED,
|
LED4 = LED_RED,
|
||||||
|
|
||||||
|
// Standardized button names
|
||||||
|
BUTTON1 = PTA12,
|
||||||
|
BUTTON2 = PTA13,
|
||||||
|
BUTTON3 = PTA15,
|
||||||
|
|
||||||
// USB Pins
|
// USB Pins
|
||||||
USBTX = PTB17,
|
USBTX = PTB17,
|
||||||
USBRX = PTB16,
|
USBRX = PTB16,
|
||||||
|
|
|
@ -128,8 +128,6 @@ typedef enum {
|
||||||
SW3 = NOT_CONNECTED,
|
SW3 = NOT_CONNECTED,
|
||||||
// Standardized button names
|
// Standardized button names
|
||||||
BUTTON1 = SW1,
|
BUTTON1 = SW1,
|
||||||
BUTTON2 = SW2,
|
|
||||||
BUTTON3 = SW3,
|
|
||||||
|
|
||||||
// USB bridge connected UART pins
|
// USB bridge connected UART pins
|
||||||
USBTX = P0_1,
|
USBTX = P0_1,
|
||||||
|
|
|
@ -81,8 +81,6 @@ typedef enum {
|
||||||
SW3 = NOT_CONNECTED,
|
SW3 = NOT_CONNECTED,
|
||||||
// Standardized button names
|
// Standardized button names
|
||||||
BUTTON1 = SW1,
|
BUTTON1 = SW1,
|
||||||
BUTTON2 = SW2,
|
|
||||||
BUTTON3 = SW3,
|
|
||||||
|
|
||||||
// USB bridge connected UART pins
|
// USB bridge connected UART pins
|
||||||
USBTX = P2_1,
|
USBTX = P2_1,
|
||||||
|
|
|
@ -128,10 +128,15 @@ typedef enum {
|
||||||
LED_YELLOW = GPIO6,
|
LED_YELLOW = GPIO6,
|
||||||
LED_BLUE = GPIO5,
|
LED_BLUE = GPIO5,
|
||||||
USER_BUTTON = GPIO7, /*NEW connection on NCS36510-RF Rev 1.1 - Alias of SW1 */
|
USER_BUTTON = GPIO7, /*NEW connection on NCS36510-RF Rev 1.1 - Alias of SW1 */
|
||||||
// Standardized button names
|
|
||||||
BUTTON1 = USER_BUTTON,
|
|
||||||
SW1 = GPIO7, /*NEW connection on NCS36510-RF Rev 1.1 */
|
SW1 = GPIO7, /*NEW connection on NCS36510-RF Rev 1.1 */
|
||||||
SW2 = GPIO10, /*NEW connection on NCS36510-RF Rev 1.1 */
|
SW2 = GPIO10, /*NEW connection on NCS36510-RF Rev 1.1 */
|
||||||
|
|
||||||
|
// Standardized button names
|
||||||
|
BUTTON1 = USER_BUTTON,
|
||||||
|
BUTTON2 = SW1,
|
||||||
|
BUTTON3 = SW2,
|
||||||
|
|
||||||
SERIAL_TX = GPIO0,
|
SERIAL_TX = GPIO0,
|
||||||
SERIAL_RX = GPIO1,
|
SERIAL_RX = GPIO1,
|
||||||
USBTX = GPIO0,
|
USBTX = GPIO0,
|
||||||
|
|
|
@ -144,6 +144,11 @@ typedef enum {
|
||||||
USER_BUTTON = JOYSTICK_CENTER,
|
USER_BUTTON = JOYSTICK_CENTER,
|
||||||
// Standardized button names
|
// Standardized button names
|
||||||
BUTTON1 = USER_BUTTON,
|
BUTTON1 = USER_BUTTON,
|
||||||
|
BUTTON2 = JOYSTICK_LEFT,
|
||||||
|
BUTTON3 = JOYSTICK_RIGH,
|
||||||
|
BUTTON4 = JOYSTICK_UP,
|
||||||
|
BUTTON5 = JOYSTICK_DOWN,
|
||||||
|
|
||||||
SERIAL_TX = PD_5,
|
SERIAL_TX = PD_5,
|
||||||
SERIAL_RX = PD_6,
|
SERIAL_RX = PD_6,
|
||||||
USBTX = PD_5,
|
USBTX = PD_5,
|
||||||
|
|
Loading…
Reference in New Issue