pikapython/package/pikaRTThread/pikaRTThread_Thread.c

20 lines
441 B
C
Raw Normal View History

2021-12-08 21:41:39 +08:00
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2021-12-08 lyon the first version
*/
#include <rtthread.h>
#include <pikaScript.h>
void pikaRTThread_Thread_mdelay(PikaObj *self, int ms){
rt_thread_mdelay(ms);
}
void pikaRTThread_Task_platformGetTick(PikaObj *self){
obj_setInt(self, "tick", rt_tick_get());
}