Andy Piper
92b5a1c615
AP_HAL: add BLHeli_S ESC type and use it to control bitwidths
...
adjust BLHeli_S bitwidth and ticks to support more ESC variants.
2022-06-17 14:07:00 +10:00
Andy Piper
5cb5168406
AP_HAL: add bitwidth hal definitions.
...
revert to original bitwidths for neopixel and profiled
add proper neopixel test that observes spec'ed timings
2022-06-17 14:07:00 +10:00
Andy Piper
4e487c9198
AP_HAL: add accessor for disabled channels to RCOutput
2022-04-28 12:56:34 +10:00
Andy Piper
48e0efaddb
AP_HAL: update prescaler tests
2022-04-28 12:56:34 +10:00
Randy Mackay
7c7121f4bd
AP_HAL: add GPIO::pin_to_servo_channel method
2022-04-28 12:56:34 +10:00
Andy Piper
85d73eeb5c
AP_HAL: always choose high for dshot prescaler calculation
2022-03-10 08:25:59 +11:00
Andrew Tridgell
56d74a352c
AP_HAL: fixed vprintf for no hal.h
2022-02-22 12:13:19 +11:00
Andrew Tridgell
b248fdfcbb
AP_HAL: avoid including hal.h in generic code
2022-02-22 12:13:19 +11:00
Andrew Tridgell
4811544003
AP_HAL: fixed a race conditon for CAN frame callback
...
callback can change from another thread
2022-02-20 06:28:47 +11:00
Andrew Tridgell
d9f79f42c8
AP_HAL: moved CAN_FRAME timeout handling to AP_CANManager
2022-02-19 18:24:56 +11:00
Andrew Tridgell
88e7efcf9c
AP_HAL: make CANFrame data available as uint32_t
...
this makes the critical sections in CANFrame handling on STM32 faster
2022-02-19 18:24:56 +11:00
Andy Piper
ea1af70f2b
AP_HAL: add support for @SYS/timers.txt
...
move prescaler calculation here and add unit test
add ability to find closest matching frequency in prescaler calculation
account for bit widths in prescaler tests
2022-02-16 15:28:04 +11:00
Andrew Tridgell
eb549f3e00
AP_HAL: review comments
2022-02-12 16:36:05 +11:00
Andrew Tridgell
dbe17d072f
AP_HAL: support mavcan message forwarding
2022-02-12 16:36:05 +11:00
Andy Piper
a7ac4809b1
AP_HAL: disabled ADC3 on H750
...
define __FASTRAMFUNC__
2022-02-09 12:47:55 +00:00
murata
7eb231281b
AP_HAL: Remove meaningless semicolons
2022-02-07 08:27:34 +09:00
Peter Barker
f5526d095b
AP_HAL: remove HAL_COMPASS_DEFAULT define
...
this doesn't actually allow you to specify a default, despite the name
and a couple of hwdefs trying to use it that way.
This would have stopped being useful when we did the
compass-prority-table stuff - or before.
2022-02-01 12:10:38 +11:00
Peter Barker
3a1340236a
AP_HAL: add HAL_UART_STATS_ENABLED to disable stats gathering
2022-01-12 18:30:49 +11:00
Andrew Tridgell
3b70b3e7a7
AP_HAL: check for existing HAL_STORAGE_SIZE
2022-01-11 11:33:30 +11:00
Willian Galvani
dc856f10eb
AP_HAL_Linux: set internal/external i2c bus masks for Navigator
...
This fixes an issue where the internal Compass was being re-detected
as an external one, then as an internal but with wrong orientation
2022-01-06 14:45:42 -05:00
Willian Galvani
725765c1cb
AP_HAL: fix navigator ak09915 orientation
2022-01-03 15:05:47 -03:00
Willian Galvani
d3e3922776
AP_HAL: Add HAL_PROBE_EXTERNAL_I2C_COMPASSES to Navigator
2022-01-03 15:05:47 -03:00
Andy Piper
d4024d9216
AP_HAL: allow configuration of maximum number of notches based on MCU type
...
increase notch filters in SITL
remove redundant harmonics from DSP
2021-12-22 18:13:38 +11:00
Stephen Dade
68ca18329c
AP_HAL: Add UART option to not override streamrates
2021-12-15 14:14:07 +11:00
Peter Barker
f50d48f005
AP_HAL: tidy set/get of hw RTC
2021-12-06 12:58:43 +11:00
bugobliterator
0c69ebc50e
AP_HAL: update last_crash_dump api
2021-12-01 18:17:50 +11:00
Andrew Tridgell
8c2074907b
AP_HAL: support up to 9 UARTs
2021-11-22 22:48:59 +11:00
Patrick José Pereira
176c70b5ff
AP_HAL: Update Navigator board to R4
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-11-10 18:11:34 -03:00
bugobliterator
6d4ac999d0
AP_HAL: add get_storage_ptr method
2021-11-10 17:21:35 +11:00
Andrew Tridgell
51da1c3eff
AP_HAL: added disable_rxtx() to UARTs
2021-11-07 07:00:35 +11:00
Andrew Tridgell
34ba3e4782
AP_HAL: make set_soft_armed() virtual
2021-11-05 14:30:43 +11:00
Buzz
ecfdd80bc7
AP_HAL: new HAL layer for esp32
...
see libraries/AP_HAL_ESP32/README.md for more.
Author: Charles Villard <charlesvillard10@gmail.com>
Author: Buzz <davidbuzz@gmail.com>
2021-11-01 17:40:31 +11:00
bugobliterator
f9f47cbeeb
AP_HAL: add method to fetch last crash dump
2021-10-30 19:24:57 +11:00
Davis Schenkenberger
795e7e53bf
AP_HAL: add helpers le64toh_ptr, be64toh_ptr, put_le64_ptr, put_be64_ptr
2021-10-17 08:55:03 +11:00
Andrew Tridgell
8157c24977
AP_HAL: added stack logging
2021-10-12 16:04:06 +11:00
Andrew Tridgell
029743e27a
AP_HAL: added support for saving and restoring GPIO settings
...
this allows for using any pin (eg. UART TX, RX, RTS, CTS) as a GPIO,
and restoring the old mode. Initial use is for spektrum bind on RX pin
2021-10-12 15:47:51 +11:00
Willian Galvani
34b42d8252
AP_HAL: Navigator: set HAL_BARO_EXTERNAL_BUS_DEFAULT to 6
...
This is the bus exposed in the board for external sensors.
This is required as HAL_Linux doesn't probe all i2c buses.
2021-10-11 17:57:52 -03:00
bugobliterator
e4f4b3ce1f
AP_HAL: add true random number generator
2021-10-07 19:43:11 +11:00
Iampete1
3b8b90d170
AP_HAL: move is_dshot_protocol to AP_HAL
2021-10-06 18:59:57 +11:00
Iampete1
9b02baa5f0
AP_HAL: add note to output_mode enum about params using it
2021-10-06 18:59:57 +11:00
Iampete1
bb04406496
AP_HAL: AnalogSource: set_pin returns bool
2021-10-06 18:42:51 +11:00
Peter Barker
102b1c6879
AP_HAL: allow for selection of Storage backend type at runtime
2021-10-05 10:16:54 +11:00
Andrew Tridgell
1283d42fbf
AP_HAL: added micros16() method
...
fast method for both 16 and 32 bit timers
2021-10-02 18:26:39 +10:00
Andrew Tridgell
aa05629ef6
AP_HAL: added peekiovec test
...
fixes #18285
2021-09-30 12:46:07 +10:00
Pierre Kancir
c12217eeb5
AP_HAL: use correct #pragma GCC diagnostic pop
2021-09-29 17:27:29 +10:00
Peter Barker
1976b2b859
AP_HAL: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Iampete1
ed80d91d55
AP_HAL: remove set_safety_pwm
2021-09-14 09:23:02 +10:00
Willian Galvani
fe72640955
AP_HAL: remove BATT_ settings, they belong in AP_BattMonitor_Analog.h
2021-09-14 09:21:42 +10:00
Mohammad Hefny
5eb28be8e6
AP_HAL_Linux: define board features on Linux module
2021-09-10 08:17:37 +10:00
Mohammad Hefny
2cb13dcc7d
AP_HAL: define board features
2021-09-10 08:17:37 +10:00