mirror of https://github.com/ARMmbed/mbed-os.git
[Nuvoton] Force enum PinName to 32-bit
NU_PINNAME_BIND(...) requires enum PinName to be 32-bit to encode module binding information in it.pull/11152/head
parent
1bf6d898b0
commit
f88bd72c19
|
@ -173,6 +173,9 @@ typedef enum {
|
|||
BUTTON1 = SW2,
|
||||
BUTTON2 = SW3,
|
||||
|
||||
// Force PinName to 32-bit required by NU_PINNAME_BIND(...)
|
||||
FORCE_ENUM_PINNAME_32BIT = 0x7FFFFFFF,
|
||||
|
||||
} PinName;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -134,6 +134,9 @@ typedef enum {
|
|||
BUTTON1 = SW2,
|
||||
BUTTON2 = SW3,
|
||||
|
||||
// Force PinName to 32-bit required by NU_PINNAME_BIND(...)
|
||||
FORCE_ENUM_PINNAME_32BIT = 0x7FFFFFFF,
|
||||
|
||||
} PinName;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -139,6 +139,9 @@ typedef enum {
|
|||
BUTTON1 = SW2,
|
||||
BUTTON2 = SW3,
|
||||
|
||||
// Force PinName to 32-bit required by NU_PINNAME_BIND(...)
|
||||
FORCE_ENUM_PINNAME_32BIT = 0x7FFFFFFF,
|
||||
|
||||
} PinName;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -131,6 +131,9 @@ typedef enum {
|
|||
BUTTON1 = SW1,
|
||||
BUTTON2 = SW2,
|
||||
|
||||
// Force PinName to 32-bit required by NU_PINNAME_BIND(...)
|
||||
FORCE_ENUM_PINNAME_32BIT = 0x7FFFFFFF,
|
||||
|
||||
} PinName;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -137,6 +137,9 @@ typedef enum {
|
|||
BUTTON1 = SW1,
|
||||
BUTTON2 = SW2,
|
||||
|
||||
// Force PinName to 32-bit required by NU_PINNAME_BIND(...)
|
||||
FORCE_ENUM_PINNAME_32BIT = 0x7FFFFFFF,
|
||||
|
||||
} PinName;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Reference in New Issue