Microchip® Advanced Software Framework

wdt_megarf.c File Reference

AVR MEGARF WatchDog Timer driver.

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

#include "wdt_megarf.h"

Functions

 ISR (WDT_vect)
 Interrupt handler for WDT timer overflow. More...
 
void wdt_disable (void)
 Disable Watchdog. More...
 
void wdt_enable (enum wdt_mode_select mode)
 Enable WDT at different modes. More...
 
void wdt_reset_mcu (void)
 
More...
 
void wdt_set_interrupt_callback (wdt_callback_t callback)
 Set WDT timer overflow interrupt callback function. More...
 
void wdt_set_timeout_period (enum wdt_timeout_period to_period)
 Set Watchdog timeout period. More...
 

Variables

static wdt_callback_t wdt_timer_callback
 

ISR ( WDT_vect  )

Interrupt handler for WDT timer overflow.

This function will handle interrupt on WDT Timer overflow and call the callback function.

References wdt_timer_callback.

wdt_callback_t wdt_timer_callback
static

Referenced by ISR(), and wdt_set_interrupt_callback().