From f765fe82bec83f3643cb74e38d1148f86f5fb842 Mon Sep 17 00:00:00 2001 From: Andrey Gusakov Date: Mon, 11 Mar 2024 23:14:25 +0300 Subject: [PATCH] unit_test: ThreadReference mock --- unit_tests/chibios-mock/mock-threads.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/unit_tests/chibios-mock/mock-threads.h b/unit_tests/chibios-mock/mock-threads.h index bb814fb4bf..f93552e7ce 100644 --- a/unit_tests/chibios-mock/mock-threads.h +++ b/unit_tests/chibios-mock/mock-threads.h @@ -24,6 +24,13 @@ thread_t *chThdCreateStatic(void *wsp, size_t size, #define PAL_MODE_OUTPUT_PUSHPULL 0 +namespace chibios_rt { + struct ThreadReference { + void requestTerminate() { } + void wait() { } + }; +} + namespace chibios_rt { template struct BaseStaticThread {