Commit Graph
3769 Commits
Author SHA1 Message Date
Bob Long c1d939253f AP_HAL_ChibiOS: update CarbonixF405 2025-12-04 10:10:55 +11:00
Peter Barker 9f8380d888 hwdef: remove unused HAL_BUZZER_ON/HAL_BUZZER_OFF defines
these haven't been used in a very long time.  Their replacement infers the same default behaviour, so that's nice.
2025-12-04 09:31:06 +11:00
Peter Barker bf7ba24ef4 AP_HAL_ChibiOS: hwdef: remove unused BOARD_PWM_COUNT_DEFAULT defines
this hasn't been used in years
2025-12-03 12:53:20 -06:00
Peter Barker 30d49c6f9f hwdef: remove unused ADC lines from iomcu hwdef.inc
these don't ever appear to have been used!
2025-12-03 12:16:50 -06:00
Peter Barker 430bbced6e AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT
not used since at least 2022
2025-12-03 12:11:20 -06:00
Andy Piper 6cc4666fae hwdef: board definitions for AIRBRAINH743 2025-12-02 11:14:36 +11:00
Peter Barker 20b6e1d469 hwdef: fix Aeromind6X compilation for stale define 2025-11-28 09:09:24 +11:00
Sai Vishnu Balaji f5d0f8df78 hwdef: Aeromind6X 2025-11-28 09:09:24 +11:00
Andrew Tridgell bee76fc36e HAL_ChibiOS: disable AP_Filesystem_FATFS in bootloader
not needed
2025-11-26 21:31:31 +00:00
Andy Piper 91d91f4157 AP_HAL_ChibiOS: initialize sdcard bouncebuffer appropriately
fail sdcard gracefully if bouncebuffer could not be allocated
2025-11-26 21:31:31 +00:00
Peter Barker 38e93e44f3 AP_HAL_ChibiOS: fix Python warning about unexpected escape sequences
... i.e. mark a regex string as a regex string
2025-11-26 20:44:35 +11:00
Alexis Guijarro 730c7aa55d hwdef: 3DR and mRo boards: Switching to DPS310 sensor 2025-11-21 17:52:33 +11:00
Andy Piper 6d44a73768 AP_HAL_ChibiOS: ensure correct lengths are flushed and invalidated when using DMA 2025-11-19 19:43:16 +11:00
Andy Piper 5a3afb833f AP_HAL_ChibiOS: correct length of dshot copy buffer 2025-11-19 19:43:16 +11:00
Andrew Tridgell 431c8d1425 HAL_ChibiOS: enable flow control for USB
this greatly speeds up MAVFtp on USB connections.

Downloading a log file without this change on a CubeOrange gets around
16 kbyte/s. With this change I get over 480 kbyte/s, a factor of 30x
speedup
2025-11-19 15:16:41 +11:00
Andy Piper 20ac5202be hwdef: ensure that boards with small flash-based sdcard logging do not erase all logs on boot 2025-11-16 00:21:25 +11:00
Andy Piper 8f165962f9 hwdef: correct outputs and docs on TBS_LUCID_H7_WING_AIO
add comment to TBS_LUCID_H7 about current sensing
2025-11-12 08:47:27 +00:00
Andy Piper f594949f93 hwdef: update baro for BlitzF745AIO and BlitzF745 to SPL06 2025-11-12 08:46:56 +00:00
Thomas Watson 048f4d9b60 AP_HAL_ChibiOS: drop CAN interface alternate mode support
Only "NormalMode" was ever used; the others had rotted or were never
implemented.
2025-11-11 10:58:43 +11:00
Thomas Watson 763a6361de AP_HAL_ChibiOS: drop CAN filter support from HAL
Has been unused since the removal of libuavcan.
2025-11-11 10:58:43 +11:00
Thomas Watson 0e4db74c75 AP_HAL_ChibiOS: ignore rare CAN modes
These are never used anywhere by ArduPilot.
2025-11-11 10:58:43 +11:00
mehmetmydn 09c814147c hwdef: SkyRukh Surge H7 add hwdef and readme file 2025-11-10 13:57:02 +00:00
MinderringandHenry Wurzburg 321cc86cbd AP_HAL_ChibiOS: add hwdef MicoAir743-Lite
Update libraries/AP_HAL_ChibiOS/hwdef/MicoAir743-Lite/README.md

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>
2025-11-09 13:33:26 +11:00
Peter Barker 46ea8e3d62 hwdef: update FlyingMoon board hwdefs 2025-11-08 12:56:28 +11:00
Peter Barker 5106ac0204 AP_HAL_ChibiOS: tidy compass probing defines
- stop using #ifdef defines
 - use current standard naming schemes
 - remove the double-negatives
2025-11-05 19:35:27 +11:00
Peter Barker 518c04e27e hwdef: add support for NucleoH753ZI 2025-11-04 09:47:58 +11:00
Peter Barker a510631a15 AP_HAL_ChibiOS: add STM32H753xx.py 2025-11-04 09:47:58 +11:00
Peter Barker 6581d3d0a8 hwdef: remove non-required RAM_RESERVE_START 256
this is the default, created by an explicit commit to remove boilerplate from hwdefs....
2025-11-02 20:05:47 -06:00
Iampete1 39f76af1d9 ChibiOS: Util: remove Crash Dump incomplete, dumping what we got! mesage 2025-11-01 18:26:05 +11:00
Peter Barker f365bc9887 AP_HAL_ChibiOS: remove HAL_CHIBIOS_ARCH_CUBE
replace sole use with a generic define which non-Cube boards can set if they so desire
2025-10-29 18:35:24 +11:00
Andy Piper 13cb7a9265 AP_HAL_ChibiOS: add UARTDriver::is_owned_by_current_thread() 2025-10-29 18:34:57 +11:00
Peter Barker dcc7c12fff AP_HAL_ChibiOS: fix instances of flake8 B006 error
e.g.:

./Tools/autotest/vehicle_test_suite.py:8607:89: B006 Do not use mutable data structures for argument defaults.  They are created during function definition time. All calls to the function reuse this one instance of that data structure, persisting changes between them.
2025-10-28 20:19:01 -05:00
Peter Barker 4b744803be AP_HAL_ChibiOS: remove HAL_BOARD_SUBTYPE_CHIBIOS_FMUV{3,5}
no longer required
2025-10-29 11:54:23 +11:00
Peter Barker cf0c95e989 AP_HAL_ChibiOS: move LeakDetector pin type knowledge out into HAL 2025-10-29 11:54:23 +11:00
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