Răsfoiți Sursa

update:让非luatos开发的bsp也能使用w5500

doudou 2 ani în urmă
părinte
comite
ab035f8b8b
2 a modificat fișierele cu 7 adăugiri și 0 ștergeri
  1. 2 0
      components/ethernet/w5500/w5500.c
  2. 5 0
      luat/include/luat_timer.h

+ 2 - 0
components/ethernet/w5500/w5500.c

@@ -3,7 +3,9 @@
 #include "luat_spi.h"
 #ifdef LUAT_USE_W5500
 #include "luat_rtos.h"
+#ifdef __LUATOS__
 #include "luat_zbuff.h"
+#endif
 #include "luat_gpio.h"
 #include "w5500_def.h"
 #include "luat_crypto.h"

+ 5 - 0
luat/include/luat_timer.h

@@ -2,7 +2,9 @@
 #define LUAT_TIMER_H
 
 #include "luat_base.h"
+#ifdef __LUATOS__
 #include "luat_msgbus.h"
+#endif
 
 typedef struct luat_timer
 {
@@ -11,7 +13,10 @@ typedef struct luat_timer
     size_t timeout;
     size_t type;
     int repeat;
+#ifdef __LUATOS__
     luat_msg_handler func;
+#endif
+
 }luat_timer_t;