Commit Graph

1304 Commits

Author SHA1 Message Date
Peter Barker
6a54d871f3 AP_HAL: move definition of CONFIG_HAL_BOARD_SUBTYPE into hwdefs 2025-02-26 23:42:07 +11:00
Peter Barker
3ff4ed3b4f AP_HAL: make linux hwdef write out env.py 2025-02-26 23:42:07 +11:00
Peter Barker
4008df1314 AP_HAL: Socket: check return value of getsockname
avoids static analysis failure upon this method failing
2025-02-26 18:54:24 +11:00
Peter Barker
6338d10b5f global: create and use HAL_PROGRAM_SIZE_LIMIT_KB
We will reserve BOARD_FLASH_SIZE for the internal flash on stm32 flash processors, use HAL_PROGRAM_SIZE_LIMIT_KB in the general code base.

Notable change here is that boards with external flash will start to get features only available with more than 2MB of program storage
2025-02-26 10:06:39 +11:00
Peter Barker
67c7958f4c AP_HAL: remove Python print_function import 2025-02-26 10:06:11 +11:00
Peter Barker
aef8f9d4dd AP_HAL_Linux: remove vestiges of board sensor specifications
all moved to hwdef
2025-02-25 14:38:45 +11:00
Peter Barker
0d05814d30 AP_HAL_Linux: move BARO lines to hwdef 2025-02-25 14:38:45 +11:00
Peter Barker
34735b30df AP_HAL: 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
5d7e5b1aff AP_HAL: 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
8fb665914e AP_HAL: move IMU line parsing up into hwdef.py, use it for Linux HAL 2025-02-25 14:38:45 +11:00
Peter Barker
65fca2a37d AP_HAL: mark many functions as __INITFUNC__
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
b377a00ae3 AP_HAL: move defaulting of relay pin params to linux hwdefs 2025-02-19 15:42:52 +11:00
Peter Barker
98570f6456 AP_HAL: move analogue battmonitor configs into linux hwdef 2025-02-19 15:42:52 +11:00
Peter Barker
5a60fc1faf AP_HAL: use linux hwdefs to define AP_Notify information 2025-02-19 15:42:52 +11:00
Peter Barker
6d1cea44dd AP_HAL: start tidying Linux GPIO 2025-02-19 15:42:52 +11:00
Peter Barker
0c0278a70d AP_HAL: factor functionality in hwdef.py classes 2025-02-19 15:42:52 +11:00
Peter Barker
7ce9ec2c61 AP_HAL: 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
e92d540d64 AP_HAL: move navio2 RC input into AP_RCProtocol 2025-02-11 10:41:52 +11:00
bugobliterator
4bad4f856b AP_HAL: change IsMavCAN to IsForwardedFrame 2025-02-05 10:23:46 +11:00
Peter Barker
8a9a1826e1 AP_HAL: move enabling of AP_NOTIFY_TONEALARM_ENABLED out of AP_Notify_config.h
this is looking at chibios-specific defines, which is bad
2025-02-04 11:53:25 +11:00
Peter Barker
0a617b500b AP_HAL: add get_device_ptr to HAL I2CDevice API 2025-01-31 09:19:33 +11:00
Peter Barker
f92fde806f AP_HAL: SIMState: do a single nullptr check in SIMState servo sim
mirrors if c1016ae52e
2025-01-25 18:50:49 -06:00
Andy Piper
0f159b8d83 AP_HAL: no littlefs on QURT 2025-01-21 11:10:31 +11:00
Andy Piper
24ab3f8f20 AP_HAL: tidy meanings of FATFS, POSIX_IO and friends 2025-01-21 11:10:31 +11:00
Andy Piper
948a38c623 AP_HAL: add littlefs build option 2025-01-21 11:10:31 +11:00
Peter Barker
b43410a021 AP_HAL: add Volz simulator 2025-01-15 18:45:45 +11:00
Peter Barker
5fef5adade AP_HAL: rearrange log-structure ifdefs
put the positive clause first to be consistent across codebase
2025-01-14 11:46:13 +11:00
Peter Barker
c1c438d5bd AP_HAL: replace HAL_NO_UARTDRIVER with AP_HAL_UARTDRIVER_ENABLED 2025-01-14 11:26:37 +11:00
Peter Barker
135805d290 AP_HAL: remove unused GCS.h import 2025-01-14 11:26:37 +11:00
Peter Barker
af908c5d2f AP_HAL: remove command-line option enabling synthetic clock
it's always on, all the time

this has always been set for many years
2025-01-14 09:38:52 +11:00
Andy Piper
2b46f5a20b AP_HAL: allow individual boards to define HAL_INS_RATE_LOOP
allow fast rate loop on F4 with one IMU
2025-01-07 12:23:13 +11:00
Thomas Watson
f630357dc7 AP_HAL: clarify semaphore recursion
We haven't had non-recursive semaphores since PR #13323
(commits 1284f1bd8a).
2025-01-05 13:35:13 +11:00
Thomas Watson
75da82605e AP_HAL_ESP32: set up EKF double like other boards
It's still not enabled.
2024-12-26 19:59:15 -06:00
Peter Barker
c438d8a28d AP_HAL: correct comments for ArduPlane.cpp rename 2024-12-24 12:26:42 +11:00
Andrew Tridgell
f5b0a447d8 AP_HAL: enable up to 3 CAN callbacks 2024-12-11 08:43:56 +11:00
Andy Piper
1d6d11283e AP_HAL: protect against invalid values when calculating Jain's estimator 2024-12-10 10:43:17 +11:00
Andy Piper
76897e9674 AP_HAL: set HAL_INS_RATE_LOOP in boards
restrict rate loop to H7 and F7
2024-12-04 07:45:05 +11:00
Andy Piper
c4ab8e25c4 AP_HAL: allow forcing of trigger_groups() 2024-12-04 07:45:05 +11:00
David Buzz
fd8c470120 AP_HAL_ESP32: __RAMFUNC__ maps to IRAM_ATTR
dagery_ua found this and reported it in Discord
2024-11-22 12:20:52 -06:00
Andrew Tridgell
28dc5deb9a AP_HAL: removed heap APIs
implement in AP_MultiHeap instead
2024-11-20 07:32:03 +11:00
Andrew Tridgell
9a8c59c5ac AP_HAL: rework heap allocation functions
make functions for lua heap allocation suitable for use in all
non-ChibiOS HALs
2024-11-20 07:32:03 +11:00
Peter Barker
cca1edb78d AP_HAL: re-order initialiser lines so -Werror=reorder will work
AP_HAL: correct compilation for sim-on-hardware with -werror=reorder
2024-11-13 06:40:37 +11:00
Peter Barker
0c5741364e AP_HAL: tidy defaulting of Bebop OpticalFlow sensor type 2024-11-12 12:45:29 +11:00
Simon Hancock
b7e3c8c71d AP_HAL: Add @LoggerEnum tags around BOARD/SUBTYPE #defines 2024-11-12 11:11:45 +11:00
Richard Allen
c0ee3b2216 AP_HAL: support port SITL to OpenBSD 2024-11-06 14:17:31 +11:00
Peter Barker
3273f58851 AP_HAL: remove defines for boards which don't exist
we'll now get compilation failures if code is introduced depending on these...
2024-10-08 11:04:28 +11:00
Peter Barker
93174e3240 AP_HAL: avoid include of non-existant file
this file doesn't exist
2024-10-08 11:04:28 +11:00