Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused suspend_idle #16063

Merged
merged 1 commit into from
Jan 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 0 additions & 7 deletions platforms/arm_atsam/suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 0 additions & 13 deletions platforms/avr/suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 0 additions & 9 deletions platforms/chibios/suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion platforms/suspend.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down