Soft Reset via Serial or post-kill button click (#21652)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
		@@ -73,4 +73,6 @@ void HAL_pwm_init() {
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void HAL_reboot() { /* Reset the application state and GPIO */ }
 | 
			
		||||
 | 
			
		||||
#endif // __PLAT_LINUX__
 | 
			
		||||
 
 | 
			
		||||
@@ -107,7 +107,7 @@ uint16_t HAL_adc_get_result();
 | 
			
		||||
inline void HAL_clear_reset_source(void) {}
 | 
			
		||||
inline uint8_t HAL_get_reset_source(void) { return RST_POWER_ON; }
 | 
			
		||||
 | 
			
		||||
inline void HAL_reboot() {}  // reboot the board or restart the bootloader
 | 
			
		||||
void HAL_reboot(); // Reset the application state and GPIO
 | 
			
		||||
 | 
			
		||||
/* ---------------- Delay in cycles */
 | 
			
		||||
FORCE_INLINE static void DELAY_CYCLES(uint64_t x) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user