summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-10-05 10:00:10 +0000
committerQMK Bot <hello@qmk.fm>2022-10-05 10:00:10 +0000
commit85f87d1a02b608185484f69cef30b52e02ec6790 (patch)
tree0ecf4c57d68257619e7926116bca1f1239849621
parent0c53d6fe4b6de670d45f0a1c30c2e30e66d727e1 (diff)
parent164d2f36d1ef07554f754cf6290a9a69e1f2f21a (diff)
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r--drivers/ps2/ps2_interrupt.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/ps2/ps2_interrupt.c b/drivers/ps2/ps2_interrupt.c
index c9a9f1e1ec..2810a0f126 100644
--- a/drivers/ps2/ps2_interrupt.c
+++ b/drivers/ps2/ps2_interrupt.c
@@ -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) {