Commit Graph

2766 Commits

Author SHA1 Message Date
bugobliterator
5c657cad9a AP_HAL_ChibiOS: disable AP_Periph_Heavy for CubePilot-CANMod 2023-08-06 09:20:08 +10:00
bugobliterator
7bdee92d77 AP_HAL_ChibiOS: disable CAN2 on CubePilot-CANMod 2023-08-06 09:20:08 +10:00
bugobliterator
4e39318920 AP_HAL_ChibiOS: disable watchdog on CubePilot-CANMod 2023-08-06 09:20:08 +10:00
bugobliterator
50ae1ca7e8 AP_HAL_ChibiOS: update CubePilot-CANMod to support Networking 2023-08-06 09:20:08 +10:00
bugobliterator
e6b51df7cd AP_HAL_ChibiOS: dynamically allocate memory for MAC Peripheral 2023-08-06 09:20:08 +10:00
Tom Pittenger
ec65b5175b AP_HAL_ChibiOS: update Networking hwdef's param defaults 2023-08-06 09:20:08 +10:00
Tom Pittenger
291226eb5d AP_HAL_ChibiOS: hwdef add support for Networking 2023-08-06 09:20:08 +10:00
Tom Pittenger
f66327d97d AP_HAL_ChibiOS: Ethernet related memory allocations 2023-08-06 09:20:08 +10:00
Tom Pittenger
3b79ff0ad3 AP_HAL_ChibiOS: add hooks to compile Networking 2023-08-06 09:20:08 +10:00
Tom Pittenger
d841d250d8 AP_HAL_ChibiOS: allow HW without HW_RNG to SW-based create psuedo-random 2023-08-06 09:20:08 +10:00
Peter Barker
31281b5d11 AP_HAL_ChibiOS: eliminate use of MINIMIZE_FEATURES for Plane features 2023-08-02 17:48:25 +10:00
Andrew Tridgell
0ed33653fc HAL_ChibiOS: added a method for just changing port owner 2023-08-02 17:44:39 +10:00
Andrew Tridgell
3cde2d964b hwdef: enable custom LED reset code 2023-08-01 11:38:03 +10:00
Andrew Tridgell
865be0df64 hwdef: support for Here4 GPS 2023-08-01 11:38:03 +10:00
Peter Barker
ac9fd6fcb6 AP_HAL_ChibiOS: avoid use of MINIMIZE_FEATURES in AP_LandingGear_config.h 2023-08-01 10:44:59 +10:00
Martin Luessi
459ea697d9 AP_HAL_ChibiOS: RADIX2HD target change Serial4 default protocol to ESC telemetry 2023-08-01 10:40:53 +10:00
Peter Barker
3f791ed734 hwdef: exclude landing library from SkyViper build 2023-08-01 10:07:28 +10:00
Peter Barker
ab15485968 hwdef: only one GPS receiver on SkyViper
notably that means no blending
2023-08-01 10:03:19 +10:00
Andrew Tridgell
5908508811 hwdef: default most boards to MAVLink2 for 2nd USB endpoint
only CubeOrange and CubeBlack left as SLCAN
2023-07-31 19:03:13 +10:00
Andrew Tridgell
9d5560fc42 hwdef: default 2nd USB endpoint to MAVLink2 2023-07-31 19:03:13 +10:00
robin luo
0137b1f31e AP_HAL_ChibiOS/hwdef: add controller ACNS-F405AIO
hwdef: add a new integrated flight controller ACNS-F405AIO
2023-07-26 18:35:29 +10:00
robin luo
9d0f7f2586 AP_HAL_ChibiOS/hwdef: add controller CM4Pilot
hwdef: add a new flight controller CM4Pilot
2023-07-26 18:33:43 +10:00
Andrew Tridgell
a602473e89 hwdef: added SIYI NY flight controller
based on pinout of Durandal
2023-07-24 17:25:29 +10:00
Andy Piper
f93295017a Revert "AP_HAL_ChibiOS: correct voltage sensor and current scale on speedybeef4v3"
This reverts commit 9f9be8da0f.
2023-07-24 13:16:52 +10:00
Andy Piper
9f9be8da0f AP_HAL_ChibiOS: correct voltage sensor and current scale on speedybeef4v3 2023-07-23 12:47:14 +10:00
Peter Barker
dd325a7aaf AP_HAL_ChibiOS: disable terrain unless SD card available 2023-07-19 17:25:18 +09:00
Peter Barker
338a4d6b38 hwdef: remove HAL_BOARD_LOG_DIRECTORY and HAL_BOARD_TERRAIN_DIRECTORY defaults
these are now defaulted in chibios_hwdef.py
2023-07-19 17:25:18 +09:00
Peter Barker
092afa54a9 AP_HAL_ChibiOS: defaults for board log directory and terrain directory in chibios_hwdef.py 2023-07-19 17:25:18 +09:00
Andy Piper
016448ca40 AP_HAL_ChibiOS: correct comment in HEEWING-F405 v1 2023-07-19 16:29:47 +09:00
Andy Piper
c2820b2d87 AP_HAL_ChibiOS: HEEWING-F405v2 which includes dataflash logging 2023-07-19 16:29:47 +09:00
Peter Barker
0302672722 hwdef: remove bootloader flashing from MambaF405US-I2C and omnibusf4pro-bdshot
also use an include where appropriate on a pair of other boards
2023-07-18 11:40:32 +10:00
Andrew Tridgell
56be632916 HAL_ChibiOS: use set_size_best()
maximise chance of getting a reasonable uart buffer size
2023-07-18 11:38:27 +10:00
Henry Wurzburg
f70c1e96c7 hwdef:add bdshot to MatekF765-SE 2023-07-18 10:26:44 +10:00
Andrew Tridgell
aa0b119806 HAL_ChibiOS: disable CANFD bits if CANFD not enabled
cannot support CANFD receive on G4
2023-07-12 18:54:45 +10:00
Andrew Tridgell
deab955a0f hwdef: update HolybroG4_GPS
disable CAN2 (unused), and prevent sharing of DMA for GPS UART
2023-07-12 18:54:45 +10:00
Peter Barker
ab5908cb59 hwdef: disable bootloader flashing for F35Lightning
both boards on our Wiki seem to show boot0 pins
2023-07-12 17:54:02 +10:00
Andrew Tridgell
a3eba8bbd3 HAL_ChibiOS: enable UART monitor
enabled if GPS moving baseline available or the board flash size is
256k or over
2023-07-12 17:06:02 +10:00
Andrew Tridgell
8fd5341b5b HAL_ChibiOS: moved uart locking up to AP_HAL
and removed set_blocking_writes
2023-07-12 17:06:02 +10:00
HelloLeFei
8ec404c6fc AP_HAL_ChibiOS: add HEEWING-F405 flight controller
add bi-directional dshot
add back in features.
juggle DMA allocations to allow CRSF to work correctly
disable dshot on PWM 10 as it is not used
do not enable quadplane by default
do not disable arming checks
run ICM42688 at 1Mhz for low speed to avoid gyro noise
add HEEWING README and picture
2023-07-12 10:40:37 +10:00
Andrew Tridgell
7a1b7e85be HAL_ChibiOS: default AP_BOOTLOADER_ALWAYS_ERASE to 1 on AP_Periph 2023-07-10 06:52:44 +10:00
Andrew Tridgell
0accc9f897 HAL_ChibiOS: clear EOP bit at end of F4 programming 2023-07-10 06:52:44 +10:00
Andy Piper
d98666832c AP_HAL_ChibiOS: correct incorrect defaults for serial ports on FoxeerH743v1 2023-07-07 16:55:26 +10:00
yunjiuav
92a7d09e2e HAL_ChibiOS: added YJUAV_A6 support 2023-07-06 20:36:28 +10:00
Peter Barker
4ef85b14d0 hwdef: add hwdef for SDMODELH7V1 2023-07-06 17:35:44 +10:00
Mikhail Degtiarenko
cc0b2ab3bb AP_HAL_ChibiOS: add SPL06 to MambaH743v4
The Diatone Mamba MK4 H743 v2 Flight Control have moved from the DPS280 barometer to using SPL06.

