Przeglądaj źródła

[bsp][stm32] 1.Fixed the problem that the watchdog device was not registered, because the macro RT_USING_WDT was not introduced due to the missing header file.

Chasel 1 miesiąc temu
rodzic
commit
bf75b6665c

+ 2 - 0
bsp/stm32/libraries/HAL_Drivers/drivers/drv_wdt.c

@@ -9,8 +9,10 @@
  */
 
 #include <board.h>
+#include <rtthread.h>
 
 #ifdef RT_USING_WDT
+#include "drv_config.h"
 
 //#define DRV_DEBUG
 #define LOG_TAG             "drv.wdt"