~ruther/qmk_firmware

85f87d1a02b608185484f69cef30b52e02ec6790 — QMK Bot 2 years ago 0c53d6f + 164d2f3
Merge remote-tracking branch 'origin/master' into develop
1 files changed, 8 insertions(+), 7 deletions(-)

M drivers/ps2/ps2_interrupt.c
M drivers/ps2/ps2_interrupt.c => drivers/ps2/ps2_interrupt.c +8 -7
@@ 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) {