Skip to content

Commit 5101023

Browse files
authored
Merge pull request #109 from facchinm/pins_unor4_macro
Fix pin numbers macros on UNO R4
2 parents b4c25f7 + 3b5c7ef commit 5101023

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

variants/MINIMA/pins_arduino.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
extern "C" unsigned int PINCOUNT_fn();
99
#endif
1010
#define PINS_COUNT (PINCOUNT_fn())
11-
#define NUM_DIGITAL_PINS (22u)
11+
#define NUM_DIGITAL_PINS (20u)
1212
#define NUM_ANALOG_INPUTS (6u)
1313
#define NUM_ANALOG_OUTPUTS (1u)
1414

variants/MINIMA/variant.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ extern "C" const PinMuxCfg_t g_pin_cfg[] = {
4848
{ BSP_IO_PORT_05_PIN_00, P500 }, /* (20) Analog voltage measure pin */
4949
{ BSP_IO_PORT_00_PIN_12, P012 }, /* (21) TX LED */
5050
{ BSP_IO_PORT_00_PIN_13, P013 }, /* (22) RX LED */
51+
52+
{ BSP_IO_PORT_05_PIN_01, P501 }, /* (23) TX on SWD connector */
53+
{ BSP_IO_PORT_05_PIN_02, P502 }, /* (24) RX on SWD connector */
54+
{ BSP_IO_PORT_01_PIN_08, P108 }, /* (25) SWDIO */
55+
{ BSP_IO_PORT_03_PIN_00, P300 }, /* (26) SWCLK */
5156
};
5257

5358
extern "C" {

variants/UNOWIFIR4/pins_arduino.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
extern "C" unsigned int PINCOUNT_fn();
99
#endif
1010
#define PINS_COUNT (PINCOUNT_fn())
11-
#define NUM_DIGITAL_PINS (22u)
11+
#define NUM_DIGITAL_PINS (20u)
1212
#define NUM_ANALOG_INPUTS (6u)
1313
#define NUM_ANALOG_OUTPUTS (1u)
1414

0 commit comments

Comments
 (0)