Matrix power saving

This commit is contained in:
tmk 2014-11-23 13:08:05 +09:00
parent c2d830c07c
commit 608ebe2686
6 changed files with 60 additions and 6 deletions

View file

@ -85,7 +85,7 @@ int main(void)
print("Keyboard start.\n");
while (1) {
while (USB_DeviceState == DEVICE_STATE_Suspended) {
suspend_power_down();
suspend_power_down(WDTO_120MS);
if (USB_Device_RemoteWakeupEnabled && suspend_wakeup_condition()) {
USB_Device_SendRemoteWakeup();
}