Atmel Software Framework

hmatrix_example.c File Reference
#include <string.h>
#include "board.h"
#include "print_funcs.h"
#include "gpio.h"
#include "power_clocks_lib.h"
#include "usart.h"

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
 
#define FPBA   FOSC0
 
#define EXAMPLE_USART_CLOCK_MASK   AVR32_USART1_CLK_PBA
 
#define NB_TOGGLE   512
 
int32_t toggle_led (uint32_t number_of_toggles)
 Toggle LED. More...
 
static void configure_hmatrix (uint32_t mode)
 Initializes the HSB bus matrix. More...
 
int main (void)
 The main function. More...
 

#define EXAMPLE_USART   (&AVR32_USART1)

Referenced by main(), and toggle_led().

#define EXAMPLE_USART_CLOCK_MASK   AVR32_USART1_CLK_PBA

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().

#define FPBA   FOSC0

Referenced by main().

#define NB_TOGGLE   512

Referenced by main().

static void configure_hmatrix ( uint32_t  mode)
static

Initializes the HSB bus matrix.

References i.

Referenced by main().

int32_t toggle_led ( uint32_t  number_of_toggles)

Toggle LED.

References EXAMPLE_USART, Get_system_register, i, print(), and print_ulong().

Referenced by main().