Commit Graph
3946 Commits
Author SHA1 Message Date
Andrew Tridgell 24c018e100 hwdef: removed special case for CubePilot boards for X20P
now enabled for all 2M boards
2026-05-23 09:08:13 +10:00
Andy Piper 38a0497dfd AP_HAL_ChibiOS: correct I2C IRQs for STM32L4+
colcon build/test / build-test (push) Has been cancelled
Cygwin Build / build (push) Has been cancelled
ESP32 Build / build (esp32buzz, 10) (push) Has been cancelled
ESP32 Build / build (esp32s3empty, 10) (push) Has been cancelled
Macos Build / build (CubeOrange) (push) Has been cancelled
Macos Build / build (sitl) (push) Has been cancelled
pre-commit / ci (push) Has been cancelled
QURT Build / build (push) Has been cancelled
test ccache / build (10, chibios) (push) Has been cancelled
test chibios / build (CubeOrange-EKF2, 10, chibios) (push) Has been cancelled
test chibios / build (CubeOrange-ODID, 10, chibios) (push) Has been cancelled
test chibios / build (CubeOrange-PPP, 10, chibios) (push) Has been cancelled
test chibios / build (CubeOrange-bootloader, 10, chibios) (push) Has been cancelled
test chibios / build (CubeRedPrimary-bootloader, 10, chibios) (push) Has been cancelled
test chibios / build (MatekF405-Wing, 10, chibios) (push) Has been cancelled
test chibios / build (Pixhawk6X-PPPGW, 10, chibios) (push) Has been cancelled
test chibios / build (SOHW, 10, chibios) (push) Has been cancelled
test chibios / build (build-options-defaults-test, 10, chibios) (push) Has been cancelled
test chibios / build (configure-all, 10, chibios) (push) Has been cancelled
test chibios / build (fmuv2-plane, 10, chibios) (push) Has been cancelled
test chibios / build (fmuv3, 10, chibios) (push) Has been cancelled
test chibios / build (fmuv3-bootloader, 10, chibios) (push) Has been cancelled
test chibios / build (iofirmware, 10, chibios) (push) Has been cancelled
test chibios / build (new-check, 10, chibios) (push) Has been cancelled
test chibios / build (periph-build, 10, chibios) (push) Has been cancelled
test chibios / build (revo-bootloader, 10, chibios) (push) Has been cancelled
test chibios / build (revo-mini, 10, chibios) (push) Has been cancelled
test chibios / build (signing, 10, chibios) (push) Has been cancelled
test chibios / build (stm32f7, 10, chibios) (push) Has been cancelled
test chibios / build (stm32h7, 10, chibios) (push) Has been cancelled
test chibios / build (stm32h7-debug, 10, chibios) (push) Has been cancelled
test dds / build (sitl) (push) Has been cancelled
test dds / build (stm32h7) (push) Has been cancelled
test Linux SBC / build (bbbmini, armhf) (push) Has been cancelled
test Linux SBC / build (bebop, armhf) (push) Has been cancelled
test Linux SBC / build (bhat, armhf) (push) Has been cancelled
test Linux SBC / build (canzero, armhf) (push) Has been cancelled
test Linux SBC / build (erlebrain2, armhf) (push) Has been cancelled
test Linux SBC / build (navigator, armhf-musl) (push) Has been cancelled
test Linux SBC / build (navigator64, aarch64) (push) Has been cancelled
test Linux SBC / build (navio, armhf) (push) Has been cancelled
test Linux SBC / build (navio2, armhf) (push) Has been cancelled
test Linux SBC / build (pxf, armhf) (push) Has been cancelled
test Linux SBC / build (pxfmini, armhf) (push) Has been cancelled
test Linux SBC / build (t3-gem-o1, aarch64) (push) Has been cancelled
test replay / build (replay, base) (push) Has been cancelled
test replay / build (replay, clang) (push) Has been cancelled
test scripts / build (astyle-cleanliness) (push) Has been cancelled
test scripts / build (check_autotest_options) (push) Has been cancelled
test scripts / build (logger_metadata) (push) Has been cancelled
test scripts / build (param-file-validation) (push) Has been cancelled
test scripts / build (param_parse) (push) Has been cancelled
test scripts / build (python-cleanliness) (push) Has been cancelled
test scripts / build (shellcheck) (push) Has been cancelled
test scripts / build (validate_board_list) (push) Has been cancelled
test blimp / build (base) (push) Has been cancelled
test blimp / build (clang) (push) Has been cancelled
test copter / build (base) (push) Has been cancelled
test copter / build (clang) (push) Has been cancelled
test copter / build-gcc-heli (push) Has been cancelled
test ap_periph / build-gcc-ap_periph (push) Has been cancelled
test plane / build (base) (push) Has been cancelled
test plane / build (clang) (push) Has been cancelled
test rover / build (base) (push) Has been cancelled
test rover / build (clang) (push) Has been cancelled
test sub / build (base) (push) Has been cancelled
test sub / build (clang) (push) Has been cancelled
test tracker / build (base) (push) Has been cancelled
test tracker / build (clang) (push) Has been cancelled
test unit tests and sitl building / build (examples, base) (push) Has been cancelled
test unit tests and sitl building / build (examples, clang) (push) Has been cancelled
test unit tests and sitl building / build (sitl, base) (push) Has been cancelled
test unit tests and sitl building / build (sitl, clang) (push) Has been cancelled
test unit tests and sitl building / build (unit-tests, base) (push) Has been cancelled
test unit tests and sitl building / build (unit-tests, clang) (push) Has been cancelled
test blimp / autotest (sitltest-blimp) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests1a) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests1b) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests1c) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests1d) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests1e) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests2a) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests2b) (push) Has been cancelled
test copter / autotest-heli (sitltest-heli) (push) Has been cancelled
test ap_periph / autotest-can (sitltest-can) (push) Has been cancelled
test plane / autotest (sitltest-plane-tests1a) (push) Has been cancelled
test plane / autotest (sitltest-plane-tests1b) (push) Has been cancelled
test plane / autotest (sitltest-plane-tests1c) (push) Has been cancelled
test plane / autotest (sitltest-quadplane) (push) Has been cancelled
test rover / autotest (sitltest-balancebot) (push) Has been cancelled
test rover / autotest (sitltest-rover) (push) Has been cancelled
test rover / autotest (sitltest-sailboat) (push) Has been cancelled
test sub / autotest (sitltest-sub) (push) Has been cancelled
test tracker / autotest (sitltest-tracker) (push) Has been cancelled
test Linux SBC / build (linux, base) (push) Has been cancelled
Rename STM32_I2C_I2Cn_IRQ_PRIORITY to STM32_IRQ_I2Cn_PRIORITY to
match the naming used by the kernel v9 I2Cv4 driver, mirroring
the same rename already applied to stm32g4_mcuconf.h.
2026-05-22 16:46:21 +10:00
Andy Piper abffee1520 AP_HAL_ChibiOS: support I2Cv4 single DMA channel
The ChibiOS I2Cv4 LLD (used on STM32G0/G4/C0/U0/U3/H5/L4+) uses a
single DMA channel per I2C peripheral, shared between TX and RX,
configured via STM32_I2C_I2Cx_DMA_CHANNEL. The previous code
emitted the separate STM32_I2C_I2Cx_RX/TX_DMA_STREAM defines used
by I2Cv2/I2Cv3, which no longer satisfy the I2Cv4 driver.

