mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
14 lines
278 B
C
14 lines
278 B
C
#include "STM32_Time.h"
|
|
#include <stdint.h>
|
|
#include "BaseObj.h"
|
|
|
|
#include "STM32_common.h"
|
|
|
|
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);
|
|
}
|
|
} |