Microchip® Advanced Software Framework

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

Unit tests for EIC driver.

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

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

Functions

int main (void)
 Run EIC driver unit tests. More...
 
static void run_eic_test (const struct test_case *test)
 Test EIC. More...
 
static void set_int_flag (void)
 Interrupt handler for EIC interrupt. More...
 

Variables

volatile uint8_t intflag = 0
 

static void set_int_flag ( void  )
static

Interrupt handler for EIC interrupt.

References eic_line_disable_interrupt(), eic_line_interrupt_is_pending(), and intflag.

Referenced by run_eic_test().

volatile uint8_t intflag = 0