Skip to content

Add consistent button names across targets #4249

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PinNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ typedef enum {
//Push buttons
SW1 = PTC3,
SW3 = PTC12,
// Standardized button names
BUTTON1 = SW1,
BUTTON2 = SW3,

// USB Pins
USBTX = PTA2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ typedef enum {
//Push buttons
SW2 = PTD11,
SW3 = PTA10,
// Standardized button names
BUTTON1 = SW2,
BUTTON2 = SW3,

// USB Pins
USBTX = PTB17,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ typedef enum {
//Push buttons
SW2 = PTA4,
SW3 = PTC6,
// Standardized button names
BUTTON1 = SW2,
BUTTON2 = SW3,

// USB Pins
USBTX = PTC15,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ typedef enum {
//Push buttons
SW1 = PTA4,
SW3 = PTC1,
// Standardized button names
BUTTON1 = SW1,
BUTTON2 = SW3,

// USB Pins
USBTX = PTA2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ typedef enum {
//Push buttons
SW1 = PTA4,
SW3 = PTC3,
// Standardized button names
BUTTON1 = SW1,
BUTTON2 = SW3,

// USB Pins
USBTX = PTA2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ typedef enum {
//Push buttons
SW2 = PTA4,
SW3 = PTD0,
// Standardized button names
BUTTON1 = SW2,
BUTTON2 = SW3,

// USB Pins
USBTX = PTB17,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ typedef enum {
SW2 = PTE3,
SW3 = PTD1,
SW4 = PTA19,
// Standardized button names
BUTTON1 = SW1,
BUTTON2 = SW2,
BUTTON3 = SW3,
BUTTON4 = SW4,

// USB Pins
USBTX = PTE0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ typedef enum {
//Push buttons
SW3 = PTC4,
SW4 = PTC5,
// Standardized button names
BUTTON1 = SW3,
BUTTON2 = SW4,

// USB Pins
USBTX = PTC7,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ typedef enum {
//Push buttons
SW2 = PTC1,
SW3 = PTB17,
// Standardized button names
BUTTON1 = SW2,
BUTTON2 = SW3,

// USB Pins
USBTX = PTE0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ typedef enum {
//Push buttons
SW2 = PTC6,
SW3 = PTA4,
// Standardized button names
BUTTON1 = SW2,
BUTTON2 = SW3,

// USB Pins
USBTX = PTB17,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ typedef enum {
LED3 = LED_BLUE,
LED4 = LED_RED,

// Standardized button names
BUTTON1 = PTA12,
BUTTON2 = PTA13,
BUTTON3 = PTA15,

// USB Pins
USBTX = PTB17,
USBRX = PTB16,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ typedef enum {
// Push button
SW2 = P6_4,
SW3 = P6_5,
// Standardized button names
BUTTON1 = SW2,
BUTTON2 = SW3,

// UART pins
USBTX = P7_3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ typedef enum {

// Push button
SW1 = P1_5,
// Standardized button names
BUTTON1 = SW1,

// UART Pins
UART0_RX = P1_0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ typedef enum {
SW1 = P2_1,
SW2 = NOT_CONNECTED,
SW3 = NOT_CONNECTED,
// Standardized button names
BUTTON1 = SW1,

// USB bridge connected UART pins
USBTX = P0_1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ typedef enum {
// Push button
SW2 = P2_2,
SW3 = P2_3,
// Standardized button names
BUTTON1 = SW2,
BUTTON2 = SW3,

// USB bridge connected UART pins
USBTX = P2_1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ typedef enum {
SW1 = P4_2,
SW2 = P4_3,
SW3 = P4_4,
// Standardized button names
BUTTON1 = SW1,
BUTTON2 = SW2,
BUTTON3 = SW3,

// USB bridge connected UART pins
USBTX = P2_1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ typedef enum {
SW1 = P2_3,
SW2 = NOT_CONNECTED,
SW3 = NOT_CONNECTED,
// Standardized button names
BUTTON1 = SW1,

// USB bridge connected UART pins
USBTX = P2_1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ typedef enum {
// BTN Names
BTN1 = P0_16,
BTN2 = P0_1,
// Standardized button names
BUTTON1 = BTN1,
BUTTON2 = BTN2,

// UART
UART_TX = P0_19,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ typedef enum {
//xbed lpc1768 Pin Names
LED5 = P2_6,
BTN1 = P2_8,
// Standardized button names
BUTTON1 = BTN1,
SDA = P0_27,
SCL = P0_28,
ISP = P2_10,
Expand Down
2 changes: 2 additions & 0 deletions targets/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/PinNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,8 @@ typedef enum {
LED_BLUE = LED4,

BTN1 = P2_7,
// Standardized button names
BUTTON1 = BTN1,

// Serial pins - UART, SPI, I2C
// 210E 210 200E 200
Expand Down
6 changes: 6 additions & 0 deletions targets/TARGET_ONSEMI/TARGET_NCS36510/PinNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,14 @@ typedef enum {
LED_YELLOW = GPIO6,
LED_BLUE = GPIO5,
USER_BUTTON = GPIO7, /*NEW connection on NCS36510-RF Rev 1.1 - Alias of SW1 */

SW1 = GPIO7, /*NEW connection on NCS36510-RF Rev 1.1 */
SW2 = GPIO10, /*NEW connection on NCS36510-RF Rev 1.1 */

// Standardized button names
BUTTON1 = SW1,
BUTTON2 = SW2,

SERIAL_TX = GPIO0,
SERIAL_RX = GPIO1,
USBTX = GPIO0,
Expand Down
2 changes: 2 additions & 0 deletions targets/TARGET_RENESAS/TARGET_RZ_A1H/PinNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ typedef enum {
I2C_SDA = D14,

USER_BUTTON0 = P6_0,
// Standardized button names
BUTTON1 = USER_BUTTON0,

// Not connected
NC = (int)0xFFFFFFFF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ typedef enum {
LED3 = PC_9,
LED4 = PC_8,
USER_BUTTON = PA_0,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_3,
USBTX = PA_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ typedef enum {
LED3 = PA_5,
LED4 = PA_5,
USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_3,
USBTX = PA_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ typedef enum {
LED3 = PA_5,
LED4 = PA_5,
USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_3,
USBTX = PA_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ typedef enum {
LED3 = PA_5,
LED4 = PA_5,
USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_3,
USBTX = PA_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ typedef enum {
LED3 = PA_5,
LED4 = PA_5,
USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_3,
USBTX = PA_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ typedef enum {
LED3 = PC_9,
LED4 = PC_8,
USER_BUTTON = PA_0,
// Standardized button names
BUTTON1 = USER_BUTTON,
USBTX = PA_2,
USBRX = PA_3,
I2C_SCL = PB_6,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ typedef enum {
LED3 = PA_5,
LED4 = PA_5,
USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_3,
USBTX = PA_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ typedef enum {
LED3 = PB_14,
LED4 = LED1,
USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PD_8,
SERIAL_RX = PD_9,
USBTX = SERIAL_TX,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ typedef enum {
LED3 = PB_13,
LED4 = PB_13,
USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_3,
USBTX = PA_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ typedef enum {
LED3 = PB_3,
LED4 = PB_3,
USER_BUTTON = 0x20, // no user button on the board
Copy link
Contributor Author

@kegilbert kegilbert Apr 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This switch is specified as not existing, left the new button map in but could also pull it out since it's not really needed.

Copy link
Contributor

@0xc0170 0xc0170 May 2, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bcostm Is this used in the apps somewhere? I assume as all of ST are defining USER_BUTTON

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no user button on the small Nucleo 32 pins boards like this one. This definition was probably left by mistake...

// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_15,
USBTX = PA_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ typedef enum {
LED9 = PE_12,
LED10 = PE_13,
USER_BUTTON = PA_0,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_3,
USBTX = PA_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ typedef enum {
LED3 = PA_5,
LED4 = PA_5,
USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_3,
USBTX = PA_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ typedef enum {
LED3 = PB_14,
LED4 = LED1,
USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PD_8, // Virtual Com Port
SERIAL_RX = PD_9, // Virtual Com Port
USBTX = SERIAL_TX, // Virtual Com Port
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ typedef enum {
LED3 = PB_8,
LED4 = PB_9,
USER_BUTTON = PA_0,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PB_3,
SERIAL_RX = PB_4,
USBTX = PB_3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ typedef enum {
LED3 = PA_5,
LED4 = PA_5,
USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_3,
USBTX = PA_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ typedef enum {
LED4 = PD_15,
LED_RED = LED1,
USER_BUTTON = PA_0,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_3,
USBTX = PA_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ typedef enum {
LED4 = PA_5,
LED_RED = LED1,
USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_3,
USBTX = PA_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ typedef enum {
LED6 = PD_15,
LED_RED = LED1,
USER_BUTTON = PA_0,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, /* USART2 */
SERIAL_RX = PA_3,
USBTX = PA_2, /* USART2 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ typedef enum {
LED4 = PA_5,
LED_RED = LED1,
USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_3,
USBTX = PA_2,
Expand Down
Loading