AVR MEGARF WDT driver example.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Enumerations | |
enum | wdt_example_state { START_OF_PROG = (0x01), WDT_MCU_RESET = (0x02), REFRESH_WDT = (0x03), WDT_RST = (0x04), WDT_INTERRUPT = (0x05), WDT_RST_INTERRUPT = (0x06), END_OF_PROG = (0x07), ERROR_STATE = (0x0F) } |
Functions | |
int | main (void) |
Main function. More... | |
static void | wdt_timer_callback (void) |
Interrupt callback for wdt timer overflow interrupt Change the state when the interrupt is triggered. More... | |
Variables | |
enum wdt_example_state | state_flag |
Global variables not initialized. More... | |
enum wdt_example_state |
|
static |
Interrupt callback for wdt timer overflow interrupt Change the state when the interrupt is triggered.
none |
References END_OF_PROG, and WDT_RST_INTERRUPT.
Referenced by main().
enum wdt_example_state state_flag |
Global variables not initialized.