Detect I2Cv4 MCUs from CHIBIOS_PLATFORM_MK, allocate a single DMA
channel per I2C peripheral in dma_resolver.py (no _RX/_TX split),
and generate HAL_I2Cn_CONFIG entries that feed the single channel
into the shared DMA slot with SHARED_DMA_NONE as the partner.

Also replace the unconditional STM32_I2C_USE_I2Cn TRUE lines in
stm32g4_mcuconf.h with #ifndef-guarded defaults to FALSE, so
boards only enable the I2C peripherals their hwdef actually uses.
Without this, the I2Cv4 driver demanded DMA channels for every
I2C peripheral on every G4 board regardless of pin usage.
2026-05-22 16:46:21 +10:00
Andy Piper 64913139b8 AP_HAL_ChibiOS: use correct PLLSAI values for F469 2026-05-22 16:46:21 +10:00
Andy Piper bb0b1f69bf hwdef: correct I2C IRQs for STM32G4 2026-05-22 16:46:21 +10:00
Andy Piper 2c064ba915 AP_HAL_ChibiOS: fixes for ChibiOS kernel v9 2026-05-22 16:46:21 +10:00
lixiaowei e4a374b619 AP_HAL_ChibiOS: add SkyDroid-S3 2026-05-21 10:02:13 +10:00
Brown 428a0853a6 hwdef: Pixhawk6C: add RM3100 compass
Declare the internal RM3100 compass with its board-specific
rotation and disable the generic RM3100 internal probe.
2026-05-20 18:45:48 +10:00
Andrew TridgellandClaude Opus 4.7 dc540c2a51 AP_HAL: hwdef: move ROMFS parsing into base class
The ROMFS / ROMFS_WILDCARD / ROMFS_DIRECTORY hwdef keywords were
previously only understood by the ChibiOS hwdef parser, which has
duplicated implementations of romfs_add / romfs_wildcard / romfs_add_dir
and a write_ROMFS step that publishes env_vars['ROMFS_FILES']. Lift
all of that into the base HWDef class so any HAL with a hwdef parser
(SITL, future HALs) gets ROMFS handling for free.

  - Base hwdef.py owns self.romfs, the romfs_*() methods, the
    ROMFS / ROMFS_WILDCARD / ROMFS_DIRECTORY process_line cases,
    the undef ROMFS handler, and write_ROMFS(); base run() calls
    write_ROMFS() at the end so subclasses that don't override run()
    publish ROMFS automatically.
  - ChibiOS keeps a thin romfs_add_dir() override solely for its
    bootloader-build no-op guard; everything else is inherited.

