Add support for backlight
This commit is contained in:
		
							parent
							
								
									9de9d71952
								
							
						
					
					
						commit
						1eb8523e95
					
				
					 13 changed files with 213 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue