Microchip® Advanced Software Framework

hmatrixb_example.c File Reference

HMATRIX example for SAM.

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

#include "asf.h"

Macros

#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 STRING_EOL   "\r"
#define STRING_HEADER
Value:
"-- HMATRIX Example --\r\n" \
"-- "BOARD_NAME" --\r\n" \
"-- Compiled: "__DATE__" "__TIME__" --"STRING_EOL
#define BOARD_NAME
Definition: inc/app_init.h:140
#define STRING_EOL
Definition: hmatrixb_example.c:83

Referenced by main().

static void configure_console ( void  )
static

Configure the console UART.

References uart_rs232_options::baudrate, and stdio_serial_init().

Referenced by main().

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.

Referenced by main().

volatile uint32_t g_ul_ms_ticks = 0