فهرست منبع

!403 fix two warnings in rt-smart kernel. (Tested on art-pi samrt sdk)
Merge pull request !403 from Blues Lin/rt-smart

bernard 4 سال پیش
والد
کامیت
a6cd94e524
2فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 1 0
      components/drivers/touch/touch.h
  2. 1 0
      include/rtthread.h

+ 1 - 0
components/drivers/touch/touch.h

@@ -13,6 +13,7 @@
 
 #include <rtthread.h>
 #include <rtdevice.h>
+#include <time.h>
 
 #ifdef __cplusplus
 extern "C" {

+ 1 - 0
include/rtthread.h

@@ -551,6 +551,7 @@ struct rt_cpu *rt_cpu_index(int index);
 rt_uint8_t rt_interrupt_get_nest(void);
 
 #ifdef RT_USING_HOOK
+void rt_scheduler_switch_sethook(void (*hook)(struct rt_thread *tid));
 void rt_interrupt_enter_sethook(void (*hook)(void));
 void rt_interrupt_leave_sethook(void (*hook)(void));
 #endif