diff options
Diffstat (limited to 'tmk_core/common/chibios/suspend.c')
-rw-r--r-- | tmk_core/common/chibios/suspend.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tmk_core/common/chibios/suspend.c b/tmk_core/common/chibios/suspend.c index 6ca16034f..7c3c75387 100644 --- a/tmk_core/common/chibios/suspend.c +++ b/tmk_core/common/chibios/suspend.c | |||
@@ -10,10 +10,11 @@ | |||
10 | #include "host.h" | 10 | #include "host.h" |
11 | #include "backlight.h" | 11 | #include "backlight.h" |
12 | #include "suspend.h" | 12 | #include "suspend.h" |
13 | #include "wait.h" | ||
13 | 14 | ||
14 | void suspend_idle(uint8_t time) { | 15 | void suspend_idle(uint8_t time) { |
15 | // TODO: this is not used anywhere - what units is 'time' in? | 16 | // TODO: this is not used anywhere - what units is 'time' in? |
16 | chThdSleepMilliseconds(time); | 17 | wait_ms(time); |
17 | } | 18 | } |
18 | 19 | ||
19 | void suspend_power_down(void) { | 20 | void suspend_power_down(void) { |
@@ -24,7 +25,7 @@ void suspend_power_down(void) { | |||
24 | // on AVR, this enables the watchdog for 15ms (max), and goes to | 25 | // on AVR, this enables the watchdog for 15ms (max), and goes to |
25 | // SLEEP_MODE_PWR_DOWN | 26 | // SLEEP_MODE_PWR_DOWN |
26 | 27 | ||
27 | chThdSleepMilliseconds(17); | 28 | wait_ms(17); |
28 | } | 29 | } |
29 | 30 | ||
30 | __attribute__ ((weak)) void matrix_power_up(void) {} | 31 | __attribute__ ((weak)) void matrix_power_up(void) {} |