diff options
| author | skullydazed <skullydazed@users.noreply.github.com> | 2017-09-29 16:17:30 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-29 16:17:30 -0700 |
| commit | 5fd68266f5d90b2c7045f44f678d71b782907752 (patch) | |
| tree | 443e70a3f0dcebadd39a0c96857130546cc690a7 /tmk_core/common/chibios/suspend.c | |
| parent | b736f25e85171fceb06f01cf45a45f84dd0a4911 (diff) | |
| download | qmk_firmware-5fd68266f5d90b2c7045f44f678d71b782907752.tar.gz qmk_firmware-5fd68266f5d90b2c7045f44f678d71b782907752.zip | |
Clueboard 60% support (#1746)
* initial clueboard_60 support
* LED lighting support
* fix the clueboard->clueboard_66 rename
* Add layout support to clueboard_60
* Fix the 60_iso layout so it's actually iso
* add a default keymap for AEK layout
* fix clueboard_17
* Fixup the ISO layouts
* Fix the `wait_ms()/wait_us()` definitions for chibios
* Fix up the wait_ms/wait_us hack. Reduce stack size.
* Add a missing #include "wait.h"
* commit files that should have already been comitted
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) {} |
