Microchip® Advanced Software Framework

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

Unit tests for GPIO driver.

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

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

Functions

static void gpio_pin_callback (void)
 GPIO pin interrupt callback. More...
 
int main (void)
 Run GPIO driver unit tests. More...
 
static void run_gpio_int_test (const struct test_case *test)
 Test GPIO interrupt. More...
 

Variables

volatile bool gpio_int_happened = false
 

static void gpio_pin_callback ( void  )
static

GPIO pin interrupt callback.

References gpio_int_happened.

Referenced by run_gpio_int_test().

volatile bool gpio_int_happened = false