Add support for backlight
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
#include "suspend.h"
|
||||
#include "matrix.h"
|
||||
#include "action.h"
|
||||
#include "backlight.h"
|
||||
|
||||
|
||||
void suspend_power_down(void)
|
||||
{
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
backlight_set(0);
|
||||
#endif
|
||||
#ifndef NO_SUSPEND_POWER_DOWN
|
||||
// Enable watchdog to wake from MCU sleep
|
||||
cli();
|
||||
@@ -50,6 +54,9 @@ void suspend_wakeup_init(void)
|
||||
// clear matrix and keyboard state
|
||||
matrix_init();
|
||||
clear_keyboard();
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
backlight_init();
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef NO_SUSPEND_POWER_DOWN
|
||||
|
Reference in New Issue
Block a user