Commit Graph

11 Commits

Author SHA1 Message Date
Andrew Tridgell
f8e5ef38e8 HAL_ChibiOS: added save/restore of attitude in backup registers 2019-04-21 13:08:46 +10:00
Andrew Tridgell
2a7f0e4c47 HAL_ChibiOS: fixed build with older gcc 2019-04-20 20:29:51 +10:00
Andrew Tridgell
723a7bb647 HAL_ChibiOS: save/restore home position in backup registers 2019-04-20 19:49:46 +10:00
Andrew Tridgell
f89aadd2ba HAL_ChibiOS: fixed watchdog timeout setting 2019-04-20 16:31:28 +10:00
Andrew Tridgell
f5e170c76b HAL_ChibiOS: implement was_watchdog_armed() 2019-04-20 14:16:22 +10:00
Andrew Tridgell
0a263cf202 HAL_ChibiOS: added ability to restore safety state on watchdog reset
# Conflicts:
#	libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c
2019-04-20 13:59:39 +10:00
Andrew Tridgell
ddda455973 HAL_ChibiOS: change to 2s timeout on watchdog
a bit more of a safety net against false positives for stable release
2019-04-20 13:58:58 +10:00
Andrew Tridgell
3597e77f49 HAL_ChibiOS: fixed watchdog on H7 2019-04-20 13:57:43 +10:00
Andrew Tridgell
cec6f0e3d4 HAL_ChibiOS: implement scheduler->expect_delay_ms()
# Conflicts:
#	libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp
#	libraries/AP_HAL_ChibiOS/Scheduler.h
2019-04-20 13:57:23 +10:00
Andrew Tridgell
ac5294c974 HAL_ChibiOS: record reason for reset
allows us to tell if reset was due to watchdog
2019-04-20 13:54:18 +10:00
Andrew Tridgell
78ac3e1e2f HAL_ChibiOS: added IWDG watchdog support
this resets the MCU if the main loop stops for 1 second

# Conflicts:
#	libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp
2019-04-20 13:52:31 +10:00