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().
int main | ( | void | ) |
References board_init(), ioport_configure_pin(), IOPORT_DIR_INPUT, IOPORT_FALLING, ioport_pin_to_port(), IOPORT_PULL_UP, ioport_set_pin_high(), ioport_set_pin_low(), mdelay(), SLEEPMGR_ACTIVE, sleepmgr_enter_sleep(), sleepmgr_init(), sleepmgr_lock_mode(), SLEEPMGR_NR_OF_MODES, sleepmgr_unlock_mode(), sysclk_enable_module(), sysclk_init(), SYSCLK_PORT_GEN, and SYSCLK_RTC.
|
static |
References sysclk_get_cpu_hz().