ESP-IDF Firmware
Firmware architecture and call graph
Loading...
Searching...
No Matches
dsp_tests.h File Reference
#include <stdlib.h>
#include "esp_idf_version.h"
#include "esp_dsp.h"
Include dependency graph for dsp_tests.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TEST_ASSERT_EXEC_IN_RANGE(min_exec, max_exec, actual)
#define memalign(align_, size_)

Macro Definition Documentation

◆ memalign

◆ TEST_ASSERT_EXEC_IN_RANGE

#define TEST_ASSERT_EXEC_IN_RANGE ( min_exec,
max_exec,
actual )
Value:
if (actual >= max_exec) { \
ESP_LOGE("", "Time error. Expected max: %i, reached: %i", (int)max_exec, (int)actual);\
TEST_ASSERT_MESSAGE (false, "Exec time takes more than expected! ");\
}\
if (actual < min_exec) {\
ESP_LOGE("", "Time error. Expected min: %i, reached: %i", (int)min_exec, (int)actual);\
TEST_ASSERT_MESSAGE (false, "Exec time takes less then expected!");\
}

Definition at line 22 of file dsp_tests.h.

22#define TEST_ASSERT_EXEC_IN_RANGE(min_exec, max_exec, actual) \
23 if (actual >= max_exec) { \
24 ESP_LOGE("", "Time error. Expected max: %i, reached: %i", (int)max_exec, (int)actual);\
25 TEST_ASSERT_MESSAGE (false, "Exec time takes more than expected! ");\
26 }\
27 if (actual < min_exec) {\
28 ESP_LOGE("", "Time error. Expected min: %i, reached: %i", (int)min_exec, (int)actual);\
29 TEST_ASSERT_MESSAGE (false, "Exec time takes less then expected!");\
30 }