diff options
author | Joel Challis <git@zvecr.com> | 2022-01-26 22:57:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-26 14:57:28 -0800 |
commit | 6a9ec74b329e458c32db4a2e3a3e0478ac8e72b5 (patch) | |
tree | 7e1893eb81676be8712a09944411b087de97f150 | |
parent | 9e5f8983ec6f8ed549cdafe6b0178074e51bd938 (diff) | |
download | qmk_firmware-6a9ec74b329e458c32db4a2e3a3e0478ac8e72b5.tar.gz qmk_firmware-6a9ec74b329e458c32db4a2e3a3e0478ac8e72b5.zip |
Remove unused suspend_idle (#16063)
-rw-r--r-- | platforms/arm_atsam/suspend.c | 7 | ||||
-rw-r--r-- | platforms/avr/suspend.c | 13 | ||||
-rw-r--r-- | platforms/chibios/suspend.c | 9 | ||||
-rw-r--r-- | platforms/suspend.h | 1 |
4 files changed, 0 insertions, 30 deletions
diff --git a/platforms/arm_atsam/suspend.c b/platforms/arm_atsam/suspend.c index e51426128d..73bebc4308 100644 --- a/platforms/arm_atsam/suspend.c +++ b/platforms/arm_atsam/suspend.c @@ -3,13 +3,6 @@ #include "md_rgb_matrix.h" #include "suspend.h" -/** \brief Suspend idle - * - * FIXME: needs doc - */ -void suspend_idle(uint8_t time) { /* Note: Not used anywhere currently */ -} - /** \brief Run user level Power down * * FIXME: needs doc diff --git a/platforms/avr/suspend.c b/platforms/avr/suspend.c index b614746e6c..7b164a34b1 100644 --- a/platforms/avr/suspend.c +++ b/platforms/avr/suspend.c @@ -16,19 +16,6 @@ # include "vusb.h" #endif -/** \brief Suspend idle - * - * FIXME: needs doc - */ -void suspend_idle(uint8_t time) { - cli(); - set_sleep_mode(SLEEP_MODE_IDLE); - sleep_enable(); - sei(); - sleep_cpu(); - sleep_disable(); -} - // TODO: This needs some cleanup #if !defined(NO_SUSPEND_POWER_DOWN) && defined(WDT_vect) diff --git a/platforms/chibios/suspend.c b/platforms/chibios/suspend.c index 9310a99920..d10ddf4501 100644 --- a/platforms/chibios/suspend.c +++ b/platforms/chibios/suspend.c @@ -13,15 +13,6 @@ #include "led.h" #include "wait.h" -/** \brief suspend idle - * - * FIXME: needs doc - */ -void suspend_idle(uint8_t time) { - // TODO: this is not used anywhere - what units is 'time' in? - wait_ms(time); -} - /** \brief suspend power down * * FIXME: needs doc diff --git a/platforms/suspend.h b/platforms/suspend.h index 081735f90e..e4f7f39ddb 100644 --- a/platforms/suspend.h +++ b/platforms/suspend.h @@ -3,7 +3,6 @@ #include <stdint.h> #include <stdbool.h> -void suspend_idle(uint8_t timeout); void suspend_power_down(void); bool suspend_wakeup_condition(void); void suspend_wakeup_init(void); |