Added tests module for wwdg/mocks.

This commit is contained in:
Jake Goodwin 2026-03-17 18:25:27 -07:00
parent 514c90cefe
commit e1e6315f7f
2 changed files with 22 additions and 11 deletions

View file

@ -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){};

View file

@ -12,7 +12,7 @@ typedef struct
bool is_enabled;
bool is_HSE;
uint32_t clock_rate;
}RISCV_APB_CLK;
} RISCV_APB_CLK;
/* Window WatchDog Registers*/
typedef struct
@ -24,8 +24,6 @@ typedef struct
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