mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
b0840b9869
* format * use inner_bytecode instead of obj_run * add asserts for event-test * test event for PikaStdDevice is ok * adding event fealure * fetch PikaStdDevice_Time to port linux
18 lines
373 B
C
18 lines
373 B
C
#include "TemplateDevice_Time.h"
|
|
|
|
void TemplateDevice_Time_sleep_ms(PikaObj *self, int ms){
|
|
|
|
}
|
|
void TemplateDevice_Time_sleep_s(PikaObj *self, int s){
|
|
|
|
}
|
|
|
|
static volatile uint64_t tick_ms = 0;
|
|
void TemplateDevice_Time_platformGetTick(PikaObj *self){
|
|
tick_ms += 50;
|
|
obj_setInt(self, "tick", tick_ms);
|
|
}
|
|
|
|
void TemplateDevice_Time_platformGetEventId(PikaObj *self){
|
|
|
|
} |