Microchip® Advanced Software Framework

sam/drivers/hmatrixb/unit_tests/unit_tests.c File Reference

Unit tests for HMATRIX driver.

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

#include <asf.h>
#include <conf_test.h>

Functions

int main (void)
 Run HMATRIX driver unit tests. More...
 
static void run_hmatrix_test_arbitration (const struct test_case *test)
 Test running speed between different arbitration configurations. More...
 
static void run_hmatrix_test_master (const struct test_case *test)
 Test running speed between different master configurations. More...
 
static void run_hmatrix_test_slave (const struct test_case *test)
 Test running speed between different slave configurations. 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
 

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 run_hmatrix_test_arbitration(), run_hmatrix_test_master(), and run_hmatrix_test_slave().

volatile uint32_t g_ul_ms_ticks = 0