Skip to content

Commit c9fb405

Browse files
committed
[M252KG] Force enum PinName to 32-bit
NU_PINNAME_BIND(...) requires enum PinName to be 32-bit to encode module binding information in it.
1 parent bc79354 commit c9fb405

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

targets/TARGET_NUVOTON/TARGET_M251/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ typedef enum {
126126
LED4 = LED1, // No real LED. Just for passing ATS.
127127

128128
/* Button naming */
129+
130+
/* Force PinName to 32-bit required by NU_PINNAME_BIND(...) */
131+
FORCE_ENUM_PINNAME_32BIT = 0x7FFFFFFF,
129132

130133
} PinName;
131134

0 commit comments

Comments
 (0)