19 lines
309 B
C
Raw Normal View History

2021-09-08 21:25:52 +08:00
#include "BaseObj.h"
#include "STM32_Time.h"
#ifdef STM32G070xx
#include "stm32g0xx_hal.h"
#include <stdint.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);
}
}