Added mapping to BTN-labelled switches

pull/4249/head
Kevin Gilbert 2017-04-28 11:16:23 -05:00
parent 77cc87b050
commit 83a510751b
13 changed files with 37 additions and 0 deletions

View File

@ -106,6 +106,9 @@ typedef enum {
// BTN Names // BTN Names
BTN1 = P0_16, BTN1 = P0_16,
BTN2 = P0_1, BTN2 = P0_1,
// Standardized button names
BUTTON1 = BTN1,
BUTTON2 = BTN2,
// UART // UART
UART_TX = P0_19, UART_TX = P0_19,

View File

@ -79,6 +79,8 @@ typedef enum {
//xbed lpc1768 Pin Names //xbed lpc1768 Pin Names
LED5 = P2_6, LED5 = P2_6,
BTN1 = P2_8, BTN1 = P2_8,
// Standardized button names
BUTTON1 = BTN1,
SDA = P0_27, SDA = P0_27,
SCL = P0_28, SCL = P0_28,
ISP = P2_10, ISP = P2_10,

View File

@ -615,6 +615,8 @@ typedef enum {
LED_BLUE = LED4, LED_BLUE = LED4,
BTN1 = P2_7, BTN1 = P2_7,
// Standardized button names
BUTTON1 = BTN1,
// Serial pins - UART, SPI, I2C // Serial pins - UART, SPI, I2C
// 210E 210 200E 200 // 210E 210 200E 200

View File

@ -44,6 +44,9 @@ typedef enum {
SW1 = PB10, SW1 = PB10,
BTN0 = SW0, BTN0 = SW0,
BTN1 = SW1, BTN1 = SW1,
// Standardized button names
BUTTON1 = BTN0,
BUTTON2 = BTN1,
/* Serial */ /* Serial */
SERIAL_TX = PD0, SERIAL_TX = PD0,

View File

@ -44,6 +44,9 @@ typedef enum {
SW1 = PC10, SW1 = PC10,
BTN0 = SW0, BTN0 = SW0,
BTN1 = SW1, BTN1 = SW1,
// Standardized button names
BUTTON1 = BTN0,
BUTTON2 = BTN1,
/* Serial */ /* Serial */
SERIAL_TX = PE10, SERIAL_TX = PE10,

View File

@ -44,6 +44,9 @@ typedef enum {
SW1 = PB10, SW1 = PB10,
BTN0 = SW0, BTN0 = SW0,
BTN1 = SW1, BTN1 = SW1,
// Standardized button names
BUTTON1 = BTN0,
BUTTON2 = BTN1,
/* Serial */ /* Serial */
SERIAL_TX = PD0, SERIAL_TX = PD0,

View File

@ -44,6 +44,9 @@ typedef enum {
SW1 = PF7, SW1 = PF7,
BTN0 = SW0, BTN0 = SW0,
BTN1 = SW1, BTN1 = SW1,
// Standardized button names
BUTTON1 = BTN0,
BUTTON2 = BTN1,
/* Serial (just some usable pins) */ /* Serial (just some usable pins) */
SERIAL_TX = PD10, SERIAL_TX = PD10,

View File

@ -44,6 +44,9 @@ typedef enum {
SW1 = PF7, SW1 = PF7,
BTN0 = SW0, BTN0 = SW0,
BTN1 = SW1, BTN1 = SW1,
// Standardized button names
BUTTON1 = BTN0,
BUTTON2 = BTN1,
/* Expansion headers */ /* Expansion headers */
EXP3 = PA8, EXP3 = PA8,

View File

@ -44,6 +44,9 @@ typedef enum {
SW1 = PB10, SW1 = PB10,
BTN0 = SW0, BTN0 = SW0,
BTN1 = SW1, BTN1 = SW1,
// Standardized button names
BUTTON1 = BTN0,
BUTTON2 = BTN1,
/* Serial */ /* Serial */
SERIAL_TX = PD0, SERIAL_TX = PD0,

View File

@ -44,6 +44,9 @@ typedef enum {
SW1 = PC9, SW1 = PC9,
BTN0 = SW0, BTN0 = SW0,
BTN1 = SW1, BTN1 = SW1,
// Standardized button names
BUTTON1 = BTN0,
BUTTON2 = BTN1,
/* Serial */ /* Serial */
SERIAL_TX = PD7, SERIAL_TX = PD7,

View File

@ -44,6 +44,9 @@ typedef enum {
SW1 = PF7, SW1 = PF7,
BTN0 = SW0, BTN0 = SW0,
BTN1 = SW1, BTN1 = SW1,
// Standardized button names
BUTTON1 = BTN0,
BUTTON2 = BTN1,
/* Serial (just some usable pins) */ /* Serial (just some usable pins) */
SERIAL_TX = PD10, SERIAL_TX = PD10,

View File

@ -44,6 +44,9 @@ typedef enum {
SW1 = PD15, SW1 = PD15,
BTN0 = SW0, BTN0 = SW0,
BTN1 = SW1, BTN1 = SW1,
// Standardized button names
BUTTON1 = BTN0,
BUTTON2 = BTN1,
/* Serial (just some usable pins) */ /* Serial (just some usable pins) */
SERIAL_TX = PD10, SERIAL_TX = PD10,

View File

@ -44,6 +44,9 @@ typedef enum {
SW1 = PD15, SW1 = PD15,
BTN0 = SW0, BTN0 = SW0,
BTN1 = SW1, BTN1 = SW1,
// Standardized button names
BUTTON1 = BTN0,
BUTTON2 = BTN1,
/* Expansion headers */ /* Expansion headers */
EXP3 = PA8, EXP3 = PA8,