No behaviour change for ChibiOS boards.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-20 17:08:34 +10:00
Thomas Watson f4ae5d7901 AP_HAL_ChibiOS: drop CAN log message calls
The infrastructure for these has been continually buggy and rarely used.

Delete calls in preparation for ripping it out entirely.
2026-05-18 20:58:47 -05:00
dakefpv a4d4ec063d hwdef: Fix the RELAY of DAKEFPV
The REALY of F405, H743, H743Pro, and H743_SLIM defaults to high-level output.
2026-05-14 08:23:36 +01:00
Peter Barker 472a668643 hwdef: regularise markdown headings
consistent headings across markdown files will allow us to make wide-spread mechanical changes to these as desired
2026-05-07 13:30:03 +10:00
Peter Barker 13b5743446 AP_HAL_ChibiOS: add #error to stop regressions in hwdef files
old bad configurations being removed, stop them coming back
2026-05-07 09:09:48 +10:00
Peter Barker b27068bf5c hwdef: disable RCIN thread on boards that don't include AP_RCPROTOCOL_ENABLED
we don't do anything interesting in the thread unless you have the library enabled, so we can keep these resources!
2026-05-07 09:09:48 +10:00
Peter Barker 52a9da1586 hwdef: stop enabling HAL_RCIN_THREAD_ENABLED by default for MatekL431
this was for backwards compatability
2026-05-07 09:09:48 +10:00
Peter Barker 16267741ad AP_HAL_ChibiOS: prevent normal boards from using AP_PERIPH_* defines 2026-05-06 17:48:58 +10:00
Andrew Tridgell 4719b95197 HAL_ChibiOS: fixed chopped pulses on safety enable
when safety is enabled (especially on IOMCU) we would get a last
chopped pulse, leading to servos going to extremes, or for reversible
ESCs we could end up with a propeller running at high speed

there were two bugs:

 - we were using the current outputs max pulse width for the delay in
   trigger_groups() when it should be the previous max width (as that
   is the active one)

 - we should not be doing a new trigger for oneshot for zero pulses,
   it will naturally happen when the pulse ends
