]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - tmk_core/common/chibios/suspend.c
Clueboard 60% support (#1746)
[qmk_firmware.git] / tmk_core / common / chibios / suspend.c
index 6ca16034f3840f1b9230476ed2790af1d9f0a04f..7c3c75387d9754307400f1c638f4bcf7d88d7f49 100644 (file)
 #include "host.h"
 #include "backlight.h"
 #include "suspend.h"
+#include "wait.h"
 
 void suspend_idle(uint8_t time) {
        // TODO: this is not used anywhere - what units is 'time' in?
-       chThdSleepMilliseconds(time);
+       wait_ms(time);
 }
 
 void suspend_power_down(void) {
@@ -24,7 +25,7 @@ void suspend_power_down(void) {
        // on AVR, this enables the watchdog for 15ms (max), and goes to
        // SLEEP_MODE_PWR_DOWN
 
-       chThdSleepMilliseconds(17);
+       wait_ms(17);
 }
 
 __attribute__ ((weak)) void matrix_power_up(void) {}