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 STRING_EOL
Definition: hmatrixb_example.c:83
#define BOARD_NAME
Name string macro.
Definition: sam4l8_xplained_pro.h:86

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, LED0, and LED_Toggle.

Referenced by main().

volatile uint32_t g_ul_ms_ticks = 0

Referenced by SysTick_Handler(), and toggle_led_test().