Commit Graph

2657 Commits

Author SHA1 Message Date
Andrew Tridgell 81e0685d33 HAL_ChibiOS: support recovery from a mutex deadlock
if we have a bug which causes a lock order deadlock locking up the
main thread then try a force release of the mutex to allow flight to
continue without a watchdog
2023-06-27 10:11:46 +10:00
Peter Barker 3869c4c0e9 AP_HAL_ChibiOS: add and use AP_SBUSOUTPUT_ENABLED
.... which will allow periphs to instantiate this if they really feel like it, and for it to be removed on smaller boards on the custom build server (and potentially on lower-specced boards.
2023-06-27 10:10:41 +10:00
Peter Barker 20e10dc401 hwdef: update FlyingMoonF427
vendor update
2023-06-27 09:38:48 +10:00
Andy Piper a7ad2dc940 AP_HAL_ChibiOS: use unsigned math as appropriate 2023-06-27 09:28:33 +10:00
Andy Piper 76b7566cd1 AP_HAL_ChibiOS: implement extended dshot telemetry (EDT) 2023-06-27 09:28:33 +10:00
Peter Barker 55227bc487 Tools: add and use AP_GPS_ENABLED 2023-06-21 22:28:48 +10:00
Peter Barker 3657852e30 AP_HAL_ChibiOS: add and use AP_BARO_ENABLED 2023-06-21 22:28:48 +10:00
Peter Barker b3c5889d7d AP_HAL_ChibiOS: add and use AP_COMPASS_ENABLED 2023-06-21 22:28:48 +10:00
Peter Barker e11384454f AP_HAL_ChibiOS: add and use AP_AHRS_ENABLED 2023-06-21 22:28:48 +10:00
Peter Barker 209cba7f89 AP_HAL_ChibiOS: create and use AP_BATTERY_ENABLED
simply as a way to get HAL_PERIPH_ENABLE_BATTERY out of the main code
2023-06-21 22:28:48 +10:00
Andrew Tridgell f138824449 HAL_ChibiOS: make clock asserts show the incorrect value
this makes it easier to debug clock checking issues
2023-06-20 18:56:13 +10:00
Andrew Tridgell 409d3fdc9d hwdef: removed unused lines for luminousbee5 2023-06-20 18:56:13 +10:00
Andrew Tridgell ddb991d9b5 HAL_ChibiOS: fixed 24mhz crystal on H7 with 480MHz clock
need to adjust the PLLQ as well as the PLLN
2023-06-20 18:56:13 +10:00
Andrew Tridgell 1055c5f1c6 waf: fixed dependency of ChibiOS build on compiler flags
this adds a chibios_flags.h which contains the flags we pass to the
ChibiOS make, which allows us to have a make level dependency on the
flags

this fixes (among other things) the build of copter followed by
bootloader for SPRacingH7
2023-06-20 18:08:31 +10:00
Peter Barker 916379b1b9 hwdef: remove bootloader flashing on ReaperF745 and FlywooF745 2023-06-20 15:34:19 +10:00
Peter Barker 400dd851a6 hwdef: remove fuelflow lines from ReaperF745 hwdef
these are already removed because it's a 1M board
2023-06-20 15:34:19 +10:00
Peter Barker 3de811ed0a hwdef: sort save_some_flash.inc (NFC) 2023-06-20 15:34:19 +10:00
Peter Barker 45e336dfcf hwdef: save_some_flash.inc on revo-mini-i2c-bdshot 2023-06-20 15:34:19 +10:00
Peter Barker c18b65a68e hwdef: no bootloader update on MambaF405v2 2023-06-20 15:34:19 +10:00
Peter Barker 5800e9d785 AP_HAL_ChibiOS: heavy periphs get servos and relays 2023-06-20 09:36:39 +10:00
Peter Barker 2932dea4ff AP_HAL_ChibiOS: add option to disable relay and servorelay libraries 2023-06-20 09:36:39 +10:00
Henry Wurzburg 15ba495f78 AP_HAL_ChibiOS: add Holybro KakuteH7-Wing 2023-06-20 09:09:12 +10:00
bugobliterator 04b7c7e4ee AP_HAL_ChibiOS: remove Chip ID as Basic ID mechanism 2023-06-17 14:49:22 +10:00
bugobliterator 6b88ed007d AP_HAL_ChibiOS: explain DID_OPTIONS config in CubeOrange-ODID/defaults.parm 2023-06-17 14:49:22 +10:00
bugobliterator 65cbd87228 AP_HAL_ChibiOS: add support for get_persistent_param_by_name 2023-06-17 14:49:22 +10:00
bugobliterator 0850ea6b61 AP_HAL_ChibiOS: add support for storing OpenDroneID in bootloader sector 2023-06-17 14:49:22 +10:00
Peter Barker 42e0d85ac9 hwdef: SkyViper doesn't have two batteries; remove code based on that 2023-06-17 11:27:46 +10:00
Andrew Tridgell 5afabf7bfb HAL_CbibiOS: get crash dump info for main thread lockups 2023-06-17 11:24:56 +10:00
Peter Barker 9a24a3f61d AP_HAL_ChibiOS: allow CrashCatcher to be disabled via hwdef 2023-06-14 18:39:11 +10:00
Peter Barker 8e0a879122 AP_HAL_ChibiOS: use minimize.inc for HAL_MSP_ENABLED and dependencies 2023-06-14 17:44:13 +10:00
jfbblue0922 f1fadbf84f AP_HAL_CHibiOS: JFB100 hwdef fix for ext watchdog 2023-06-14 17:13:10 +10:00
jfbblue0922 2f05624545 AP_HAL_ChibiOS: support external watchdog gpio
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>

optional support to toggle GPIO pin at 10hz
2023-06-14 17:13:10 +10:00
Andrew Tridgell 514434193d hwdef: save flash on several boards with DFU
omit bootloader on boards with DFU and low on flash
2023-06-12 12:42:45 +10:00
Andrew Tridgell 3c0a9af505 hwdef: added no_bootloader_DFU.inc 2023-06-12 12:42:45 +10:00
Peter Barker 3aaeb0f29c AP_HAL_ChibiOS: allow AP_SCRIPTING_ENABLED to come from hwdef files 2023-06-09 16:10:52 +10:00
Peter Barker 0ec35718d7 AP_HAL_ChibiOS: use HAL_PROXIMITY_ENABLED in place of HAL_PERIPH_ENABLE_PRX
boolean truth rather than defines, and simplifies code
2023-06-08 11:53:01 +10:00
Andrew Tridgell 0cfd9c2ed5 HAL_ChibiOS: don't consider a MAVCAN send failure as a send failure
this prevents duplicate sends if MAVCAN buffer is full
2023-06-08 10:15:50 +10:00
Peter Barker 82e15536d2 AP_HAL_ChibiOS: create define specifically for the developer feature for killing IMUs 2023-06-07 18:23:01 +10:00
Martin Luessi b336526765 AP_HAL_ChibiOS: Move scheduler task table to RAM for H750 2023-06-06 19:19:10 +10:00
Martin Luessi 82280b6a8d AP_HAL_ChibiOS: Rename STM32_FORCE_CLOCK_INIT to HAL_FORCE_CLOCK_INIT 2023-06-06 19:19:10 +10:00
Martin Luessi 350dfc235e AP_HAL_ChibiOS: Add libgcc comment to H750 linker script 2023-06-06 19:19:10 +10:00
Martin Luessi f55261c852 AP_HAL_ChibiOS: Use DTCM for vector table for external flash targets 2023-06-06 19:19:10 +10:00
Martin Luessi ab03c49ea8 AP_HAL_ChibiOS: Move more time critical code to RAM for H750 2023-06-06 19:19:10 +10:00
Martin Luessi 00c8c24b1e AP_HAL_ChibiOS: increase FLASH_RAM and rename FDCAN to CAN for H750 2023-06-06 19:19:10 +10:00
Martin Luessi 0c93800ec1 AP_HAL_ChibiOS: Copy vector table to RAM if external flash is primary 2023-06-06 19:19:10 +10:00
Martin Luessi 84ccd046c6 AP_HAL_ChibiOS: Change linker script so vector table can be copied to RAM for external flash targets 2023-06-06 19:19:10 +10:00
Martin Luessi f5e6b055b6 AP_HAL_ChibiOS: Allow custom STM32_QSPISEL for H7 2023-06-06 19:19:10 +10:00
Martin Luessi 01f030da7c AP_HAL_ChibiOS: Option to force clock init 2023-06-06 19:19:10 +10:00
Andrew Tridgell 6f469c48e7 HAL_ChibiOS: support f_mkfs on all boards 2023-06-06 15:19:00 +10:00
Andy Piper 3de424e74f AP_HAL_ChibiOS: Pixhawk1-bdshot 2023-06-06 10:24:11 +10:00