Microchip® Advanced Software Framework

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

Unit tests for FREQM driver.

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

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

Functions

int main (void)
 Run FREQM driver unit tests. More...
 
static void run_freqm_test (const struct test_case *test)
 Test FREQM measurement done. More...
 
static void set_int_flag (void)
 Interrupt handler for FREQM interrupt. More...
 

Variables

struct freqm_config g_freqm_cfg
 FREQM configuration. More...
 
struct freqm_dev_inst g_freqm_inst
 FREQM instance. More...
 
volatile uint8_t intflag = 0
 

static void run_freqm_test ( const struct test_case test)
static
static void set_int_flag ( void  )
static

Interrupt handler for FREQM interrupt.

References freqm_disable_interrupt(), freqm_get_interrupt_status(), FREQM_INTERRUPT_MEASURMENT_READY, g_freqm_inst, and intflag.

Referenced by run_freqm_test().

struct freqm_config g_freqm_cfg

FREQM configuration.

Referenced by main(), and run_freqm_test().

struct freqm_dev_inst g_freqm_inst

FREQM instance.

Referenced by main(), run_freqm_test(), and set_int_flag().

volatile uint8_t intflag = 0