Commit Graph

502 Commits

Author SHA1 Message Date
Peter Barker
103caac92c AP_HAL_ChibiOS: add support for DroneCAN RCInput packets 2023-08-19 20:27:24 +10:00
Peter Barker
bb6f0ae527 AP_HAL_ChibiOS: improve gating of use of AP_InternalError library
- gate calls into library directly on the define
 - INTERNAL_ERROR becomes empty if library not compiled in
2023-08-17 09:16:46 +10:00
Peter Barker
19bd97a893 chibios_hwdef.py: permit board ID to be specified as a string 2023-08-17 09:13:54 +10:00
Peter Barker
a11df25490 chibios_hwdef.py: enforce presence of bootloader if embedding desired 2023-08-17 08:37:31 +10:00
Peter Barker
7273c8416a AP_HAL_ChibiOS: prevent Periph bricking problem when paniccing early
if Periph panics before we mark the scheduler as initialised then we don't watchdog, which we really need to do on periph nodes so they can be re-flashed conveniently.
2023-08-16 17:21:30 +10:00
Andy Piper
c057cc5485 AP_HAL_ChibiOS: add get_output_mode() and use it to print correct banner for iomcu
add support for undef of STM32 lines and DMA_NOMAP
add support for F103 running at 24Mhz
add f103 variants of iofirmware
reduce memory usage in iomcu for new model
correct pwm output reporting
split iofirmware into config + mcu to allow f103 definition
don't enable non-existant timers on F103
2023-08-15 06:53:48 +10:00
Tom Pittenger
2b30fbcfb2 AP_HAL_ChibiOS: disable RPM by default on Periph 2023-08-11 13:31:45 -07:00
Peter Barker
e638925ee0 AP_HAL_ChibiOS: chibios_hwdef.py: fix minor bugs
also mark as flake8-clean
2023-08-11 10:41:02 +10:00
Peter Barker
536f3ac922 chibios_hwdef.py: minor flake8 fixes
whitespace, long lines, ambiguous variables etc
2023-08-11 10:41:02 +10:00
Peter Barker
ceab0180ec AP_HAL_ChibiOS: remove use of HAL_BUILD_AP_PERIPH
turn torqeedo off in chibios_hwdef.py instead for Periph
2023-08-09 17:39:49 +10:00
Peter Barker
68e3b1e79b AP_HAL_ChibiOS: move rangefinder rotation default down into AP_Periph 2023-08-09 17:39:49 +10:00
Peter Barker
53d5d1b9a9 AP_HAL_ChibiOS: break out include files for firmware defaults 2023-08-08 11:45:50 +10:00
Tom Pittenger
772465fef3 AP_HAL_ChibiOS: fix whitespace 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
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
Andrew Tridgell
9d5560fc42 hwdef: default 2nd USB endpoint to MAVLink2 2023-07-31 19:03:13 +10:00
Peter Barker
dd325a7aaf AP_HAL_ChibiOS: disable terrain unless SD card available 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
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
7a1b7e85be HAL_ChibiOS: default AP_BOOTLOADER_ALWAYS_ERASE to 1 on AP_Periph 2023-07-10 06:52:44 +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
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
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
Peter Barker
2932dea4ff AP_HAL_ChibiOS: add option to disable relay and servorelay libraries 2023-06-20 09:36:39 +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
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
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
Andrew Tridgell
4946ce5431 HAL_ChibiOS: revert recent USB changes
these are causing some boards to crash on startup. Tested with a
QiotekZealotH743 which doesn't get out of setup_usb_strings()

once we have debugged this we can re-add the functionality
2023-06-03 16:50:30 +10:00
bugobliterator
f7d3969116 AP_HAL_ChibiOS: enable write protection on USB msd
also fixes support for MSD on FS
2023-05-31 18:40:17 +10:00
bugobliterator
6d6c791fdf AP_HAL_ChibiOS: add support for mass storage device 2023-05-31 18:40:17 +10:00
bugobliterator
cc302d8b8c AP_HAL_ChibiOS: add support for OTG HS 2023-05-31 18:40:17 +10:00
Andrew Tridgell
7234ec2e52 HAL_ChibiOS: fixed USB pass-thru for 2nd USB endpoint
we need to align the endpoint ID in the structure
2023-05-29 08:55:38 +10:00
Peter Barker
4bcd4decb1 AP_HAL_ChibiOS: add and use AP_RCPROTOCOL_ENABLE_SET_RC_PROTOCOLS 2023-05-26 14:26:27 +10:00
bugobliterator
b5617a9ff8 Revert "AP_HAL_ChibiOS: disable watchdog in hwdef.h not in-line in code"
This reverts commit ccfad8ceea.
2023-05-23 09:00:11 +10:00
Peter Barker
0c7a16b03d AP_HAL_ChibiOS: use chibios_hwdef to define NOTIFY_LED_OVERRIDE_DEFAULT 2023-05-18 07:53:22 +10:00
Peter Barker
586851e40f hwdef: create and use convenient is_periph_firmware method 2023-05-17 18:39:51 +10:00
Peter Barker
30131a2f36 AP_HAL_ChibiOS: replace HAVE_FILESYSTEM_SUPPORT with backend defines 2023-05-17 09:40:39 +10:00
Peter Barker
6aeeb3d51d AP_HAL_ChibiOS: consolidate AP_Periph serialmanager defaults 2023-05-16 10:16:10 +10:00
Peter Barker
2d7123fcff AP_HAL_ChibiOS: add and use AP_RCPROTOCOL_ENABLED 2023-05-16 09:16:37 +10:00
Henry Wurzburg
d0ac8f3016 AP_HAL_ChibiOS: normalize SerialManagers ports defaults to allow inclusion in hwdefs 2023-05-11 18:45:53 +10:00
Peter Barker
db6deee9e1 hwdef: chibios_hwdef.py becomes a library 2023-05-10 17:14:43 +10:00