diff options
| author | IBNobody <[email protected]> | 2016-04-18 19:48:52 -0500 | 
|---|---|---|
| committer | IBNobody <[email protected]> | 2016-04-18 19:48:52 -0500 | 
| commit | 499e3096e9021b88a6a705ad7034ccbacb97b975 (patch) | |
| tree | da477a9e67e16339267ee0946c3b253c612c7bbf /tmk_core/common/avr/suspend.c | |
| parent | cbcf0abe62b764a9f3d80848611dca8291d93eb8 (diff) | |
| parent | 4b3358acc270772e5605397bab26fb5db981084d (diff) | |
| download | qmk_firmware-499e3096e9021b88a6a705ad7034ccbacb97b975.tar.gz qmk_firmware-499e3096e9021b88a6a705ad7034ccbacb97b975.zip | |
Merge pull request #2 from IBNobody/personal_atomic_planck
Fixed speaker being on during sleep.
Diffstat (limited to 'tmk_core/common/avr/suspend.c')
| -rw-r--r-- | tmk_core/common/avr/suspend.c | 12 | 
1 files changed, 11 insertions, 1 deletions
| diff --git a/tmk_core/common/avr/suspend.c b/tmk_core/common/avr/suspend.c index c07c2801d5..e295dbe18b 100644 --- a/tmk_core/common/avr/suspend.c +++ b/tmk_core/common/avr/suspend.c @@ -9,10 +9,16 @@  #include "suspend.h"  #include "timer.h"  #include "led.h" +  #ifdef PROTOCOL_LUFA -#include "lufa.h" +	#include "lufa.h"  #endif +#ifdef AUDIO_ENABLE +    #include "audio.h" +#endif /* AUDIO_ENABLE */ + +  #define wdt_intr_enable(value)   \  __asm__ __volatile__ (  \ @@ -72,6 +78,10 @@ static void power_down(uint8_t wdto)  	// Turn off LED indicators  	led_set(0); +	#ifdef AUDIO_ENABLE +		stop_all_notes(); +	#endif /* AUDIO_ENABLE */ +      // TODO: more power saving      // See PicoPower application note      // - I/O port input with pullup | 
