SAMV71 Xplained Ultra Software Package 1.4

main.c File Reference

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

Go to the source code of this file.

Defines

#define STATE_MAINMENU   0
#define STATE_SETALARM   1

Functions

void RTT_Handler (void)
 Interrupt handler for the RTT.
int main (void)
 Application entry point for RTT example.

Variables

volatile unsigned char state
volatile unsigned int newAlarm
volatile unsigned char alarmed

Detailed Description

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

Definition in file main.c.


Define Documentation

#define STATE_MAINMENU   0

Device state: in the main menu.

Definition at line 108 of file main.c.

#define STATE_SETALARM   1

Device state: user is setting an alarm time

Definition at line 110 of file main.c.


Function Documentation

int main ( void   ) 

Application entry point for RTT example.

Initializes the RTT, displays the current time and allows the user to perform several actions: clear the timer, set an alarm, etc.

Returns:
Unused (ANSI-C compatibility).

Definition at line 239 of file main.c.

Here is the call graph for this function:


Variable Documentation

volatile unsigned char alarmed

Indicates if an alarm has occurred but has not been cleared.

Definition at line 123 of file main.c.

volatile unsigned int newAlarm

New alarm time being currently entered.

Definition at line 120 of file main.c.

volatile unsigned char state

Current device state.

Definition at line 117 of file main.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines