Commit Graph

1069 Commits

Author SHA1 Message Date
Peter Barker
23ffc39afa AP_HAL_Linux: correct compilation of the Aero board
hwdef: make BMM150 internal

Need to choose force-external or not, assuming this one is on-board
2025-02-26 23:42:07 +11:00
Peter Barker
d005e9cfbc AP_HAL_Linux: allow linux hwdefs to specify WITH_CAN in hwdef env 2025-02-26 23:42:07 +11:00
Peter Barker
4147e4fc7b AP_HAL_Linux: move definition of CONFIG_HAL_BOARD_SUBTYPE into hwdefs 2025-02-26 23:42:07 +11:00
Peter Barker
7c95668fd6 AP_HAL_Linux: extract toolchain from hwdef 2025-02-26 23:42:07 +11:00
Peter Barker
f451f83d68 AP_HAL_Linux: make linux hwdef write out env.py 2025-02-26 23:42:07 +11:00
Peter Barker
0d05814d30 AP_HAL_Linux: move BARO lines to hwdef 2025-02-25 14:38:45 +11:00
Peter Barker
1fa2cf38d5 AP_HAL_Linux: move parsing of BARO lines up to AP_HAL hwdef.py 2025-02-25 14:38:45 +11:00
Peter Barker
0714b3abc2 AP_HAL_Linux: move COMPASS definitions to hwdef 2025-02-25 14:38:45 +11:00
Peter Barker
bdce6f2779 AP_HAL_Linux: move parsing of COMPASS hwdef lines up to hwdef.py 2025-02-25 14:38:45 +11:00
Peter Barker
2998190c4b AP_HAL_Linux: hwdef: best-guess IMU fix on rst-zynq 2025-02-25 14:38:45 +11:00
Peter Barker
687e870edd AP_HAL_Linux: move IMU line parsing up into hwdef.py, use it for Linux HAL 2025-02-25 14:38:45 +11:00
Peter Barker
0f59e9b2bb AP_HAL_Linux:tidy bebop defines 2025-02-25 14:38:45 +11:00
Peter Barker
3bcd04c4c9 AP_HAL_Linux: move AP_Airspeed configuration into linux hwdef 2025-02-19 15:42:52 +11:00
Peter Barker
e3e5199e53 AP_HAL_Linux: move AP_InertialSensor configuration into linux hwdef 2025-02-19 15:42:52 +11:00
Peter Barker
c9e4a7d195 AP_HAL_Linux: move defaulting of ublox speed change into linux hwdef 2025-02-19 15:42:52 +11:00
Peter Barker
05bc0c0669 AP_HAL_Linux: move enabling of Onboard OF into bebop hwdef 2025-02-19 15:42:52 +11:00
Peter Barker
82ab52a7bf AP_HAL_Linux: move defaulting of relay pin params to linux hwdefs 2025-02-19 15:42:52 +11:00
Peter Barker
640231c6d5 AP_HAL_Linux: move custom compass rotation into linux hwdefs 2025-02-19 15:42:52 +11:00
Peter Barker
0feb2d2f53 AP_HAL_Linux: move enabling of specific rangefinders into linux hwdef 2025-02-19 15:42:52 +11:00
Peter Barker
052914c38f AP_HAL_Linux: move analogue battmonitor configs into linux hwdef 2025-02-19 15:42:52 +11:00
Peter Barker
e6d5efe456 AP_HAL_Linux: use linux hwdefs to define AP_Notify information 2025-02-19 15:42:52 +11:00
Peter Barker
a8374a28f3 AP_HAL_Linux: start tidying Linux GPIO 2025-02-19 15:42:52 +11:00
Peter Barker
eaf0feef44 AP_HAL_Linux: specify Linux SPI devices in hwdefs 2025-02-19 15:42:52 +11:00
Peter Barker
d60a7e5f93 AP_HAL_Linux: factor functionality in hwdef.py classes 2025-02-19 15:42:52 +11:00
Peter Barker
6004ed44c7 AP_HAL_Linux: add and use linux_hwdef.py
like chibios_hwdef.py - but for Linux
2025-02-19 15:42:52 +11:00
Peter Barker
261a804f6b AP_HAL_Linux: move navio2 RC input into AP_RCProtocol 2025-02-11 10:41:52 +11:00
Peter Barker
07d5938d68 AP_HAL_Linux: add get_device_ptr to HAL I2CDevice API 2025-01-31 09:19:33 +11:00
Peter Barker
dc2a5e02b6 AP_HAL_Linux: remove superfluous linefeed from panic strings
panic adds this within the HAL layer.
2024-12-14 10:06:13 +11:00
Andrew Tridgell
a124d66110 AP_HAL_Linux: implement new scripting heap APIs 2024-11-20 07:32:03 +11:00
Peter Barker
43970c0c7a AP_HAL_Linux: re-order initialiser lines so -Werror=reorder will work 2024-11-13 06:40:37 +11:00
Peter Barker
27df5e0479 AP_HAL_Linux: re-order initialiser lines so -Werror=reorder will work 2024-09-24 22:50:28 +10:00
junan
71a69367df AP_HAL_Linux: file descriptor leaking and other issues in "Storage" of Linux.
- Fixed the fd leaking issue in "_storage_create" found by @peterbarker
- Remove the unnecessary call of "unlinkat" in "_storage_create"
- Simplify the implementation of "init"

