diff options
-rw-r--r-- | zephyr/test/drivers/common/include/test/drivers/test_state.h | 8 | ||||
-rw-r--r-- | zephyr/test/drivers/default/src/console_cmd/vboot_hash.c | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/zephyr/test/drivers/common/include/test/drivers/test_state.h b/zephyr/test/drivers/common/include/test/drivers/test_state.h index bea56224fc..98cf4a283e 100644 --- a/zephyr/test/drivers/common/include/test/drivers/test_state.h +++ b/zephyr/test/drivers/common/include/test/drivers/test_state.h @@ -6,6 +6,10 @@ #ifndef ZEPHYR_TEST_DRIVERS_INCLUDE_TEST_STATE_H_ #define ZEPHYR_TEST_DRIVERS_INCLUDE_TEST_STATE_H_ +#ifdef __cplusplus +extern "C" { +#endif + struct test_state { bool ec_app_main_run; }; @@ -14,4 +18,8 @@ bool drivers_predicate_pre_main(const void *state); bool drivers_predicate_post_main(const void *state); +#ifdef __cplusplus +} +#endif + #endif /* ZEPHYR_TEST_DRIVERS_INCLUDE_TEST_STATE_H_ */ diff --git a/zephyr/test/drivers/default/src/console_cmd/vboot_hash.c b/zephyr/test/drivers/default/src/console_cmd/vboot_hash.c index c723a4a232..b475f344c8 100644 --- a/zephyr/test/drivers/default/src/console_cmd/vboot_hash.c +++ b/zephyr/test/drivers/default/src/console_cmd/vboot_hash.c @@ -9,6 +9,7 @@ #include <zephyr/ztest.h> #include "console.h" +#include "flash.h" #include "printf.h" #include "sha256.h" #include "system.h" |