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 |
Referenced by main().
|
static |
Configure the console UART.
References uart_rs232_options::baudrate, CONF_UART, CONF_UART_BAUDRATE, CONF_UART_CHAR_LENGTH, CONF_UART_PARITY, CONF_UART_STOP_BITS, and stdio_serial_init().
Referenced by main().
int main | ( | void | ) |
Application entry point.
References board_init(), configure_console(), hmatrix_slave_ch_conf::def_master_type, HMATRIX_DEFAULT_MASTER_NONE, HMATRIX_DEFAULT_MASTER_PREVIOUS, hmatrix_enable(), hmatrix_slave_ch_get_config_defaults(), hmatrix_slave_ch_set_config(), HMATRIX_SLAVE_ID_FLASH, HMATRIX_SLAVE_ID_NUM, STRING_HEADER, sysclk_get_cpu_hz(), sysclk_init(), and toggle_led_test().
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 |
Toggle led at the given time.
ul_dly_ticks | Delay to wait for, in milliseconds. |
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().