Andy Piper
194f555c7b
AP_HAL_ChibiOS: provide mcu defaults in betaflight conversion
2023-09-06 17:13:07 +10:00
Andy Piper
2160a1afb4
AP_HAL_ChibiOS: correct hwdef generator battery scale
2023-09-06 17:13:07 +10:00
Andy Piper
ee8631e9fd
AP_HAL_ChibiOS: cope with different IMU drivers in hwdef conversion
2023-09-06 17:13:07 +10:00
Andrew Tridgell
fbd44dddd0
HAL_ChibiOS: enable ISRs during flash ops in bootloader
...
this makes a huge difference in AP_Periph bootloader speeed, where
disabling interrupts prevents CAN packets from being received
2023-09-06 11:21:51 +10:00
Peter Barker
c7080825d3
AP_HAL_ChibiOS: chibios_hwdef.py: canonicalise AP_PERIPH env define
...
before this change this environment variable is a string, which means anything checking it for truth will get back true even if it is empty ("") or the string zero ("0"). The existing is_periph_fw check only works because "1" != 0 - if it was "0" then it would still be considered a periph firmware
2023-09-06 09:28:37 +10:00
Iampete1
2fbc27584b
AP_HAL_ChibiOS: default to 0 battery capacity on periph
2023-08-30 12:25:46 +10:00
Andrew Tridgell
202e71482f
HAL_ChibiOS: support CKS32F407 MCU
...
based on STM32F407
2023-08-26 21:12:42 +10:00
Andrew Tridgell
999919424b
hwdef: allow for MCO pin to be configured
...
this allows for hwdef.dat lines like this:
PA8 MCO1 RCC
PC9 MCO2 RCC
you can control the scaling by defining the following:
- STM32_MCO1SEL
- STM32_MCO1PRE_VALUE
- STM32_MCO2SEL
- STM32_MCO2PRE_VALUE
2023-08-25 07:37:12 +10:00
Tom Pittenger
ed43f095ce
AP_HAL_ChibiOS: add AP_BATTERY_ESC_TELEM_OUTBOUND_ENABLED to defaults_periph
2023-08-22 16:14:36 -07:00
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