#include "BaseObj.h" #include "STM32_Time.h" #include #ifdef STM32G070xx #include "stm32g0xx_hal.h" #endif void STM32_Time_sleep_ms(PikaObj *self, int ms) { HAL_Delay(ms); } void STM32_Time_sleep_s(PikaObj *self, int s) { for (int i = 0; i < s; i++) { HAL_Delay(1000); } }