Option to prevent (extra) Watchdog init on STM32 (#19693)
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							2dafba1ad2
						
					
				
				
					commit
					c1729330c5
				
			@@ -30,7 +30,11 @@
 | 
			
		||||
  #include "watchdog.h"
 | 
			
		||||
  #include <IWatchdog.h>
 | 
			
		||||
 | 
			
		||||
  void watchdog_init() { IWatchdog.begin(4000000); } // 4 sec timeout
 | 
			
		||||
  void watchdog_init() {
 | 
			
		||||
    #if DISABLED(DISABLE_WATCHDOG_INIT)
 | 
			
		||||
      IWatchdog.begin(4000000); // 4 sec timeout
 | 
			
		||||
    #endif
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  void HAL_watchdog_refresh() {
 | 
			
		||||
    IWatchdog.reload();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user