Matrix power saving
This commit is contained in:
		
							parent
							
								
									c2d830c07c
								
							
						
					
					
						commit
						608ebe2686
					
				
					 6 changed files with 60 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -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();
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue