Atmel Software Framework

wdt_example.c File Reference
#include <avr32/io.h>
#include "board.h"
#include "compiler.h"
#include "gpio.h"
#include "wdt.h"
#include "pm.h"
#include "cycle_counter.h"

Macros

#define WDT_CTRL_STEP_US   1000000
 
#define WDT_MAX_VALUE_US   4000000
 
#define WDT_MIN_VALUE_US   1000000
 

Functions

void led_task (void)
 Led Task to scroll led before reset. More...
 
int main (void)
 
void wdt_scheduler (void)
 Watchdog scheduler. More...
 

Variables

wdt_opt_t opt
 
uint8_t step_led_task = 0
 

#define WDT_CTRL_STEP_US   1000000

Referenced by wdt_scheduler().

#define WDT_MAX_VALUE_US   4000000

Referenced by wdt_scheduler().

#define WDT_MIN_VALUE_US   1000000

Referenced by wdt_scheduler().

void led_task ( void  )

Led Task to scroll led before reset.

References cpu_delay_ms(), FOSC0, gpio_clr_gpio_pin(), gpio_set_gpio_pin(), and step_led_task.

Referenced by main().

int main ( void  )

wdt_opt_t opt
Initial value:
= {
.us_timeout_period = WDT_MIN_VALUE_US
}
#define WDT_MIN_VALUE_US
Definition: wdt_example.c:93

Referenced by BSP_PM_PLL0Setup(), clockfrequencies_configure(), local_start_highfreq_clock(), main(), OS_TCBInit(), tft_bl_init(), usart_spi_setup_device(), and wdt_reset_mcu().

uint8_t step_led_task = 0

Referenced by led_task().