Skip to content

Commit 23ebd62

Browse files
mariopajakartben
authored andcommitted
tests: drivers: memc: add bigger buffer size for psram nodes
This change updates buffer size to the full psram size when psram node is available Signed-off-by: Mario Paja <mariopaja@hotmail.com>
1 parent 55718e2 commit 23ebd62

File tree

1 file changed

+6
-0
lines changed
  • tests/drivers/memc/ram/src

1 file changed

+6
-0
lines changed

tests/drivers/memc/ram/src/main.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
* Copyright (c) 2020, Teslabs Engineering S.L.
33
* Copyright (c) 2022, Basalte bv
4+
* Copyright (c) 2025, ZAL Zentrum für Angewandte Luftfahrtforschung GmbH
45
*
56
* SPDX-License-Identifier: Apache-2.0
67
*/
@@ -10,7 +11,12 @@
1011
#include <zephyr/ztest.h>
1112

1213
/** Buffer size. */
14+
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(psram))
15+
#define BUF_SIZE 524288U
16+
#else
1317
#define BUF_SIZE 64U
18+
#endif
19+
1420
#define BUF_DEF(label) static uint32_t buf_##label[BUF_SIZE] \
1521
Z_GENERIC_SECTION(LINKER_DT_NODE_REGION_NAME(DT_NODELABEL(label)))
1622

0 commit comments

Comments
 (0)