--- /dev/null
+menu "Unity test framework"
+
+config UNITY_FREERTOS_PRIORITY
+ int "Priority of Unity test task"
+ default 5
+
+config UNITY_FREERTOS_CPU
+ int "CPU to run Unity test task on"
+ default 0
+
+config UNITY_FREERTOS_STACK_SIZE
+ int "Stack size of Unity test task, in bytes"
+ default 8192
+
+endmenu
// Adapt Unity to our environment, disable FP support
#include <esp_err.h>
+#include <sdkconfig.h>
/* Some definitions applicable to Unity running in FreeRTOS */
-#define UNITY_FREERTOS_PRIORITY 5
-#define UNITY_FREERTOS_CPU 0
+#define UNITY_FREERTOS_PRIORITY CONFIG_UNITY_FREERTOS_PRIORITY
+#define UNITY_FREERTOS_CPU CONFIG_UNITY_FREERTOS_CPU
+#define UNITY_FREERTOS_STACK_SIZE CONFIG_UNITY_FREERTOS_STACK_SIZE
#define UNITY_EXCLUDE_FLOAT
#define UNITY_EXCLUDE_DOUBLE
TEST_COMPONENTS=libsodium
+CONFIG_UNITY_FREERTOS_STACK_SIZE=12288
// Note: if unpinning this task, change the way run times are calculated in
// unity_platform
- xTaskCreatePinnedToCore(unityTask, "unityTask", 8192, NULL,
+ xTaskCreatePinnedToCore(unityTask, "unityTask", UNITY_FREERTOS_STACK_SIZE, NULL,
UNITY_FREERTOS_PRIORITY, NULL, UNITY_FREERTOS_CPU);
}