refactor: Working on SPIT yet again
This commit is contained in:
@@ -14,7 +14,7 @@ set(EXTRA_COMPONENT_DIRS
|
||||
# - when invoking CMake directly: cmake -D TEST_COMPONENTS="xxxxx" ..
|
||||
# - when using idf.py: idf.py -T xxxxx build
|
||||
#
|
||||
set(TEST_COMPONENTS "testable freeRtosApi hwHal" CACHE STRING "List of components to test")
|
||||
set(TEST_COMPONENTS "testable freeRtosApi hwHal spit" CACHE STRING "List of components to test" FORCE)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(unit_test)
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
#include "unity.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
|
||||
extern "C" { // This switch allows the ROS C-implementation to find this main
|
||||
void app_main(void);
|
||||
@@ -33,5 +35,9 @@ void app_main(void) {
|
||||
printf("# - run tagged with [tag], \n");
|
||||
printf("# - run all other than ![tag])\n");
|
||||
printf("# Exit with 'Ctrl-]'\n");
|
||||
unity_run_menu();
|
||||
// unity_run_menu(); // Watchdog needs to
|
||||
|
||||
while (true) {
|
||||
vTaskDelay(10);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user