Microchip® Advanced Software Framework

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

Unit tests for AST driver.

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

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

Functions

static void ast_alarm_callback (void)
 Callback handler for AST alarm interrupt. More...
 
static void ast_per_callback (void)
 Callback handler for AST periodic interrupt. More...
 
int main (void)
 Run AST driver unit tests. More...
 
static void run_alarm_test (const struct test_case *test)
 Test alarm interrupt and wakeup functions in calendar/counter mode. More...
 
static void run_periodic_test (const struct test_case *test)
 Test periodic interrupt and wakeup functions in counter mode. More...
 

Variables

volatile uint8_t flag = 0
 

static void ast_alarm_callback ( void  )
static

Callback handler for AST alarm interrupt.

References ast_clear_interrupt_flag(), ast_disable_interrupt(), AST_INTERRUPT_ALARM, and flag.

Referenced by run_alarm_test().

static void ast_per_callback ( void  )
static

Callback handler for AST periodic interrupt.

References ast_clear_interrupt_flag(), ast_disable_interrupt(), AST_INTERRUPT_PER, and flag.

Referenced by run_periodic_test().

volatile uint8_t flag = 0