https://www.diatone.us/products/mamba-mk4-h743-v2-flight-control-30mm-m3l
2023-07-05 16:26:57 +10:00
Andrew Tridgell
0aab2f7974 HAL_ChibiOS: implement newlib alloc functions as malloc wrappers
this fixes issue #24106
2023-07-05 07:13:39 +10:00
Peter Barker
d0b967097e AP_HAL_ChibiOS: process @include lines within hwdef files 2023-07-04 17:36:32 +10:00
Peter Barker
53e6f289e5 AP_HAL_ChibiOS: factor out a write_processed_defaults_file method 2023-07-04 17:36:32 +10:00
Peter Barker
26359204bd AP_HAL_ChibiOS: tidy defaults.parm handling 2023-07-04 17:36:32 +10:00
Andy Piper
810dfaf4f6 AP_HAL_ChibiOS: pull RTS lines low on Pixhawk6C to avoid glitches on startup 2023-07-04 11:13:26 +10:00
Peter Barker
257c684edf hwdef: update FlyingMoonF407 hwdef
changes from vendor
2023-07-04 10:25:19 +10:00
Peter Barker
edb7a76b87 hwdef: add FlyingMoonH743 2023-07-04 10:04:55 +10:00
Martin Luessi
232fdd51da AP_HAL_ChibiOS: Added RADIX2HD 2023-07-04 09:36:10 +10:00
jfbblue0922
f990bb7374 AP_HAL_ChibiOS: jfb100 gets shorter EXT_WDOG_INTERVAL_MS 2023-06-29 19:30:14 +09:00
tiralonghipol
c4b7bc9d8c AP_HAL_ChibiOS: add new board BlitzF745AIO 2023-06-28 17:23:19 +10:00
Andy Piper
539277ba2f AP_HAL_ChibiOS: Pixhawk6X bdshot version 2023-06-27 11:22:12 +10:00
Peter Barker
6e39565ce8 AP_HAL_ChibiOS: add and use AP_SCHEDULER_EXTENDED_TASKINFO_ENABLED 2023-06-27 10:43:39 +10:00
Andrew Tridgell
4219d498ec hwdef: set NRST_MODE on HolybroG4_GPS to fix reboot issue 2023-06-27 10:32:43 +10:00
Andrew Tridgell
54e2e33ee1 HAL_ChibiOS: allow hwdef to specify a NRST_MODE override
this allows the boot behaviour of a board to be changes to avoid a
reset issue
2023-06-27 10:32:43 +10:00
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