Skip to content

Commit

Permalink
fix: ps2_interrupt.c failed to compile (qmk#18597)
Browse files Browse the repository at this point in the history
  • Loading branch information
klesh authored Oct 5, 2022
1 parent df7f335 commit 164d2f3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions drivers/ps2/ps2_interrupt.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,18 @@ void palCallback(void *arg) {
}

# define PS2_INT_INIT() \
{ palSetLineMode(PS2_CLOCK_PIN, PAL_MODE_INPUT); } \
while (0)
do { \
palSetLineMode(PS2_CLOCK_PIN, PAL_MODE_INPUT); \
} while (0)
# define PS2_INT_ON() \
{ \
do { \
palEnableLineEvent(PS2_CLOCK_PIN, PAL_EVENT_MODE_FALLING_EDGE); \
palSetLineCallback(PS2_CLOCK_PIN, palCallback, NULL); \
} \
while (0)
} while (0)
# define PS2_INT_OFF() \
{ palDisableLineEvent(PS2_CLOCK_PIN); } \
while (0)
do { \
palDisableLineEvent(PS2_CLOCK_PIN); \
} while (0)
#endif // PROTOCOL_CHIBIOS

void ps2_host_init(void) {
Expand Down

0 comments on commit 164d2f3

Please sign in to comment.