cpp: Add rtio headers to cxx test

Include all the rtio headers with all the configs enabled into the
cxx test.

Signed-off-by: Yuval Peress <peress@google.com>
This commit is contained in:
Yuval Peress 2023-04-11 22:37:09 -06:00 committed by Carles Cufí
parent 83ec915b0f
commit 18eed82273
2 changed files with 13 additions and 0 deletions

View File

@ -5,3 +5,9 @@ CONFIG_ZTEST_STACK_SIZE=2048
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=128
CONFIG_ZTEST_NEW_API=y
CONFIG_CRC=y
# RTIO
CONFIG_RTIO=y
CONFIG_RTIO_SUBMIT_SEM=y
CONFIG_RTIO_CONSUME_SEM=y
CONFIG_RTIO_SYS_MEM_BLOCKS=y

View File

@ -79,6 +79,13 @@
#include <zephyr/drivers/video.h>
#include <zephyr/drivers/watchdog.h>
/* Add RTIO headers to make sure they're CXX compatible */
#include <zephyr/rtio/rtio.h>
#include <zephyr/rtio/rtio_spsc.h>
#include <zephyr/rtio/rtio_mpsc.h>
#include <zephyr/rtio/rtio_executor_simple.h>
#include <zephyr/rtio/rtio_executor_concurrent.h>
#include <zephyr/ztest.h>
class foo_class {