2026-05-06 14:13:13 +10:00
Peter Barker fddfee0fe1 hwdef: Aeromind6X: replace html markup with markdown 2026-05-03 15:32:03 +10:00
Peter Barker 8530bf14d1 hwdef: remove redundant 'env OPTIMIZE -Os' from hwdef files 2026-05-01 20:17:51 +10:00
Henry Wurzburg 02c7fcbff1 AP_HAL_ChibiOS: improve md file readability 2026-04-24 08:36:06 +10:00
PilotGaea2001 0834aacee7 hwdef: update PilotGaeaSH7V1-bdshot definitions and add default params 2026-04-21 09:59:02 +10:00
PilotGaea2001 40e9721574 HAL_ChibiOS: add support for PilotGaeaSH7V1-bdshot 2026-04-21 09:59:02 +10:00
Peter Barker 04655ca8ea AP_HAL_ChibiOS: correct spelling errors in markdown files 2026-04-20 19:25:51 +10:00
Peter Barker a21b222f8d AP_HAL_ChibiOS: correct some rst-ish-looking links to be markdown links
these only superfically look like rst - not enough to trigger out sanity checks
2026-04-20 19:25:51 +10:00
Peter Barker f99598d1c3 AP_HAL_ChibiOS: correct URLs in markdown files 2026-04-20 19:25:51 +10:00
Peter Barker 8c06fe8ca2 AP_HAL_ChibiOS: correct spelling errors in markdown files 2026-04-19 10:26:15 +10:00
Peter Barker e5416f1f97 hwdef: correct invalid link to parameter in BOTWINGF405 README.md
this was simply invalid - make it a link to the Wiki parameter page
2026-04-18 21:29:44 +10:00
Peter BarkerandClaude Sonnet 4.6 b6720ccad1 hwdef: convert :ref: parameter cross-references to markdown links
Replace RST :ref: cross-references to ArduPilot parameters with proper
markdown links to https://ardupilot.org/copter/docs/parameters.html.
Anchors verified by downloading the parameters page.

Also fix a SERIAL11_PROTOCOL typo in JHEMCUF405WING (should be
SERIAL1_PROTOCOL) and a bare :ref:common-FPort-receivers ref in
CORVON405V2_1.

Also fix two incorrect parameter names carried over from the original RST:
- BATT1_MONITOR → BATT_MONITOR (BATT1_MONITOR does not exist)
- RSSI_PIN → RSSI_ANA_PIN (RSSI_PIN does not exist; renamed parameter)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-18 21:29:44 +10:00
Peter BarkerandClaude Sonnet 4.6 784412228b hwdef: fix typo and broken URL in doc links
Fix firmare.ardupilot.org → firmware.ardupilot.org (typo) in HWH7 and
MicoAir743-Lite. Fix common-limited_firmware → common-limited-firmware
(underscore vs hyphen) in ATOMRCF405NAVI-Deluxe.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 08:08:51 +10:00
Peter BarkerandClaude Sonnet 4.6 6c6dc6300b hwdef: convert RST cross-references to markdown links
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 08:08:51 +10:00
Peter Barker 655175995c hwdef: correct BATT2_MONIOTOR -> BATT2_MONITOR
also remove "Set" as this is in a list of things to set
2026-04-16 14:43:41 +10:00
Peter BarkerandClaude Sonnet 4.6 613905c517 hwdef: convert RST external hyperlinks to markdown syntax
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 10:27:47 +10:00
Peter BarkerandClaude Sonnet 4.6 a96a321a4e hwdef: skyviper-v2450: remove IOMCU firmware and USART6 pins
SkyViper has no IO MCU. Remove the embedded IOMCU firmware from ROMFS
(saves ~29 KB of flash), the USART6 pin definitions that were only
present as the IOMCU UART, and the USART6 DMA_NOSHARE/DMA_PRIORITY
entries that were carried over from fmuv3.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 18:18:14 +10:00
Peter BarkerandClaude Sonnet 4.6 021f3ad283 hwdef: PrincipIoTH7Pi: convert RST underline headings to ATX style
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 15:42:48 +10:00
Peter Barker 994ffc5030 hwdef: JPilot-C: remove stale/unused define
this was renamed - it's also the default, so we don't need to set it here
2026-04-14 14:17:31 +10:00
Peter Barker 784c53e0c9 hwdef: remove bad/unused defines
these never existed.
2026-04-14 14:17:31 +10:00
Norihiko Itou f849f36b40 hwdef: add ADC2 and ADC3 map to scripts of STM32H755xx 2026-04-14 09:40:21 +10:00
Peter Barker 40529b9dfd hwdef: add BMP581 as Barometer option on Pixhawk6X 2026-04-13 20:40:30 +10:00
Peter Barker 502296d48b hwdef: avoid use of 'note' and 'raw' rst directives
we do markdown in these files, not rst!
2026-04-13 10:07:07 +10:00
Peter Barker cf649450ec hwdef: YARIV6X: remove HAL_PERIPH_ENABLE_NETWORKING
not a periph board, this has no effect
2026-04-13 10:04:03 +10:00
seguall_4 de03a7f309 hwdef: allow ZeroOneX6 and ZeroOneX6_Air to use bmm350 internal compasses 2026-04-12 14:52:45 +10:00
Peter Barker f36149a5b2 hwdef: SkyRukh_Surge_H7: remove stale HAL_GPIO_LED_ON define
this doesn't have any effect.

