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
Andy Piper
d69b8c2693
AP_HAL_ChibiOS: fix usage of ADC2 and ADC3 in STM32H730
2023-04-28 08:31:15 +10:00
Andy Piper
e6c1897dd3
AP_HAL_ChibiOS: provide complete ADC2/ADC3 maps for STM32H750 and STM32H743
...
Fix dummy pin generation
2023-04-28 08:31:15 +10:00
Andy Piper
26c59349d5
AP_HAL_ChibiOS: use HAL_XIP_ENABLED to denote running in external flash
2023-04-28 08:31:15 +10:00
Andy Piper
5b43926d0a
AP_HAL_ChibiOS: for H730/H750 running in XIP mode do not reset clocks
...
create mcuconf file for STM32H730 (type2)
allow OTG2 to be used as OTG1 on MCUs that need it
remove redundant OTG enablement
2023-04-28 08:31:15 +10:00
Andy Piper
798fc05ba8
AP_HAL_ChibiOS: clean up linker map on H730 and H750
...
use regular ChibiOS RAM areas for RAM functions
exclude board.o from RAM functions and add some comments
use separate linker script for H750
use correct RAM area for process stack on H750/H743
update EXCLUDE items to put __early_init in flash on H730 and H750
optimize H730 ramfunc usage
2023-04-28 08:31:15 +10:00
Andy Piper
8b8f5eadd6
AP_HAL_ChibiOS: detect QSPI and OSPI separately for setting NO_RESET
2023-04-28 08:31:15 +10:00
Andy Piper
8ef92805e1
AP_HAL_ChibiOS: support for OCTOSPI
2023-04-28 08:31:15 +10:00
Andy Piper
61e70a5fb1
AP_HAL_ChibiOS: add support in hwdef for OCTOSPI
2023-04-28 08:31:15 +10:00
Andy Piper
f8dd6a1b2a
AP_HAL_ChibiOS: rename QSPIDevice to WSPIDevice
2023-04-28 08:31:15 +10:00
Andy Piper
cc086ab8d4
AP_HAL_ChibiOS: support for STM32H730xx MCUs
...
correct calculation of advanced timers
add support for linker script configuration in mcu config script
use linker script configuration for H750 and H730
add single OTG_HS support on H730 via OTG2
make sure complimentary channels get advanced timers
complemntary timers do not require advanced mode
allow custom clockspeeds of 550Mhz
correct debug pins on H730
support custom clockrate of 520Mhz on H730
correct H730 USB end point pins
restructure linker script for STM32H730
allow chibios_hwdef.py to set advanced timer on L431
don't define RAMFUNC on STM32H730
clock tree for STM32H730
create non-cacheable memory area for SDMMC DMA
don't look for RAM_MAP in bootloader with external flash
2023-04-28 08:31:15 +10:00
Peter Barker
1f3aecf41b
AP_HAL_ChibiOS: use defaults to turn off CRSF telem on IO firmware
2023-04-27 18:31:30 +10:00
Peter Barker
926c7d64b1
AP_HAL_ChibiOS: add and use AP_BOOTLOADER_FLASHING_ENABLED
2023-04-26 22:55:36 +10:00
bugobliterator
0343b789e6
AP_HAL_ChibiOS: add support for mixed internal and external flash
2023-04-26 18:04:00 +10:00
bugobliterator
626fd9e77f
AP_HAL_ChibiOS: add support for marking ADC pins with identifier
2023-04-26 18:04:00 +10:00
bugobliterator
726dcda24f
AP_HAL_ChibiOS: add support for using ADC2 and ADC3 on H7
2023-04-26 18:04:00 +10:00
Andrew Tridgell
64cd58c21a
ChibiOS: disable DMA on I2C on F7 and H7 by default
...
this was already done on many (most?) boards, and greatly reduces DMA
sharing which improves performance of UARTs. This changes the default
to no DMA on I2C
2023-04-25 14:19:09 +10:00
Andrew Tridgell
5024261e2e
HAL_ChibiOS: fixed hwdef DMA resolver dependency on python2/python3
...
we need to use sorted keys in dictionaries to ensure we end up with
the same DMA mapping when using py2 and py3
fixes #15534
2023-04-25 11:30:56 +10:00
Henry Wurzburg
efd0937568
AP_HAL_ChibiOS: rename/remove HAL_BUZZER_ON to DEFAULT_BUZZ_ON_LVL
2023-04-23 11:19:50 +10:00
Henry Wurzburg
be94015dba
AP_HAL_ChibiOS: remove unused HAL_BUZZER_OFF defines
2023-04-22 13:51:09 +10:00
Tom Pittenger
20d89c510b
AP_HAL_ChibiOS: AP_KDECAN_ENABLE 0 by default
2023-04-17 11:52:52 +10:00
Andrew Tridgell
3f33457404
HAL_ChibiOS: fixed L4 mcu type detection
2023-04-14 07:48:56 +10:00
tsubashmail@gmail.com
ae9e15ade5
HAL_ChibiOS: port for STM32L4+ processor
...
Added support for stm32l4+ processor
- Added scripts for hwdef generation
- Tested in custom hardware prototype (stm32l4r5vit6)
- Tested all peripherals and auto pilot modes.
2023-04-14 07:48:56 +10:00
Andy Piper
a115681373
AP_HAL_ChibiOS: add support for building USB MSD
2023-03-29 20:49:40 +11:00
Andy Piper
a56a2ec2c1
AP_HAL_ChibiOS: correct SDC power saving
2023-03-29 20:49:40 +11:00