2021-10-01 00:21:50 +08:00

16 lines
295 B
C

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