Browse Source

[ch32][risc-v][drv] fix rt_hw_us_delay compile error

Meco Man 2 years ago
parent
commit
4b3f14565d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      bsp/wch/risc-v/Libraries/ch32_drivers/drv_common.c

+ 1 - 0
bsp/wch/risc-v/Libraries/ch32_drivers/drv_common.c

@@ -10,6 +10,7 @@
 
 #include <rtthread.h>
 #include "drv_common.h"
+#include <board.h> /* for rt_hw_us_delay */
 
 #define DBG_TAG    "drv.common"
 #define DBG_LVL    DBG_INFO