2021-09-09 08:40:13 +08:00

19 lines
309 B
C

#include "BaseObj.h"
#include "STM32_Time.h"
#include <stdint.h>
#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);
}
}