mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-22 11:29:26 +00:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
85f87d1a02
@ -76,17 +76,18 @@ void palCallback(void *arg) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# define PS2_INT_INIT() \
|
# define PS2_INT_INIT() \
|
||||||
{ palSetLineMode(PS2_CLOCK_PIN, PAL_MODE_INPUT); } \
|
do { \
|
||||||
while (0)
|
palSetLineMode(PS2_CLOCK_PIN, PAL_MODE_INPUT); \
|
||||||
|
} while (0)
|
||||||
# define PS2_INT_ON() \
|
# define PS2_INT_ON() \
|
||||||
{ \
|
do { \
|
||||||
palEnableLineEvent(PS2_CLOCK_PIN, PAL_EVENT_MODE_FALLING_EDGE); \
|
palEnableLineEvent(PS2_CLOCK_PIN, PAL_EVENT_MODE_FALLING_EDGE); \
|
||||||
palSetLineCallback(PS2_CLOCK_PIN, palCallback, NULL); \
|
palSetLineCallback(PS2_CLOCK_PIN, palCallback, NULL); \
|
||||||
} \
|
} while (0)
|
||||||
while (0)
|
|
||||||
# define PS2_INT_OFF() \
|
# define PS2_INT_OFF() \
|
||||||
{ palDisableLineEvent(PS2_CLOCK_PIN); } \
|
do { \
|
||||||
while (0)
|
palDisableLineEvent(PS2_CLOCK_PIN); \
|
||||||
|
} while (0)
|
||||||
#endif // PROTOCOL_CHIBIOS
|
#endif // PROTOCOL_CHIBIOS
|
||||||
|
|
||||||
void ps2_host_init(void) {
|
void ps2_host_init(void) {
|
||||||
|
Loading…
Reference in New Issue
Block a user