We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31b844b commit fbd7c4eCopy full SHA for fbd7c4e
cores/arduino/pins_arduino.h
@@ -20,6 +20,9 @@
20
// Include board variant
21
#include "variant.h"
22
23
+// Avoid PortName issue
24
+_Static_assert(LastPort <= 0x0F, "PortName must be less than 16");
25
+
26
// Avoid pins number misalignment
27
_Static_assert(NUM_DIGITAL_PINS==PEND, "NUM_DIGITAL_PINS and PEND differ!");
28
cores/arduino/stm32/PortNames.h
@@ -71,8 +71,6 @@ typedef enum {
71
LastPort = PortZ-1
72
} PortName;
73
74
-_Static_assert (LastPort <= 0x0F, "PortName must be less than 16");
75
-
76
#define MAX_NB_PORT (LastPort-FirstPort+1)
77
78
GPIO_TypeDef *get_GPIO_Port(uint32_t port_idx);
0 commit comments