GCC Code Coverage Report


Directory: ./
File: unit_tests/chibios-mock/mock-threads.h
Date: 2025-10-03 00:57:22
Coverage Exec Excl Total
Lines: 0.0% 0 0 4
Functions: 0.0% 0 0 3
Branches: -% 0 0 0
Decisions: -% 0 - 0

Line Branch Decision Exec Source
1 #define THD_WORKING_AREA(name, size) uint8_t name[size];
2 #define NORMALPRIO 1
3 #define CH_CFG_ST_FREQUENCY 1000000
4
5 typedef void (*tfunc_t)(void *p);
6 typedef int tprio_t;
7 typedef uint32_t systime_t;
8 typedef uint32_t sysinterval_t;
9
10 class thread_t {
11 public:
12 const char *name;
13 tfunc_t funcp;
14 void *arg;
15
16 unsigned char threadId;
17 };
18
19 bool chThdShouldTerminateX(void);
20 systime_t chVTGetSystemTime(void);
21 systime_t chThdSleepUntilWindowed(systime_t prev, systime_t next);
22
23 thread_t *chThdCreateStatic(void *wsp, size_t size,
24 tprio_t prio, tfunc_t pf, void *arg);
25 static inline systime_t chTimeAddX(systime_t systime,
26 sysinterval_t interval) {
27 return systime + (systime_t)interval;
28 }
29
30 #define PAL_MODE_OUTPUT_PUSHPULL 0
31
32 namespace chibios_rt {
33 struct ThreadReference {
34 void requestTerminate() { }
35 void wait() { }
36 };
37 }
38
39 namespace chibios_rt {
40 template <int N>
41 struct BaseStaticThread {
42 void start(tprio_t) { }
43 virtual void main() = 0;
44 void setName(const char*) { }
45 };
46 }
47