SAMV71 Xplained Ultra Software Package 1.4

main.c File Reference

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

Go to the source code of this file.

Defines

#define STATE_MENU   0
#define STATE_SET_TIME   1
#define STATE_SET_DATE   2
#define STATE_SET_TIME_ALARM   3
#define STATE_SET_DATE_ALARM   4
#define MAX_EDIT_SIZE   10
#define IsDigitChar(c)   ((c) >= '0' && (c) <='9')
#define CharToDigit(c)   ((c) - '0')

Functions

void TC0_Handler (void)
void RTC_Handler (void)
 Interrupt handler for the RTC. Refreshes the display.
int main (void)
 Application entry point for RTC example.

Variables

volatile uint16_t Temperature = 0
volatile uint32_t CountDownTimer = 0

Detailed Description

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

Definition in file main.c.


Define Documentation

#define CharToDigit (   c  )     ((c) - '0')

Macro for converting char to digit

Definition at line 136 of file main.c.

#define IsDigitChar (   c  )     ((c) >= '0' && (c) <='9')

Macro for check digit character

Definition at line 134 of file main.c.

#define MAX_EDIT_SIZE   10

Maximum size of edited string

Definition at line 131 of file main.c.

#define STATE_MENU   0

Main menu is being displayed.

Definition at line 120 of file main.c.

#define STATE_SET_DATE   2

Date is being edited.

Definition at line 124 of file main.c.

#define STATE_SET_DATE_ALARM   4

Date alarm is being edited.

Definition at line 128 of file main.c.

#define STATE_SET_TIME   1

Time is being edited.

Definition at line 122 of file main.c.

#define STATE_SET_TIME_ALARM   3

Time alarm is being edited.

Definition at line 126 of file main.c.


Function Documentation

int main ( void   ) 

Application entry point for RTC example.

Returns:
Unused (ANSI-C compatibility).

Definition at line 502 of file main.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines