implement thread_sleep for api_none.cpp

This commit is contained in:
idea4good 2019-01-11 09:56:54 +08:00
parent 60c3e82110
commit f4d46e3504
2 changed files with 5 additions and 3 deletions

3
.gitignore vendored
View File

@ -42,4 +42,5 @@ libgui.a
# Keil
GuiLite.uvguix.*
GuiLite.uvoptx
Objects
Objects
DebugConfig

View File

@ -64,9 +64,10 @@ void create_thread(unsigned long* thread_id, void* attr, void *(*start_routine)
log_out("Not support now");
}
extern "C" void delay_ms(unsigned short nms);
void thread_sleep(unsigned int milli_seconds)
{
log_out("Not support now");
{//MCU alway implemnet driver code in APP.
delay_ms(milli_seconds);
}
int build_bmp(const char *filename, unsigned int width, unsigned int height, unsigned char *data)