mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
Merge branch 'bugfix/spi_slave_test_non_dma_v4.3' into 'release/v4.3'
spi-slave: fix single-board: hd test failing due to DMA buffers ending up in PSRAM (v4.3) See merge request espressif/esp-idf!16306
This commit is contained in:
@@ -137,7 +137,7 @@ static void init_slave_hd(int mode, bool append_mode, const spi_slave_hd_callbac
|
|||||||
static void test_hd_init(void** arg)
|
static void test_hd_init(void** arg)
|
||||||
{
|
{
|
||||||
TEST_ASSERT(*arg==NULL);
|
TEST_ASSERT(*arg==NULL);
|
||||||
*arg = malloc(sizeof(testhd_context_t));
|
*arg = heap_caps_malloc(sizeof(testhd_context_t), MALLOC_CAP_DMA);
|
||||||
assert(((int)arg%4)==0);
|
assert(((int)arg%4)==0);
|
||||||
testhd_context_t* context = (testhd_context_t*)*arg;
|
testhd_context_t* context = (testhd_context_t*)*arg;
|
||||||
TEST_ASSERT(context!=NULL);
|
TEST_ASSERT(context!=NULL);
|
||||||
|
Reference in New Issue
Block a user