Skip to content

Commit f4e0774

Browse files
Adrian Negreanumbrossard
authored andcommitted
lpc4322 (gpio): add X_WORD gpio helper
1 parent 041c360 commit f4e0774

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/hic_hal/nxp/lpc4322/IO_Config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_LPC4322);
7171
#define X_DIR_OUT(str) LPC_GPIO_PORT->DIR[PORT_##str] |= (PIN_##str)
7272
#define X_DIR_IN(str) LPC_GPIO_PORT->DIR[PORT_##str] &= ~(PIN_##str)
7373
#define X_BYTE(str) LPC_GPIO_PORT->B[(PORT_##str << 5) + PIN_##str##_IN_BIT]
74+
#define X_WORD(str) LPC_GPIO_PORT->W[(PORT_##str << 5) + PIN_##str##_IN_BIT]
7475

7576

7677
#endif

0 commit comments

Comments
 (0)