#include "main.h" #include "stm32f1xx_hal.h" #include #include "mcu/arm/semihosting.h" #ifdef HAL_IWDG_MODULE_ENABLED extern IWDG_HandleTypeDef hiwdg; #endif void main_pre_init() { // SystemInit(); } void main_post_init() { semihosting::enable(); } void main_loop() { // printf("hello world!"); #ifdef HAL_IWDG_MODULE_ENABLED HAL_IWDG_Refresh(&hiwdg); #endif } void it_tim1(TIM_HandleTypeDef *htim1) { ; }