Added mapping to USER_BUTTON-labelled switches

Revert HRM1017 file source deletion

Added in small comment next to additions

Added mapping to BTN-labelled switches

Added mapping to USER_BUTTON-labelled switches

Undo incorrect mapping to SWIO pin in NORDIC target
pull/4249/head
Kevin Gilbert 2017-04-28 11:18:28 -05:00
parent 83a510751b
commit 28d1ac5a44
62 changed files with 257 additions and 1 deletions

View File

@ -203,6 +203,7 @@ typedef enum {
//Push buttons //Push buttons
SW1 = PTC3, SW1 = PTC3,
SW3 = PTC12, SW3 = PTC12,
// Standardized button names
BUTTON1 = SW1, BUTTON1 = SW1,
BUTTON2 = SW3, BUTTON2 = SW3,

View File

@ -204,6 +204,7 @@ typedef enum {
//Push buttons //Push buttons
SW2 = PTD11, SW2 = PTD11,
SW3 = PTA10, SW3 = PTA10,
// Standardized button names
BUTTON1 = SW2, BUTTON1 = SW2,
BUTTON2 = SW3, BUTTON2 = SW3,

View File

@ -134,6 +134,7 @@ typedef enum {
//Push buttons //Push buttons
SW2 = PTA4, SW2 = PTA4,
SW3 = PTC6, SW3 = PTC6,
// Standardized button names
BUTTON1 = SW2, BUTTON1 = SW2,
BUTTON2 = SW3, BUTTON2 = SW3,

View File

@ -98,6 +98,7 @@ typedef enum {
//Push buttons //Push buttons
SW1 = PTA4, SW1 = PTA4,
SW3 = PTC1, SW3 = PTC1,
// Standardized button names
BUTTON1 = SW1, BUTTON1 = SW1,
BUTTON2 = SW3, BUTTON2 = SW3,

View File

@ -97,6 +97,7 @@ typedef enum {
//Push buttons //Push buttons
SW1 = PTA4, SW1 = PTA4,
SW3 = PTC3, SW3 = PTC3,
// Standardized button names
BUTTON1 = SW1, BUTTON1 = SW1,
BUTTON2 = SW3, BUTTON2 = SW3,

View File

@ -118,6 +118,7 @@ typedef enum {
//Push buttons //Push buttons
SW2 = PTA4, SW2 = PTA4,
SW3 = PTD0, SW3 = PTD0,
// Standardized button names
BUTTON1 = SW2, BUTTON1 = SW2,
BUTTON2 = SW3, BUTTON2 = SW3,

View File

@ -82,6 +82,7 @@ typedef enum {
SW2 = PTE3, SW2 = PTE3,
SW3 = PTD1, SW3 = PTD1,
SW4 = PTA19, SW4 = PTA19,
// Standardized button names
BUTTON1 = SW1, BUTTON1 = SW1,
BUTTON2 = SW2, BUTTON2 = SW2,
BUTTON3 = SW3, BUTTON3 = SW3,

View File

@ -69,6 +69,7 @@ typedef enum {
//Push buttons //Push buttons
SW3 = PTC4, SW3 = PTC4,
SW4 = PTC5, SW4 = PTC5,
// Standardized button names
BUTTON1 = SW3, BUTTON1 = SW3,
BUTTON2 = SW4, BUTTON2 = SW4,

View File

@ -204,6 +204,7 @@ typedef enum {
//Push buttons //Push buttons
SW2 = PTC1, SW2 = PTC1,
SW3 = PTB17, SW3 = PTB17,
// Standardized button names
BUTTON1 = SW2, BUTTON1 = SW2,
BUTTON2 = SW3, BUTTON2 = SW3,

View File

@ -204,6 +204,7 @@ typedef enum {
//Push buttons //Push buttons
SW2 = PTC6, SW2 = PTC6,
SW3 = PTA4, SW3 = PTA4,
// Standardized button names
BUTTON1 = SW2, BUTTON1 = SW2,
BUTTON2 = SW3, BUTTON2 = SW3,

View File

@ -184,6 +184,7 @@ typedef enum {
// Push button // Push button
SW2 = P6_4, SW2 = P6_4,
SW3 = P6_5, SW3 = P6_5,
// Standardized button names
BUTTON1 = SW2, BUTTON1 = SW2,
BUTTON2 = SW3, BUTTON2 = SW3,

View File

@ -128,6 +128,7 @@ typedef enum {
// Push button // Push button
SW1 = P1_5, SW1 = P1_5,
// Standardized button names
BUTTON1 = SW1, BUTTON1 = SW1,
// UART Pins // UART Pins

View File

@ -126,6 +126,7 @@ typedef enum {
SW1 = P2_1, SW1 = P2_1,
SW2 = NOT_CONNECTED, SW2 = NOT_CONNECTED,
SW3 = NOT_CONNECTED, SW3 = NOT_CONNECTED,
// Standardized button names
BUTTON1 = SW1, BUTTON1 = SW1,
BUTTON2 = SW2, BUTTON2 = SW2,
BUTTON3 = SW3, BUTTON3 = SW3,

View File

@ -76,6 +76,7 @@ typedef enum {
// Push button // Push button
SW2 = P2_2, SW2 = P2_2,
SW3 = P2_3, SW3 = P2_3,
// Standardized button names
BUTTON1 = SW2, BUTTON1 = SW2,
BUTTON2 = SW3, BUTTON2 = SW3,

View File

@ -75,6 +75,7 @@ typedef enum {
SW1 = P4_2, SW1 = P4_2,
SW2 = P4_3, SW2 = P4_3,
SW3 = P4_4, SW3 = P4_4,
// Standardized button names
BUTTON1 = SW1, BUTTON1 = SW1,
BUTTON2 = SW2, BUTTON2 = SW2,
BUTTON3 = SW3, BUTTON3 = SW3,

View File

@ -79,6 +79,7 @@ typedef enum {
SW1 = P2_3, SW1 = P2_3,
SW2 = NOT_CONNECTED, SW2 = NOT_CONNECTED,
SW3 = NOT_CONNECTED, SW3 = NOT_CONNECTED,
// Standardized button names
BUTTON1 = SW1, BUTTON1 = SW1,
BUTTON2 = SW2, BUTTON2 = SW2,
BUTTON3 = SW3, BUTTON3 = SW3,

View File

@ -136,7 +136,6 @@ typedef enum {
A4 = p6, A4 = p6,
SWIO = p19, SWIO = p19,
BUTTON1 = SWIO,
VERF0 = p0, VERF0 = p0,
// SPI for controlling internal flash, don't use it. // SPI for controlling internal flash, don't use it.

View File

@ -0,0 +1,153 @@
/* mbed Microcontroller Library
* Copyright (c) 2013 Nordic Semiconductor
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef MBED_PINNAMES_H
#define MBED_PINNAMES_H
#include "cmsis.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
PIN_INPUT,
PIN_OUTPUT
} PinDirection;
#define PORT_SHIFT 3
typedef enum {
p0 = 0,
p1 = 1,
p2 = 2,
p3 = 3,
p4 = 4,
p5 = 5,
p6 = 6,
p7 = 7,
p8 = 8,
p9 = 9,
p10 = 10,
p11 = 11,
p12 = 12,
p13 = 13,
p14 = 14,
p15 = 15,
p16 = 16,
p17 = 17,
p18 = 18,
p19 = 19,
p20 = 20,
p21 = 21,
p22 = 22,
p23 = 23,
p24 = 24,
p25 = 25,
p26 = 26,
p27 = 27,
p28 = 28,
p29 = 29,
p30 = 30,
// p31=31,
P0_0 = p0,
P0_1 = p1,
P0_2 = p2,
P0_3 = p3,
P0_4 = p4,
P0_5 = p5,
P0_6 = p6,
P0_7 = p7,
P0_8 = p8,
P0_9 = p9,
P0_10 = p10,
P0_11 = p11,
P0_12 = p12,
P0_13 = p13,
P0_14 = p14,
P0_15 = p15,
P0_16 = p16,
P0_17 = p17,
P0_18 = p18,
P0_19 = p19,
P0_20 = p20,
P0_21 = p21,
P0_22 = p22,
P0_23 = p23,
P0_24 = p24,
P0_25 = p25,
P0_26 = p26,
P0_27 = p27,
P0_28 = p28,
P0_29 = p29,
P0_30 = p30,
LED1 = p18,
LED2 = p19,
LED3 = p18,
LED4 = p19,
BUTTON1 = p16,
BUTTON2 = p17,
RX_PIN_NUMBER = p11,
TX_PIN_NUMBER = p9,
CTS_PIN_NUMBER = p10,
RTS_PIN_NUMBER = p8,
// mBed interface Pins
USBTX = TX_PIN_NUMBER,
USBRX = RX_PIN_NUMBER,
SPI_PSELMOSI0 = p20,
SPI_PSELMISO0 = p22,
SPI_PSELSS0 = p24,
SPI_PSELSCK0 = p25,
SPI_PSELMOSI1 = p12,
SPI_PSELMISO1 = p13,
SPI_PSELSS1 = p14,
SPI_PSELSCK1 = p15,
SPIS_PSELMOSI = p12,
SPIS_PSELMISO = p13,
SPIS_PSELSS = p14,
SPIS_PSELSCK = p15,
I2C_SDA0 = p22,
I2C_SCL0 = p20,
I2C_SDA1 = p13,
I2C_SCL1 = p15,
// Not connected
NC = (int)0xFFFFFFFF
} PinName;
typedef enum {
PullNone = 0,
PullDown = 1,
PullUp = 3,
PullDefault = PullUp
} PinMode;
#ifdef __cplusplus
}
#endif
#endif

View File

@ -128,6 +128,8 @@ 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 */
SERIAL_TX = GPIO0, SERIAL_TX = GPIO0,

View File

@ -87,6 +87,8 @@ typedef enum {
I2C_SDA = D14, I2C_SDA = D14,
USER_BUTTON0 = P6_0, USER_BUTTON0 = P6_0,
// Standardized button names
BUTTON1 = USER_BUTTON0,
// Not connected // Not connected
NC = (int)0xFFFFFFFF NC = (int)0xFFFFFFFF

View File

@ -186,6 +186,8 @@ typedef enum {
LED3 = PC_9, LED3 = PC_9,
LED4 = PC_8, LED4 = PC_8,
USER_BUTTON = PA_0, USER_BUTTON = PA_0,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -133,6 +133,8 @@ typedef enum {
LED3 = PA_5, LED3 = PA_5,
LED4 = PA_5, LED4 = PA_5,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -129,6 +129,8 @@ typedef enum {
LED3 = PA_5, LED3 = PA_5,
LED4 = PA_5, LED4 = PA_5,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -129,6 +129,8 @@ typedef enum {
LED3 = PA_5, LED3 = PA_5,
LED4 = PA_5, LED4 = PA_5,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -130,6 +130,8 @@ typedef enum {
LED3 = PA_5, LED3 = PA_5,
LED4 = PA_5, LED4 = PA_5,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -150,6 +150,8 @@ typedef enum {
LED3 = PC_9, LED3 = PC_9,
LED4 = PC_8, LED4 = PC_8,
USER_BUTTON = PA_0, USER_BUTTON = PA_0,
// Standardized button names
BUTTON1 = USER_BUTTON,
USBTX = PA_2, USBTX = PA_2,
USBRX = PA_3, USBRX = PA_3,
I2C_SCL = PB_6, I2C_SCL = PB_6,

View File

@ -125,6 +125,8 @@ typedef enum {
LED3 = PA_5, LED3 = PA_5,
LED4 = PA_5, LED4 = PA_5,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -230,6 +230,8 @@ typedef enum {
LED3 = PB_14, LED3 = PB_14,
LED4 = LED1, LED4 = LED1,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PD_8, SERIAL_TX = PD_8,
SERIAL_RX = PD_9, SERIAL_RX = PD_9,
USBTX = SERIAL_TX, USBTX = SERIAL_TX,

View File

@ -129,6 +129,8 @@ typedef enum {
LED3 = PB_13, LED3 = PB_13,
LED4 = PB_13, LED4 = PB_13,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -104,6 +104,8 @@ typedef enum {
LED3 = PB_3, LED3 = PB_3,
LED4 = PB_3, LED4 = PB_3,
USER_BUTTON = 0x20, // no user button on the board USER_BUTTON = 0x20, // no user button on the board
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_15, SERIAL_RX = PA_15,
USBTX = PA_2, USBTX = PA_2,

View File

@ -189,6 +189,8 @@ typedef enum {
LED9 = PE_12, LED9 = PE_12,
LED10 = PE_13, LED10 = PE_13,
USER_BUTTON = PA_0, USER_BUTTON = PA_0,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -137,6 +137,8 @@ typedef enum {
LED3 = PA_5, LED3 = PA_5,
LED4 = PA_5, LED4 = PA_5,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -204,6 +204,8 @@ typedef enum {
LED3 = PB_14, LED3 = PB_14,
LED4 = LED1, LED4 = LED1,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PD_8, // Virtual Com Port SERIAL_TX = PD_8, // Virtual Com Port
SERIAL_RX = PD_9, // Virtual Com Port SERIAL_RX = PD_9, // Virtual Com Port
USBTX = SERIAL_TX, // Virtual Com Port USBTX = SERIAL_TX, // Virtual Com Port

View File

@ -119,6 +119,8 @@ typedef enum {
LED3 = PB_8, LED3 = PB_8,
LED4 = PB_9, LED4 = PB_9,
USER_BUTTON = PA_0, USER_BUTTON = PA_0,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PB_3, SERIAL_TX = PB_3,
SERIAL_RX = PB_4, SERIAL_RX = PB_4,
USBTX = PB_3, USBTX = PB_3,

View File

@ -132,6 +132,8 @@ typedef enum {
LED3 = PA_5, LED3 = PA_5,
LED4 = PA_5, LED4 = PA_5,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -120,6 +120,8 @@ typedef enum {
LED4 = PD_15, LED4 = PD_15,
LED_RED = LED1, LED_RED = LED1,
USER_BUTTON = PA_0, USER_BUTTON = PA_0,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -129,6 +129,8 @@ typedef enum {
LED4 = PA_5, LED4 = PA_5,
LED_RED = LED1, LED_RED = LED1,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -205,6 +205,8 @@ typedef enum {
LED6 = PD_15, LED6 = PD_15,
LED_RED = LED1, LED_RED = LED1,
USER_BUTTON = PA_0, USER_BUTTON = PA_0,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, /* USART2 */ SERIAL_TX = PA_2, /* USART2 */
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, /* USART2 */ USBTX = PA_2, /* USART2 */

View File

@ -129,6 +129,8 @@ typedef enum {
LED4 = PA_5, LED4 = PA_5,
LED_RED = LED1, LED_RED = LED1,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -131,6 +131,8 @@ typedef enum {
LED3 = PB_0, LED3 = PB_0,
LED4 = PB_1, LED4 = PB_1,
USER_BUTTON = PB_7, USER_BUTTON = PB_7,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_9, SERIAL_TX = PA_9,
SERIAL_RX = PA_10, SERIAL_RX = PA_10,
USBTX = PA_9, USBTX = PA_9,

View File

@ -129,6 +129,8 @@ typedef enum {
LED4 = PA_5, LED4 = PA_5,
LED_RED = LED1, LED_RED = LED1,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -182,6 +182,8 @@ typedef enum {
LED4 = LED1, LED4 = LED1,
LED_RED = LED1, LED_RED = LED1,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PD_8, SERIAL_TX = PD_8,
SERIAL_RX = PD_9, SERIAL_RX = PD_9,
USBTX = SERIAL_TX, USBTX = SERIAL_TX,

View File

@ -172,6 +172,8 @@ typedef enum {
LED4 = PG_14, LED4 = PG_14,
LED_RED = LED2, LED_RED = LED2,
USER_BUTTON = PA_0, USER_BUTTON = PA_0,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_9, SERIAL_TX = PA_9,
SERIAL_RX = PA_10, SERIAL_RX = PA_10,
USBTX = PA_9, USBTX = PA_9,

View File

@ -196,6 +196,8 @@ typedef enum {
LED4 = PB_0, LED4 = PB_0,
LED_RED = LED2, LED_RED = LED2,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PD_8, // Virtual Com Port SERIAL_TX = PD_8, // Virtual Com Port
SERIAL_RX = PD_9, // Virtual Com Port SERIAL_RX = PD_9, // Virtual Com Port
USBTX = PD_8, // Virtual Com Port USBTX = PD_8, // Virtual Com Port

View File

@ -196,6 +196,8 @@ typedef enum {
LED4 = PB_0, LED4 = PB_0,
LED_RED = LED2, LED_RED = LED2,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PD_8, // Virtual Com Port SERIAL_TX = PD_8, // Virtual Com Port
SERIAL_RX = PD_9, // Virtual Com Port SERIAL_RX = PD_9, // Virtual Com Port
USBTX = PD_8, // Virtual Com Port USBTX = PD_8, // Virtual Com Port

View File

@ -161,6 +161,8 @@ typedef enum {
LED4 = PD_12, LED4 = PD_12,
LED_RED = LED1, LED_RED = LED1,
USER_BUTTON = PD_13, USER_BUTTON = PD_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PC_10, SERIAL_TX = PC_10,
SERIAL_RX = PC_11, SERIAL_RX = PC_11,
USBTX = SERIAL_TX, USBTX = SERIAL_TX,

View File

@ -129,6 +129,8 @@ typedef enum {
LED4 = PA_5, LED4 = PA_5,
LED_RED = LED1, LED_RED = LED1,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -197,6 +197,8 @@ typedef enum {
LED4 = LED1, LED4 = LED1,
LED_RED = LED3, LED_RED = LED3,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PD_8, // Virtual Com Port SERIAL_TX = PD_8, // Virtual Com Port
SERIAL_RX = PD_9, // Virtual Com Port SERIAL_RX = PD_9, // Virtual Com Port
USBTX = SERIAL_TX, // Virtual Com Port USBTX = SERIAL_TX, // Virtual Com Port

View File

@ -246,6 +246,8 @@ typedef enum {
LED7 = PD_3, LED7 = PD_3,
LED_RED = LED1, LED_RED = LED1,
USER_BUTTON = PA_0, USER_BUTTON = PA_0,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PB_10, SERIAL_TX = PB_10,
SERIAL_RX = PB_11, SERIAL_RX = PB_11,
USBTX = PB_10, USBTX = PB_10,

View File

@ -252,6 +252,8 @@ typedef enum {
LED3 = PI_1, LED3 = PI_1,
LED4 = PI_1, LED4 = PI_1,
USER_BUTTON = PI_11, USER_BUTTON = PI_11,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_9, // Virtual Com Port SERIAL_TX = PA_9, // Virtual Com Port
SERIAL_RX = PB_7, // Virtual Com Port SERIAL_RX = PB_7, // Virtual Com Port
USBTX = PA_9, // Virtual Com Port USBTX = PA_9, // Virtual Com Port

View File

@ -195,6 +195,8 @@ typedef enum {
LED3 = PB_14, // Red LED3 = PB_14, // Red
LED4 = PB_0, LED4 = PB_0,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PD_8, // Virtual Com Port SERIAL_TX = PD_8, // Virtual Com Port
SERIAL_RX = PD_9, // Virtual Com Port SERIAL_RX = PD_9, // Virtual Com Port
USBTX = PD_8, // Virtual Com Port USBTX = PD_8, // Virtual Com Port

View File

@ -195,6 +195,8 @@ typedef enum {
LED3 = PB_14, // Red LED3 = PB_14, // Red
LED4 = PB_0, LED4 = PB_0,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PD_8, // Virtual Com Port SERIAL_TX = PD_8, // Virtual Com Port
SERIAL_RX = PD_9, // Virtual Com Port SERIAL_RX = PD_9, // Virtual Com Port
USBTX = PD_8, // Virtual Com Port USBTX = PD_8, // Virtual Com Port

View File

@ -195,6 +195,8 @@ typedef enum {
LED3 = PB_14, // Red LED3 = PB_14, // Red
LED4 = PB_0, LED4 = PB_0,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PD_8, // Virtual Com Port SERIAL_TX = PD_8, // Virtual Com Port
SERIAL_RX = PD_9, // Virtual Com Port SERIAL_RX = PD_9, // Virtual Com Port
USBTX = PD_8, // Virtual Com Port USBTX = PD_8, // Virtual Com Port

View File

@ -252,6 +252,8 @@ typedef enum {
LED3 = PA_12, // LD3 = GREEN LED3 = PA_12, // LD3 = GREEN
LED4 = PJ_13, LED4 = PJ_13,
USER_BUTTON = PA_0, USER_BUTTON = PA_0,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_9, // Virtual Com Port SERIAL_TX = PA_9, // Virtual Com Port
SERIAL_RX = PA_10, // Virtual Com Port SERIAL_RX = PA_10, // Virtual Com Port
USBTX = PA_9, // Virtual Com Port USBTX = PA_9, // Virtual Com Port

View File

@ -116,6 +116,8 @@ typedef enum {
LED3 = PB_4, LED3 = PB_4,
LED4 = PA_5, LED4 = PA_5,
USER_BUTTON = PA_0, USER_BUTTON = PA_0,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_9, SERIAL_TX = PA_9,
SERIAL_RX = PA_10, SERIAL_RX = PA_10,
USBTX = PA_9, USBTX = PA_9,

View File

@ -129,6 +129,8 @@ typedef enum {
LED3 = PA_5, LED3 = PA_5,
LED4 = PA_5, LED4 = PA_5,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -129,6 +129,8 @@ typedef enum {
LED3 = PA_5, LED3 = PA_5,
LED4 = PA_5, LED4 = PA_5,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -128,6 +128,8 @@ typedef enum {
LED3 = PA_5, LED3 = PA_5,
LED4 = PA_5, LED4 = PA_5,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -104,6 +104,8 @@ typedef enum {
LED3 = PB_2, LED3 = PB_2,
LED4 = PB_2, LED4 = PB_2,
USER_BUTTON = PC_3, USER_BUTTON = PC_3,
// Standardized button names
BUTTON1 = USER_BUTTON,
#if (MX_DEFAULT_SERIAL_PINS == 0) #if (MX_DEFAULT_SERIAL_PINS == 0)
//Use B10/B11 as default serial port //Use B10/B11 as default serial port

View File

@ -142,6 +142,8 @@ typedef enum {
JOYSTICK_UP = PA_3, JOYSTICK_UP = PA_3,
JOYSTICK_DOWN = PA_5, JOYSTICK_DOWN = PA_5,
USER_BUTTON = JOYSTICK_CENTER, USER_BUTTON = JOYSTICK_CENTER,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PD_5, SERIAL_TX = PD_5,
SERIAL_RX = PD_6, SERIAL_RX = PD_6,
USBTX = PD_5, USBTX = PD_5,

View File

@ -129,6 +129,8 @@ typedef enum {
LED3 = PA_5, LED3 = PA_5,
LED4 = PA_5, LED4 = PA_5,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,

View File

@ -129,6 +129,8 @@ typedef enum {
LED3 = PA_5, LED3 = PA_5,
LED4 = PA_5, LED4 = PA_5,
USER_BUTTON = PC_13, USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2, SERIAL_TX = PA_2,
SERIAL_RX = PA_3, SERIAL_RX = PA_3,
USBTX = PA_2, USBTX = PA_2,