On the assumption that the hardware is tested and working presumably these devices actually use the default 0-is-on semantics
2026-04-12 14:51:53 +10:00
cuav-chen2 4e6c3fd4e0 hwdef: update CUAV-V6X-v2 hwdef and doc 2026-04-10 13:19:53 +10:00
Ethan Huang 9d6d875e36 AP_HAL_ChibiOS: add SparkNavi Blue 2026-04-08 17:40:19 +01:00
Lukas Severinghaus 2c9c06e748 hwdef: PrincipIoTH7Pi 2026-04-08 17:39:51 +01:00
Huibean d35325afc7 AP_HAL_ChibiOS: fix DMA buffer allocation for SDMMC1 with USE_ALT_RAM_MAP 2026-04-08 17:33:09 +10:00
Peter BarkerandClaude Sonnet 4.6 fa5a327064 hwdef: skyviper-v2450: remove AP_BATTERY_SMBUS_SOLO_ENABLED undef/define
AP_BATTERY_BACKEND_DEFAULT_ENABLED is 0 and only AP_BATTERY_ANALOG_ENABLED
is set, so AP_BATTERY_SMBUS_ENABLED is never true and this override has
no effect.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 17:10:44 +10:00
Peter BarkerandClaude Sonnet 4.6 7bc70bcea7 hwdef: skyviper-v2450: remove AP_COMPASS_IST8310_EXTERNAL_BUS_PROBING_ENABLED
AP_COMPASS_BACKEND_DEFAULT_ENABLED is 0 and only BMM150 is enabled,
so IST8310 is never compiled in and this define has no effect.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 17:10:44 +10:00
Peter BarkerandClaude Sonnet 4.6 e480dde7a9 hwdef: skyviper-v2450: remove HAL_SOLO_GIMBAL_ENABLED define
HAL_MOUNT_ENABLED is 0 on SkyViper so this define is always 0 regardless.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 17:10:44 +10:00
Peter BarkerandClaude Sonnet 4.6 3726ad81be hwdef: skyviper-v2450: remove redundant inherited definitions
Remove pins, peripherals, defines, and undefs that were inherited from
fmuv3 but immediately overridden or undefed by skyviper-v2450:
- UART8, USART3, CAN1, CAN2, IOMCU_UART, SDIO, USART6 pins/settings
- HAL_CHIBIOS_ARCH_FMUV3, HAL_WITH_RAMTRON, HAL_OS_FATFS_IO defines
- fmuv3 SERIAL_ORDER (skyviper defines its own)
- AP_NOTIFY_OREOLED_ENABLED undef+redefine collapsed to single define
- DMA_NOSHARE/PRIORITY simplified: USART6 entry removed, ADC1 kept

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

hwdef: skyviper-v2450: clean up PA1 UART4_RX NODMA

Replace the define/undef/redefine dance with a single clean definition.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 17:10:44 +10:00