Commit Graph
3735 Commits
Author SHA1 Message Date
Bob Long cee739cd7a AP_HAL_ChibiOS: rename HAL_PROBE_EXTERNAL_I2C_COMPASSES to AP_COMPASS_PROBING_ENABLED
PR merge ordering caused these to get missed
2025-10-28 07:48:43 +00:00
Peter Barker fb8dc7eb2d AP_HAL_ChibiOS: rename HAL_PROBE_EXTERNAL_I2C_COMPASSES to AP_COMPASS_PROBING_ENABLED
... and force it to have a value, not just be defined
2025-10-27 18:24:18 -05:00
Maxim Buzdalov 5a93e3da65 hwdef: add annotated layout/wiring diagram for FlywooF745 v3, update README 2025-10-24 17:55:22 +01:00
jobs e56145bc11 AP_HAL_ChibiOS: add NarinFC-X3 flight controller 2025-10-22 21:49:21 +11:00
Tom Pittenger ce3751a736 hwdef: new board: FlysparkF4 2025-10-22 18:34:32 +11:00
shen 252eb7f68b hwdef: Add AEROFOX-H7 default params 2025-10-21 11:44:20 +11:00
Thomas Watson 3cf2888747 AP_HAL_ChibiOS: keep better track of processed_defaults.parm
Don't get its path unless we are about to generate it to avoid an
inaccurate list of generated files. Do this by keeping track of the path
in a variable instead of checking for the result on the filesystem.

This is somewhat strange and mixed in with the romfs file and
AP_Param.cpp, to disentangle later...
2025-10-20 22:31:44 +11:00
Thomas Watson 973cc7eb6e AP_HAL_ChibiOS: keep track of hwdef.py generated files
This will allow waf to avoid cleaning them and avoid unnecessary
regenerations.

Some slight changes to centralize the use of the output directory are
also performed.
2025-10-20 22:31:44 +11:00
Peter Barker 2110d5324f hwdef: add hwdef-bl.dat for TBS_LUCID_H7_WING_AIO 2025-10-20 07:48:46 +01:00
Serhii Marchuk 91f09c2cc5 hwdef: StellarH7V2: update battery monitoring parameters and clarify voltage/current sensor definitions 2025-10-20 08:46:01 +11:00
Serhii Marchuk af32ce8431 hwdef: StellarH7V2: update BATT2_CURRENT_SENS pin to ADC2 and clarify CAM switch GPIO 2025-10-20 08:46:01 +11:00
Andy Piper 6e86351aeb AP_HAL_ChibiOS: add support for idle-hook based true CPU load
allow idle stats to be turned off
2025-10-16 06:20:54 +11:00
Peter Barker 2a9318fe58 hwdef: CubeNode-ETH: add support for CAN-over-MAVLink 2025-10-15 18:26:06 +11:00
Thomas Watson 90a96c0dc3 AP_HAL_ChibiOS: fix bouncebuffer read cache logic
The read buffer must be invalidated after a DMA read operation as
nothing guarantees an invalidation before the operation finishes
persists until after it's complete.

Quoth the ARM ARMv7M ARM (Architecture Reference Manual): "Entries for
addresses with a Normal Cacheable attribute can be allocated to an
enabled cache at any time, and so the cache invalidate operation cannot
ensure that the address is not present in an enabled cache."

Due to considerations surrounding how the buffer is actually used, we
end up needing an invalidate before and flush after the read op.

Not handling this correctly manifested as rampant dataflash corruption
using LittleFS on KakuteH7Mini (commit 33631df2) due to the driver not
seeing "busy" responses when polling the dataflash chip and having
written data be ignored. This scenario was, however, very fragile, and
everything worked correctly for some alignments of MCU code flash,
presumably creating different timing or cache influences.

It's not clear where else this could have caused an issue, the LittleFS
poll loop is perhaps unique in writing one byte then reading one byte.
Nevertheless, careful investigation with a debugger and logic analyzer,
along with understanding of the manuals, justify this as a proper fix
(and of course the corruption no longer manifests).
2025-10-14 10:27:47 +11:00
Andy Piper a326227151 AP_HAL_ChibiOS: TBS Lucid H7 Wing AIO 2025-10-10 10:07:45 +01:00
Andy Piper 9bc425eb13 AP_HAL_ChibiOS: enabled missing i2c bus on TBS L431 Airspeed
Allow externally connected compass and GPS
2025-10-09 12:44:47 +11:00
Thomas Watson 0536ac7acc AP_HAL_ChibiOS: AEDROXH7: disable block logging
Exclusive with LittleFS.
2025-10-07 11:28:22 -05:00
Thomas Watson 1afac9fe01 AP_HAL_ChibiOS: correctly order SPI DMA TX and RX channels
Fix to match line 570 of
`libraries/AP_HAL_ChibiOS/hwdef/scripts/dma_resolver.py` which puts TX
first.

This swap has no consequence as `Shared_DMA` does not care about the
order of its arguments, but it's good to fix as it's incorrect and
confusing during debugging.

This is a no compiler-output change.
2025-10-07 11:16:57 +11:00
Thomas Watson d04903ad18 AP_HAL_ChibiOS: don't generate no-longer-used env.py 2025-10-06 08:02:36 +11:00
Thomas Watson f47c443c06 AP_HAL_ChibiOS: fix hwdef processor default parameter path source
Read from the passed in variable instead of the global args object. By
default the variable is set to the args object's contents so there is no
change in behavior.

