Added description for flows and turn on and off option

This commit is contained in:
Ziver Koc 2018-02-26 23:17:03 +01:00
parent 89d4291168
commit 60e5131850
7 changed files with 99 additions and 19 deletions

View file

@ -36,13 +36,14 @@ void Interrupt::sleep()
sleep_enable(); // enables the sleep bit in the mcucr register
// so sleep is possible. just a safety pin
power_adc_disable();
//power_adc_disable();
//power_spi_disable();
//power_usart0_disable();
//power_timer0_disable();
//power_timer1_disable();
//power_timer2_disable();
//power_twi_disable();
//power_all_disable()
//power_all_disable();
while( ! Interrupt::wakeUpNow)
{
@ -52,7 +53,7 @@ void Interrupt::sleep()
sleep_disable(); // first thing after waking from sleep:
// disable sleep...
power_adc_enable();
//power_adc_enable();
//power_spi_enable();
//power_usart0_enable();
//power_timer0_enable();