diff --git a/tests/wwdg/mocks/wwdg_hw.c b/tests/wwdg/mocks/wwdg_hw.c new file mode 100644 index 0000000..1f78ed2 --- /dev/null +++ b/tests/wwdg/mocks/wwdg_hw.c @@ -0,0 +1,13 @@ +#include "wwdg_hw.h" + + +void wwdg_mock_setup(WWDG_TypeDef *wwdg) +{ + +} + +void wwdg_mock_reset(void){}; + +void wwdg_mock_clock_tick(void){}; + +void wwdg_mock_tick_n_times(size_t n){}; diff --git a/tests/wwdg/mocks/wwdg_hw.h b/tests/wwdg/mocks/wwdg_hw.h index 0c46349..60497dc 100644 --- a/tests/wwdg/mocks/wwdg_hw.h +++ b/tests/wwdg/mocks/wwdg_hw.h @@ -9,23 +9,21 @@ typedef struct { - bool is_enabled; - bool is_HSE; + bool is_enabled; + bool is_HSE; uint32_t clock_rate; -}RISCV_APB_CLK; +} RISCV_APB_CLK; /* Window WatchDog Registers*/ typedef struct { - uint16_t CTLR; /* Control Register */ - uint16_t RESERVED1; - uint16_t CFGR; /* Configuration Register */ - uint16_t RESERVED2; - uint16_t STATR; /* Status Register */ + uint16_t CTLR; /* Control Register */ + uint16_t RESERVED1; + uint16_t CFGR; /* Configuration Register */ + uint16_t RESERVED2; + uint16_t STATR; /* Status Register */ } WWDG_TypeDef; - - void wwdg_mock_setup(WWDG_TypeDef *wwdg); void wwdg_mock_reset(void); @@ -34,4 +32,4 @@ void wwdg_mock_clock_tick(void); void wwdg_mock_tick_n_times(size_t n); -#endif //WWDG_MOCK_H +#endif // WWDG_MOCK_H