Microchip® Advanced Software Framework

matrix_example.c File Reference

Matrix example for SAM.

Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.

#include "asf.h"
#include "stdio_serial.h"
#include "conf_board.h"
#include "conf_clock.h"

Macros

#define MATRIX_SLAVE_NUM   5
 
#define STRING_EOL   "\r"
 
#define STRING_HEADER
 

Functions

static void configure_console (void)
 Configure the console UART. More...
 
int main (void)
 Application entry point. More...
 
void SysTick_Handler (void)
 Handler for System Tick interrupt. More...
 
static uint32_t toggle_led_test (uint32_t ul_dly_ticks)
 Toggle led at the given time. More...
 

Variables

volatile uint32_t g_ul_ms_ticks = 0
 

#define MATRIX_SLAVE_NUM   5

Referenced by main().

#define STRING_EOL   "\r"
#define STRING_HEADER
Value:
"-- MATRIX Example --\r\n" \
"-- "BOARD_NAME " --\r\n" \
"-- Compiled: "__DATE__ " "__TIME__ " --"STRING_EOL
#define STRING_EOL
Definition: matrix_example.c:106
#define BOARD_NAME
Name of the board.
Definition: same70_xplained.h:75

Referenced by main().

static void configure_console ( void  )
static
void SysTick_Handler ( void  )

Handler for System Tick interrupt.

Process System Tick Event. Increment the g_ul_ms_ticks counter.

References g_ul_ms_ticks.

static uint32_t toggle_led_test ( uint32_t  ul_dly_ticks)
static

Toggle led at the given time.

Parameters
ul_dly_ticksDelay to wait for, in milliseconds.
Returns
Led toggle times.

References g_ul_ms_ticks, ioport_toggle_pin_level(), and LED0_GPIO.

Referenced by main().

volatile uint32_t g_ul_ms_ticks = 0

Referenced by SysTick_Handler(), and toggle_led_test().