main.c
Default mainpagebasic-rtt-projectmain.c
Description Overview
Methods Brief description
 ConfigureRtt Configures the RTT to generate a one second tick, which triggers the RTTINC interrupt.
 ISR_Rtt Interrupt handler for the RTT. Displays the current time on the DBGU.
 main Initializes the RTT, displays the current time and allows the user to perform several actions: clear the timer, set an alarm, etc.
 RefreshDisplay Updates the DBGU display to show the current menu and the current time depending on the device state.
Defines  
 AT91C_BASE_RTTC Define AT91C_BASE_RTTC if not already done.
 STATE_MAINMENU Device is in the main menu.
 STATE_SETALARM User is setting an alarm time.
Attributes  
 alarmed Indicates if an alarm has occured but has not been cleared.
 newAlarm New alarm time being currently entered.
 state Current device state.