mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-22 17:12:55 +08:00
19 lines
309 B
C
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);
|
|
}
|
|
} |