1
0
Fork 0

Add support for backlight

This commit is contained in:
Wraul 2013-05-30 20:24:39 +02:00 committed by tmk
parent 9de9d71952
commit 1eb8523e95
13 changed files with 213 additions and 0 deletions

View file

@ -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