core: Add matrix_clear() and default impl.

This commit is contained in:
tmk 2016-10-05 13:55:56 +09:00
parent 1a7d1f9f4d
commit f76a786b93
6 changed files with 105 additions and 5 deletions

View file

@ -105,8 +105,6 @@ void suspend_power_down(void)
#endif
}
__attribute__ ((weak)) void matrix_power_up(void) {}
__attribute__ ((weak)) void matrix_power_down(void) {}
bool suspend_wakeup_condition(void)
{
matrix_power_up();
@ -122,7 +120,7 @@ bool suspend_wakeup_condition(void)
void suspend_wakeup_init(void)
{
// clear keyboard state
matrix_init();
matrix_clear();
clear_keyboard();
#ifdef BACKLIGHT_ENABLE
backlight_init();