1 #include <mock_enums.h>
3 typedef struct timerHardware_s
{
4 enum TestTimerEnum timer
;
5 enum TestChannelEnum channel
;
7 enum TestTimUseEnum purpose
;
8 unsigned int def_tim_counter
;
11 // F7 and F4 have 6 arguments, F3 and F1 have 5 arguments.
12 #define DEF_TIM(timer_, channel_, pin_, purpose_, ...) \
15 .channel = channel_, \
17 .purpose = purpose_, \
18 .def_tim_counter = __COUNTER__, \
21 #define TIM_N(n) (1 << (n))