Andrew Tridgell
ce703cbed7
HAL_ChibiOS: fixed asserts in AnalogIn driver
...
when building with --enable-asserts on boards with ADC1 and ADC3
(eg. Holybro H7 based boards) we were triggering asserts on bad ADC
index. In order to preserve the asserts (which are good for catching
errors) we need to ifdef the relevant calls
2023-05-06 07:24:58 +10:00
bugobliterator
726dcda24f
AP_HAL_ChibiOS: add support for using ADC2 and ADC3 on H7
2023-04-26 18:04:00 +10:00
Iampete1
f7cba024c1
AP_HAL_ChibiOS: AnalogSource: check for valid pin
2021-10-06 18:42:51 +11:00
Andrew Tridgell
57e87b9820
HAL_ChibiOS: measure MCU temperature and ref voltage on H7
...
this uses ADC3 to measure the internal MCU temperature and the reference
voltage. This uses a currently unused BDMA channel
2021-08-25 07:11:31 +10:00
Iampete1
7c96522e44
AP_HAL_ChibiOS: add semaphore to AnalogIn::channel to make it thread safe
2021-03-30 10:44:43 +11:00
Peter Barker
b5d0480bed
AP_HAL_ChibiOS: log accumulated power status flags; all flags ever set
2020-07-21 09:12:14 +10:00
Peter Barker
50523ed0fa
AP_HAL_ChibiOS: remove pointless initialisations
...
These are never stack-allocated.
Only saves 16 bytes - but several lines
2020-05-10 18:03:36 +10:00
Peter Barker
e189b17efb
AP_HAL_ChibiOS: remove unused AnalogIn fields
2020-01-21 10:06:18 +11:00
Mirko Denecke
b84dcd483d
AP_HAL_ChibiOS: remove unnecessary tabs and whitespaces
2019-10-21 08:01:56 +11:00
Michael du Breuil
e19f0ef238
AP_HAL_ChibiOS: Remove set_stop_pin from AnalogSource
2019-09-04 09:54:50 +10:00
Andrew Tridgell
bbd25350eb
HAL_ChibiOS: support ChibiOS kernel major 6
...
preparing for STM32H7 support
2019-02-26 16:18:26 +11:00
Peter Barker
17f643719a
AP_HAL_ChibiOS: add override keyword in many places
2018-11-08 11:30:12 +11:00
Andrew Tridgell
af4340d1d1
HAL_ChibiOS: enable analog input on IOMCU
2018-10-30 13:00:48 +11:00
Andrew Tridgell
4416404137
HAL_ChibiOS: removed hal.util->new_semaphore()
...
replaced with HAL_Semaphore
2018-10-17 12:54:22 +11:00
Andrew Tridgell
340f1b43e6
HAL_ChibiOS: fixed RSSI voltage from IOMCU
2018-09-15 16:08:32 +10:00
Michael du Breuil
a832bdfd04
AP_HAL_ChibiOS: fix race condition on analog reading
2018-06-06 07:16:58 +10:00
Andrew Tridgell
8b1db792ee
HAL_ChibiOS: ensure ADC memory is aligned for DMA access
2018-06-06 07:15:41 +10:00
Andrew Tridgell
e4ce2f532b
HAL_ChibiOS: make smaller builds possible
...
this allows for much smaller builds when you disable a lot of
options. This is part of an effort to create a bootloader of less than
16k using ChibiOS
2018-04-12 11:50:44 +10:00
Andrew Tridgell
b4aeffbaed
HAL_ChibiOS: added power status flags reporting
2018-04-09 15:32:04 +10:00
Andrew Tridgell
f14a847b97
HAL_ChibiOS: rename classes to remove 'Chibi'
...
it is redundent as all classes are in ChibiOS namespace, and makes the
code harder to read
2018-01-15 11:46:02 +11:00
Andrew Tridgell
b62773bbad
HAL_ChibiOS: improved auto-config of ADC pins
...
ADC config now based on pin_scaling array
2018-01-15 11:46:02 +11:00
Andrew Tridgell
8b6bab7b17
HAL_Chibios: added ChibiOS HAL
...
this is based on initial work by Sid, reset here for easier merging
2018-01-15 11:46:02 +11:00