mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 12:35:28 +00:00
ipc: prevent code getting pulled in for unicore configuration
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
#include "freertos/task.h"
|
||||
#include "unity.h"
|
||||
#include "esp_ipc.h"
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#if !CONFIG_FREERTOS_UNICORE
|
||||
static void test_func_ipc_cb(void *arg)
|
||||
{
|
||||
vTaskDelay(50);
|
||||
@@ -14,10 +16,7 @@ static void test_func_ipc_cb(void *arg)
|
||||
TEST_CASE("Test blocking IPC function call", "[ipc]")
|
||||
{
|
||||
int val = 0x5a5a;
|
||||
#ifdef CONFIG_FREERTOS_UNICORE
|
||||
esp_ipc_call_blocking(xPortGetCoreID(), test_func_ipc_cb, &val);
|
||||
#else
|
||||
esp_ipc_call_blocking(!xPortGetCoreID(), test_func_ipc_cb, &val);
|
||||
#endif
|
||||
TEST_ASSERT_EQUAL_HEX(val, 0xa5a5);
|
||||
}
|
||||
#endif /* !CONFIG_FREERTOS_UNICORE */
|
||||
|
Reference in New Issue
Block a user