Microchip® Advanced Software Framework

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

Unit tests for ACIFC driver.

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

#include <board.h>
#include <sysclk.h>
#include "acifc.h"
#include "delay.h"
#include <string.h>
#include <unit_test/suite.h>
#include <stdio_serial.h>
#include <conf_test.h>
#include <conf_board.h>

Macros

#define EXAMPLE_AC_CHANNEL   0
 Analog comparator channel number. More...
 

Functions

int main (void)
 Run AC driver unit tests. More...
 
static void run_ac_test (const struct test_case *test)
 Test AC. More...
 
static void set_int_flag (void)
 Callback for AC interrupt. More...
 

Variables

struct ac_dev_inst ac_device
 
volatile bool intflag = false
 

#define EXAMPLE_AC_CHANNEL   0

Analog comparator channel number.

Referenced by run_ac_test().

static void set_int_flag ( void  )
static

Callback for AC interrupt.

References ac_clear_interrupt_status(), ac_device, and intflag.

Referenced by run_ac_test().

struct ac_dev_inst ac_device
volatile bool intflag = false