Note that much of this logic is fishy and/or wrong; that is preserved
and left to be fixed another day.
2025-10-06 08:02:36 +11:00
Henry Wurzburg a3fb531ef4 hwdef: rename BATT_CURR_SCALE to BATT_AMP_PERVLT in board READMEs 2025-10-05 10:51:14 +11:00
Andy Piper eb588ba278 AP_HAL_ChibiOS: BlitzF745 gets littlefs
Correct some flash and IMU SPI speeds for F7
2025-10-04 13:40:12 -05:00
Peter Barker c5245f55b0 AP_HAL_ChibiOS: remove definition of HAL_NO_TIMER_THREAD from -bl files
this is enforce for bootloaders by chibios_hwdef.py
2025-10-02 09:25:02 +10:00
Peter Barker c57d98ea6d AP_HAL_ChibiOS: add define so user can omit AP_Vehicle bindings 2025-10-01 18:05:38 +10:00
Peter Barker dcd98c642b hwdef: correct RAMTROM -> RAMTRON spelling 2025-09-30 21:38:31 -05:00
Daria Cacic 4d3dd588ff AP_HAL_ChibiOS: Orqa H7 QuadCore support added for v1.2.1, first official verison being sold 2025-09-29 21:22:43 +01:00
alexklimaj 46f6c80753 hwdef: arkv6x and ark fpv increase IMU SPI speed to 16MHz 2025-09-29 23:43:49 +10:00
alexklimaj acf74c7cdc hwdef: ARKV6X Extended Range 2025-09-29 23:43:49 +10:00
kozinalexey 0eed9612dc hwdef: Update hwdef.dat
Update hardware configuration
2025-09-29 16:08:49 +10:00
Andy Piper 1faa721558 AP_HAL_ChibiOS: enable analog VTX on Spedix H743 2025-09-26 08:31:10 +10:00
命运的玩笑 5d04b7c6fe hwdef: RadiolinkF405 2025-09-25 20:01:51 +01:00
Jacob Dahl 2fb713ad60 hwdef:ARK_PI6X board support 2025-09-25 08:36:23 +10:00
Michael Cerasulo 490878720f hwdef: AeroCogito-H7Digital 2025-09-24 14:55:39 +01:00
Andy Piper f660d70bc5 AP_HAL_ChibiOS: avoid race in virtual timer for serial input
ensure that serial input timeouts reset the bit state
ensure that serial input timeouts trigger after byte time on BlueJay
2025-09-24 17:44:53 +10:00
Andy Piper 4f4ba47033 AP_HAL_ChibiOS: noop dma_cancel() if no dma stream allocated 2025-09-24 17:44:53 +10:00
Andy Piper 95c7c90046 AP_HAL_ChibiOS: BrahmaF4 updates 2025-09-23 07:55:44 +01:00
Alexey Kozin 1e8180d2d2 hwdef: Added support for F4BY_H743 flight controller 2025-09-23 07:54:15 +10:00
Peter Barker f622ede250 AP_HAL_ChibiOS: remove bad defines of DISABLE_SERIAL_ESC_COMM 2025-09-21 22:35:32 -05:00
Peter Barker 38461a2988 hwdef: remove define of HAL_USE_RTC to its default value 2025-09-21 22:35:32 -05:00
Peter Barker 700ca1607d AP_HAL_ChibiOS: remove unused define HAL_NO_GPIO_IRQ
... and make sure it does't come back.

I can't find where we ever actually used this, it's not been used for many years
2025-09-21 22:35:32 -05:00
Peter Barker 042700491f AP_HAL_ChibiOS: remove use of HAL_DISABLE_LOOP_DELAY 2025-09-21 22:35:32 -05:00
Peter Barker c0512963d3 AP_HAL_ChibiOS: remove use of HAL_NO_UARTDRIVER 2025-09-21 22:35:32 -05:00
Peter Barker 20a1241e8d hwdef: remove old unused HAL_NO_GCS define
this is the default for peripherals anyway
2025-09-21 22:35:32 -05:00
Peter Barker b60b1afe3b hwdef: remove more unused defines 2025-09-21 22:35:32 -05:00
Peter Barker d0af7e56d1 AP_HAL_ChibiOS: add stale defines checking
keeps these out of the main codebase which is nice, but also means we can catch these at configure-time rather than build time, which means CI will catch them
2025-09-21 22:35:32 -05:00
Andy Piper 413ca10178 AP_HAL_ChibiOS: add pullups to i2c on Blitz H743 Pro and Wing 2025-09-20 11:56:05 -05:00
Peter Barker 95f40f8f6d AP_HAL_ChibiOS: stop defining HAL_USE_EXT and HAL_NO_CCM
these aren't used anywhere in the codebase
2025-09-19 06:43:09 +10:00
Peter Barker 5192f2a8a4 hwdef: remove defines which are specifying default values
both of these defines have these values in defaults_normal.h
2025-09-18 20:51:37 +10:00
Andy Piper 0f629533c6 AP_HAL_ChibiOS: Orqa H743 Pro 2025-09-18 10:12:36 +01:00
Andy Piper 965c6c971f AP_HAL_ChibiOS: spell OrqaF405Pro board id correctly 2025-09-18 10:12:36 +01:00