Matrix example for SAM.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
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 |
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, CONSOLE_UART_ID, stdio_serial_init(), and sysclk_enable_peripheral_clock().
Referenced by main().
int main | ( | void | ) |
Application entry point.
References board_init(), configure_console(), MATRIX_ARBT_ROUND_ROBIN, MATRIX_DEFMSTR_LAST_DEFAULT_MASTER, MATRIX_DEFMSTR_NO_DEFAULT_MASTER, matrix_set_slave_arbitration_type(), matrix_set_slave_default_master_type(), MATRIX_SLAVE_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, 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().