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
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
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
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
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
f622ede250
AP_HAL_ChibiOS: remove bad defines of DISABLE_SERIAL_ESC_COMM
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
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
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
Iampete1
4eb90cc652
AP_HAL_ChibiOS: periph: check for existing define for serial protocols
2025-09-18 16:17:07 +10:00
Peter Barker
c52891c06b
AP_HAL_ChibiOS: break out a write_device_table method
2025-09-03 11:54:13 +01:00
Peter Barker
ece5cec062
AP_HAL_ChibiOS: add and use AP_SIM_VICON_ENABLED
...
this doesn't compile on sim-on-hardware when debugging is enabled (stack frame too large)
2025-07-29 10:12:11 +10:00
Thomas Watson
d0b7387752
AP_HAL_ChibiOS: disable GPIO interrupt callbacks in bootloader build
...
Saves several hundred bytes by not including unused ISRs.
2025-07-29 10:09:21 +10:00
Shiv Tyagi
cd81a40d28
AP_HAL_ChibiOS: add HAL_EFI_ENABLED as a dependency of AP_PERIPH_EFI_ENABLED
2025-07-24 12:21:31 +10:00
Peter Barker
3708936c62
global: correct shebang lines to refernce python3
...
also remove the odd encoding line which is not required in Py3
2025-07-22 10:45:57 +10:00
Shiv Tyagi
c3747f0eba
AP_HAL_ChibiOS: add HAL_PROXIMITY_ENABLED as a dependency of AP_PERIPH_PROXIMITY_ENABLED
2025-07-19 11:45:35 +10:00
Shiv Tyagi
261f9ed9b2
AP_HAL_ChibiOS: add AP_PERIPH_RTC_ENABLED as a dependency of AP_PERIPH_BATTERY_TAG_ENABLED
2025-07-17 08:32:14 +10:00
Shiv Tyagi
c191cc14db
AP_HAL_ChibiOS: add AP_RELAY_ENABLED as a dependency of AP_PERIPH_RELAY_ENABLED
2025-07-11 14:51:36 -07:00
Shiv Tyagi
545fb09c1c
AP_HAL_ChibiOS: add HAL_MSP_ENABLED as a dependency of AP_PERIPH_MSP_ENABLED
2025-07-08 23:07:23 +10:00
Shiv Tyagi
da095c7312
AP_HAL_Chibios: enable AP_TEMPERATURE_SENSOR_ENABLED based on AP_PERIPH_DEVICE_TEMPERATURE_ENABLED
2025-07-05 21:34:38 -05:00
Peter Barker
d225ee987d
hwdef: turn off Sum backend on AP_Periph
...
default is to not have that many backends...
2025-07-03 09:12:20 +10:00
Peter Barker
5315491cc3
AP_HAL_ChibiOS: tidy remaining AP_SIM_ defines
2025-07-02 17:27:59 +10:00
Shiv Tyagi
c8ccdbb972
Tools: remove AP_PERIPH_AHRS_ENABLED
2025-06-27 09:28:16 +10:00
Andy Piper
e2b710eb55
AP_HAL_ChibiOS: always provide default IMU in betaflight conversion
2025-06-24 17:05:03 +01:00
Christian Clauss
662c8f9ed7
hwdef: Add # flake8: noqa linter directive
2025-06-20 20:30:15 +10:00
Andy Piper
2c36f3aaff
AP_HAL_ChibiOS: skip motors without timers in betaflight conversion
2025-06-19 07:22:38 +10:00
Andy Piper
b4e51ebf63
AP_HAL_ChibiOS: cope with complimentary timers in betaflight conversion
2025-06-19 07:22:38 +10:00
Peter Barker
88ceb0e5f7
AP_HAL_ChibiOS: correct embedding of bootloader in hex using USE_BOOTLOADER_FROM_BOARD
2025-06-18 22:57:09 +10:00
Peter Barker
86b9cfc28e
AP_HAL_ChibiOS: chibios_hwdef.py: stop overriding process_file
...
same as that in the base class
2025-06-18 17:18:59 +10:00
Andrew Tridgell
70a3dc188b
hwdef: ensure we don't enable CAN drivers when no CAN
...
this makes using the custom build server easier
2025-05-20 11:05:11 +10:00
Andrew Tridgell
c0a45694a0
hwdef: default BATTERY_TAG and GLOBALTIME off
2025-05-17 09:25:46 +10:00
Andy Piper
5c62547bca
AP_HAL_ChibiOS: give bootloader access to parameter storage page
2025-05-13 12:03:49 +10:00
Peter Barker
4717c5c02a
AP_HAL_ChibiOS: rename HAL_EXTERNAL_AHRS_ENABLED to AP_EXTERNAL_AHRS_ENABLED
...
in preparation for making this an optional feature; a lot of people will want to go and put this in their hwdef files as soon as we do this!
2025-05-13 09:06:44 +09:00
Shiv Tyagi
cef8bcef6f
AP_HAL_ChibiOS: wrap define AP_XX_ENABLED AP_PERIPH_YY_ENABLED inside ifndef-endif
...
We should be only defining these if they are already not defined.
2025-05-09 14:29:39 +10:00
Christian Clauss
19b78db710
AP_HAL_ChibiOS: fix typos discovered by codespell
2025-04-15 14:48:39 +10:00
bugobliterator
5233716e59
AP_HAL_ChibiOS: add support hiding Serial parameters for unlisted IOMCU and Empty serial ports
2025-04-09 18:09:00 +10:00
Andy Piper
56d452e33e
AP_HAL_ChibiOS: ensure alt pin definitions are removed by undef
2025-04-09 17:14:19 +10:00
Andy Piper
3b464926b6
AP_HAL_ChibiOS: break out DMA mapping for L431 so that parsing works correctly
2025-03-26 17:33:13 +00:00
Shiv Tyagi
fb95142953
AP_HAL_ChibiOS: use new AP_PERIPH_BUZZER_XX_ENABLED defines
2025-03-10 22:15:59 +11:00
Shiv Tyagi
908223f699
AP_HAL_ChibiOS: use new AP_PERIPH_XX_LED_WITHOUT_NOTIFY_ENABLED defines
2025-03-10 08:45:22 +11:00
Shiv Tyagi
3798d6fd32
AP_HAL_ChibiOS: use new AP_PERIPH_ESC_APD_ENABLED define
2025-03-05 09:45:07 +11:00
Thomas Watson
75e4775f1a
AP_HAL_ChibiOS: add JEDEC NOR support to hwdef.dat DATAFLASH
...
Also fix newlines for written defines.
2025-03-04 11:46:15 +11:00
Shiv Tyagi
0e0e68c984
AP_HAL_ChibiOS: use new AP_PERIPH_DEVICE_TEMPERATURE_ENABLED define
2025-03-04 10:55:34 +11:00
Shiv Tyagi
e100db3596
AP_HAL_ChibiOS: use new AP_PERIPH_PWM_HARDPOINT_ENABLED define
2025-02-28 20:45:47 +11:00
bugobliterator
9933b47087
hwdef: add env variable to set IOMCU Heater feature
2025-02-27 20:11:40 +11:00
bugobliterator
e832bccac9
AP_HAL_ChibiOS: add support for using hal serial as IOMCU Serial
2025-02-27 20:11:40 +11:00
Shiv Tyagi
450ffd1520
AP_HAL_ChibiOS: use new AP_PERIPH_PROXIMITY_ENABLED define
2025-02-27 08:00:43 +11:00
Peter Barker
b3c1abe935
AP_HAL_ChibiOS: make linux hwdef write out env.py
2025-02-26 23:42:07 +11:00