theCore C++ embedded framework
exti_manager_bat/case.cpp File Reference
#include <ecl/unity_helpers.hpp>
#include <test_gpio.hpp>
#include <platform/exti_manager.hpp>
#include <unity.h>
#include <unity_fixture.h>
Include dependency graph for exti_manager_bat/case.cpp:

Functions

static void test_exti_hanlder (void *ctx)
 
 TEST_GROUP (exti_basic)
 
 TEST_SETUP (exti_basic)
 
 TEST_TEAR_DOWN (exti_basic)
 
 TEST (exti_basic, subscribe_unsubscribe)
 
 TEST (exti_basic, mask_unmask)
 
 TEST (exti_basic, handle_presses)
 

Variables

static volatile bool call_is_expected = false
 
static volatile bool call_occur = true
 
static void * expected_ctx = nullptr
 
static ecl::exti_manager::handler test_handler = {}
 

Function Documentation

◆ test_exti_hanlder()

static void test_exti_hanlder ( void *  ctx)
static

◆ TEST_GROUP()

TEST_GROUP ( exti_basic  )

◆ TEST_SETUP()

TEST_SETUP ( exti_basic  )
Here is the call graph for this function:

◆ TEST_TEAR_DOWN()

TEST_TEAR_DOWN ( exti_basic  )
Here is the call graph for this function:

◆ TEST() [1/3]

TEST ( exti_basic  ,
subscribe_unsubscribe   
)

◆ TEST() [2/3]

TEST ( exti_basic  ,
mask_unmask   
)
Here is the call graph for this function:

◆ TEST() [3/3]

TEST ( exti_basic  ,
handle_presses   
)
Here is the call graph for this function:

Variable Documentation

◆ call_is_expected

volatile bool call_is_expected = false
static

◆ call_occur

volatile bool call_occur = true
static

◆ expected_ctx

void* expected_ctx = nullptr
static

◆ test_handler

ecl::exti_manager::handler test_handler = {}
static