Microchip® Advanced Software Framework

sleepmgr_example_xmega.c File Reference

Sleep manager example for AVR XMEGA.

Copyright (c) 2010-2018 Microchip Technology Inc. and its subsidiaries.

#include <board.h>
#include <compiler.h>
#include <sleepmgr.h>
#include <ioport.h>
#include <sysclk.h>
#include <conf_example.h>

Functions

 ISR (RTC_OVF_vect)
 
 ISR (BUTTON_vect)
 
int main (void)
 
static void mdelay (uint16_t ms)
 

ISR ( RTC_OVF_vect  )
ISR ( BUTTON_vect  )

References ioport_pin_is_low(), and mdelay().

static void mdelay ( uint16_t  ms)
static

References sysclk_get_cpu_hz().

Referenced by ISR(), and main().