Signed-off-by: junan <junan76@163.com>
2024-09-17 10:09:05 +10:00
junan
4ee5b0ea12 AP_HAL_Linux: keep "dfd" open util fsync is done.
Since we want to do a fsync on "dfd", it can not be closed before that.

Signed-off-by: junan <junan76@163.com>
2024-09-09 09:28:51 +10:00
Pierre Kancir
f1dd2bb2e8 AP_HAL_Linux: SITL: add missing header for timeval struct on alpine linux 2024-08-15 22:33:42 +10:00
Andrew Tridgell
dbba4559ee HAL_Linux: removed unused I2C vector get_device 2024-07-11 11:20:47 +10:00
Andrew Tridgell
3980cbbb82 AP_HAL_Linux: switched ENABLE_HEAP to an #if 2024-07-11 09:28:17 +10:00
Andrew Tridgell
2374d6f444 AP_HAL_Linux: removed run_debug_shell 2024-07-11 07:42:54 +10:00
xianglunkai
5b05a171a2 AP_HAL_Linux: remove unused includes 2024-06-17 09:51:38 +10:00
Brad Bosch
f2f9349419 AP_HAL: Add support for parity to Serial passthrough
Add code to reflect USB ACM parity setting to the passthrough port alongside existing support for ACM baud rate changes.  Some use cases for serial passthrough require specific parity settings.

For example, even parity is used and required by the USART protocol used in the STM32 system bootloader. This enhancement allows the use of standard flash programming tools such as STM32CubeProgrammer to flash connected STM based peripherals such as Receivers and Telemetry radios via serial passthrough.  Some examples of such peripherals include the FrSky R9 receivers as well as various other STM based LoRa modules used by the mLRS project.
2024-06-11 09:24:32 +10:00
Andrew Tridgell
f1c6538f34 AP_HAL_Linux: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
Patrick José Pereira
34f5579699 AP_HAL_Linux: Remove message about base address
The value is the same as in the match

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2024-05-13 10:46:58 -03:00
Patrick José Pereira
6016e411e0 AP_HAL_Linux: Add support to Raspberry Pi 5
The Raspberry Pi 5 has a coprocessor that takes care of the IO over the BCM.
This adds support to the new RP1 processor.

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2024-05-13 10:46:58 -03:00
Patrick José Pereira
3f451b9f4c AP_HAL_Linux: Util_RPI: Add message about unknown board
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2024-05-13 10:46:58 -03:00
Patrick José Pereira
4af6142933 AP_HAL_Linux: Util_RPI: Add support to RPI5 identification
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2024-05-13 10:46:58 -03:00
Peter Barker
599ff17f34 AP_HAL_Linux: fix SPIUARTDriver to work with GPS autodetection
GPS auto-detection requires get_baud_rate to return non-zero.  The SPIUARTDriver was returning 0.
2024-05-08 17:13:58 +10:00
Peter Barker
7319422d6c AP_HAL_Linux: remove unused RC input methods
these protocols have come from AP_RCProtocol for years
2024-05-07 09:49:48 +10:00
Oleksiy Protas
cadd121401 Bounds correctness for AnalogIn_IIO 2024-04-16 09:14:55 +10:00
Oleksiy Protas
364e6f06f3 AP_HAL_Linux: delay signal handlers setup
Allow default signals before full initialization in Linux, this makes sure we don't get an unkillable process if it hangs on initialization

Exit flag marked volatile to counteract possible compiler optimization due to the handler code running in a different context
2024-04-05 11:36:29 +11:00
Andrew Tridgell
cfad74ce6b AP_HAL_Linux: fixed get_baud_rate() 2024-02-29 11:00:40 +11:00
Peter Barker
df3267c9ba waf: remove SKETCH and SKETCHNAME from build sysmte
... renaming one of them to AP_BUILD_TARGET
2024-02-26 15:42:25 +11:00