소스 검색

[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 개월 전
부모
커밋
bf75b6665c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      bsp/stm32/libraries/HAL_Drivers/drivers/drv_wdt.c

+ 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"