freertos: changed isr time test case variables to static

This commit is contained in:
Felipe Neves
2019-11-26 14:49:08 -03:00
parent 3882d986bd
commit 0ea6453b1c
4 changed files with 9 additions and 10 deletions

View File

@@ -439,4 +439,5 @@ menu "FreeRTOS"
bool
help
Hidden option, gets selected by CONFIG_ESPxx_DEBUG_OCDAWARE
endmenu

View File

@@ -5,7 +5,7 @@ if(IDF_TARGET STREQUAL "esp32")
endif()
idf_component_register(SRC_DIRS ${src_dirs}
idf_component_register(SRC_DIRS ${srcdirs}
INCLUDE_DIRS .
REQUIRES unity test_utils
)

View File

@@ -17,10 +17,10 @@
static SemaphoreHandle_t sync;
static SemaphoreHandle_t end_sema;
uint32_t cycle_before_trigger;
uint32_t cycle_before_exit;
uint32_t delta_enter_cycles = 0;
uint32_t delta_exit_cycles = 0;
static uint32_t cycle_before_trigger;
static uint32_t cycle_before_exit;
static uint32_t delta_enter_cycles = 0;
static uint32_t delta_exit_cycles = 0;
static void software_isr(void *arg) {
(void)arg;

View File

@@ -29,11 +29,9 @@
/**
* @note For some reason setjmp does not work with
* unity in local tests for, at least now, unknown
* reasons since the interrupt handling was modified
* so if you want to perform tests locally,
* uncomment this line. Remote tests on CI
* still working as expected
* unity, since it is only used on test entry and
* exit it should not impact the rest of test
* framework. So we disable it here.
*/
#define UNITY_EXCLUDE_SETJMP_H