8.7.4 sleep_disable Macro

Bring the device out of sleep mode.

Include

<avr/sleep.h>

Prototype

void sleep_disable(void);

Remarks

This macro clears the sleep enable bit, preventing the device from entering sleep mode.

Example

#include <xc.h>
#include <avr/sleep.h>
int main(void)
{
  initSystem();
  sleep_enable();
  sei();
  sleep_cpu();
  sleep_disable();
}