@@ -42,18 +42,18 @@ extern "C"
4242#define NUM_ANALOG_OUTPUTS (0u)
4343
4444// LEDs
45- #define PIN_LED (13)
45+ #define PIN_LED (13) // P0.13
4646#define LED_BUILTIN PIN_LED
4747
4848/*
4949 * Analog pins
5050 */
51- #define PIN_A0 (1)
52- #define PIN_A1 (2)
53- #define PIN_A2 (3)
54- #define PIN_A3 (4)
55- #define PIN_A4 (5)
56- #define PIN_A5 (6)
51+ #define PIN_A0 (1) // P0.01
52+ #define PIN_A1 (2) // P0.02
53+ #define PIN_A2 (3) // P0.03
54+ #define PIN_A3 (4) // P0.04
55+ #define PIN_A4 (5) // P0.05
56+ #define PIN_A5 (6) // P0.06
5757
5858static const uint8_t A0 = PIN_A0 ;
5959static const uint8_t A1 = PIN_A1 ;
@@ -71,19 +71,19 @@ static const uint8_t A5 = PIN_A5 ;
7171 * Serial interfaces
7272 */
7373// Serial
74- #define PIN_SERIAL_RX (0)
75- #define PIN_SERIAL_TX (1)
74+ #define PIN_SERIAL_RX (0) // P0.00
75+ #define PIN_SERIAL_TX (1) // P0.01
7676
7777/*
7878 * SPI Interfaces
7979 */
8080#define SPI_INTERFACES_COUNT 1
8181
82- #define PIN_SPI_MISO (22)
83- #define PIN_SPI_MOSI (23)
84- #define PIN_SPI_SCK (24)
82+ #define PIN_SPI_MISO (22) // P0.22
83+ #define PIN_SPI_MOSI (23) // P0.23
84+ #define PIN_SPI_SCK (24) // P0.24
8585
86- static const uint8_t SS = 25 ;
86+ static const uint8_t SS = 25 ; // P0.25
8787static const uint8_t MOSI = PIN_SPI_MOSI ;
8888static const uint8_t MISO = PIN_SPI_MISO ;
8989static const uint8_t SCK = PIN_SPI_SCK ;
@@ -93,8 +93,8 @@ static const uint8_t SCK = PIN_SPI_SCK ;
9393 */
9494#define WIRE_INTERFACES_COUNT 1
9595
96- #define PIN_WIRE_SDA (20u)
97- #define PIN_WIRE_SCL (21u)
96+ #define PIN_WIRE_SDA (20u) // P0.20
97+ #define PIN_WIRE_SCL (21u) // P0.21
9898
9999static const uint8_t SDA = PIN_WIRE_SDA ;
100100static const uint8_t SCL = PIN_WIRE_SCL ;
0 commit comments