Skip to content

Commit 3cb95a8

Browse files
committed
M263: 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 ea582f3 commit 3cb95a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

targets/TARGET_NUVOTON/TARGET_M261/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ typedef enum {
135135
BUTTON1 = SW2,
136136
BUTTON2 = SW3,
137137

138+
// Force PinName to 32-bit required by NU_PINNAME_BIND(...)
139+
FORCE_ENUM_PINNAME_32BIT = 0x7FFFFFFF,
140+
138141
} PinName;
139142

140143
#ifdef __cplusplus

0 commit comments

Comments
 (0)