SAMV71 Xplained Ultra Software Package 1.5

main.c File Reference

#include "board.h"
#include <stdbool.h>
#include <stdio.h>

Go to the source code of this file.

Defines

#define LED_ID   1
#define BLINK_PERIOD   300
#define WDT_PERIOD   3000
#define WDT_RESTART_PERIOD   2000

Functions

void WDT_Handler (void)
 Handler for watchdog interrupt.
int main (void)
 Application entry point for wdg_irq example.

Variables

const Pin pinPB1 = PIN_PUSHBUTTON_0
volatile bool button1Evt = false
volatile uint32_t gSystick = 0

Detailed Description

This file contains all the specific code for the wdt example.

Definition in file main.c.


Define Documentation

#define BLINK_PERIOD   300

LED blink time, in ms

Definition at line 105 of file main.c.

#define LED_ID   1

LED used in this program

Definition at line 102 of file main.c.

#define WDT_PERIOD   3000

Watchdog period, in ms

Definition at line 108 of file main.c.

#define WDT_RESTART_PERIOD   2000

Watchdog restart period, in ms

Definition at line 110 of file main.c.


Function Documentation

int main ( void   ) 

Application entry point for wdg_irq example.

Returns:
Unused (ANSI-C compatibility).

Definition at line 203 of file main.c.

Here is the call graph for this function:


Variable Documentation

volatile bool button1Evt = false

Pushbutton #1 pin event flag.

Definition at line 120 of file main.c.

const Pin pinPB1 = PIN_PUSHBUTTON_0

Pushbutton #1 pin instance.

Definition at line 117 of file main.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines