Atmel Software Framework

rtc_example.c File Reference
#include <avr32/io.h>
#include "intc.h"
#include "board.h"
#include "compiler.h"
#include "rtc.h"
#include "usart.h"
#include "gpio.h"
#include "pm.h"

Macros

USART Settings
#define EXAMPLE_USART   (&AVR32_USART1)
 
#define EXAMPLE_USART_RX_PIN   AVR32_USART1_RXD_0_0_PIN
 
#define EXAMPLE_USART_RX_FUNCTION   AVR32_USART1_RXD_0_0_FUNCTION
 
#define EXAMPLE_USART_TX_PIN   AVR32_USART1_TXD_0_0_PIN
 
#define EXAMPLE_USART_TX_FUNCTION   AVR32_USART1_TXD_0_0_FUNCTION
 

Functions

int main (void)
 main function : do init and loop (poll if configured so) More...
 
char * print_i (char *str, unsigned int n)
 print_i function : convert the given number to an ASCII decimal representation. More...
 
void rtc_irq (void)
 

Variables

static volatile int print_sec = 1
 
static int sec = 0
 

#define EXAMPLE_USART   (&AVR32_USART1)

Referenced by main().

#define EXAMPLE_USART_RX_FUNCTION   AVR32_USART1_RXD_0_0_FUNCTION

Referenced by main().

#define EXAMPLE_USART_RX_PIN   AVR32_USART1_RXD_0_0_PIN

Referenced by main().

#define EXAMPLE_USART_TX_FUNCTION   AVR32_USART1_TXD_0_0_FUNCTION

Referenced by main().

#define EXAMPLE_USART_TX_PIN   AVR32_USART1_TXD_0_0_PIN

Referenced by main().

char* print_i ( char *  str,
unsigned int  n 
)

print_i function : convert the given number to an ASCII decimal representation.

References i.

Referenced by main().

void rtc_irq ( void  )

References print_sec, rtc_clear_interrupt(), and sec.

Referenced by main().

volatile int print_sec = 1
static

Referenced by main(), and rtc_irq().

int sec = 0
static

Referenced by main(), and rtc_irq().