unit_test: ThreadReference mock

This commit is contained in:
Andrey Gusakov 2024-03-11 23:14:25 +03:00 committed by rusefillc
parent c13897a2d1
commit f765fe82be
1 changed files with 7 additions and 0 deletions

View File

@ -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 <int N>
struct BaseStaticThread {