Andrew Tridgell
8dbad82c8a
AP_HAL_ChibiOS: use NEW_NOTHROW for new(std::nothrow)
2024-06-04 09:20:21 +10:00
Hayden Donald
a81f2785aa
AP_HAL_ChibiOS: Use correct pin config for ADC2 and ADC3
2024-01-24 08:03:24 +11:00
bugobliterator
b17d864d1a
AP_HAL_ChibiOS: fix set_pin and _pin_scalar methods for ADC2 and ADC3
2024-01-22 20:35:16 +11:00
subashchandar
2207f7bb14
AP_HAL_ChibiOS: change adc sampling rate
...
STm32l4r5 adc sampling rate.
2023-09-17 21:02:42 +10:00
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
ac8a447bbf
AP_HAL_ChibiOS: add asserts to AnalogIn
2023-04-26 18:04:00 +10:00
bugobliterator
240556acc5
AP_HAL_ChibiOS: ignore the settings for ANALOG_INPUT_NONE
2023-04-26 18:04:00 +10:00
bugobliterator
726dcda24f
AP_HAL_ChibiOS: add support for using ADC2 and ADC3 on H7
2023-04-26 18:04:00 +10:00
tsubashmail@gmail.com
ae9e15ade5
HAL_ChibiOS: port for STM32L4+ processor
...
Added support for stm32l4+ processor
- Added scripts for hwdef generation
- Tested in custom hardware prototype (stm32l4r5vit6)
- Tested all peripherals and auto pilot modes.
2023-04-14 07:48:56 +10:00
murata
e007b21f9e
AP_HAL_ChibiOS: Console output can be disabled
2022-05-17 09:53:06 +10:00
Andrew Tridgell
946a6ac4d0
HAL_ChibiOS: fixed RSSI from IOMCU analog pin 103
...
need to check new pin not old pin
2022-05-09 07:25:40 +10:00
Andrew Tridgell
93031e297d
HAL_ChibiOS: fixed min/max inversion in MCU voltage logging
2022-03-08 11:33:21 +11:00
TunaLobster
11f98f7421
AP_HAL_ChibiOS: fix ADC scaling on IOMCU
2021-11-16 14:12:43 +11:00
Iampete1
f7cba024c1
AP_HAL_ChibiOS: AnalogSource: check for valid pin
2021-10-06 18:42:51 +11:00
Andrew Tridgell
0212e23cd3
HAL_ChibiOS: added support for STM32L496 MCUs
...
good MCU for AP_Periph
2021-09-24 18:08:00 +10:00
Andrew Tridgell
e9427f1dae
HAL_ChibiOS: removed remnants of CHIBIOS_ADC_MAVLINK_DEBUG
2021-08-25 07:11:31 +10:00
Andrew Tridgell
5bacd35eaa
HAL_ChibiOS: review fixes
2021-08-25 07:11:31 +10: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
Andrew Tridgell
9990404e64
HAL_ChibiOS: fixed G4 analog input build
...
use right resolution in ADC peripheral for ADCv3
2021-04-14 13:11:58 +10:00
Andrew Tridgell
ca948171fe
HAL_ChibiOS: fixed ADC error on revXY STM32H7 boards
...
with the new ChibiOS revision we were configuring for newer revisions
of the H7, which meant that we changed the ADC config. This broke ADC
readings on revX and revY H7 MCUs.
This PR fixes it in two ways:
1) change ChibiOS config to assume XY config chips
2) use 16 bit ADC for H7, which means the chip rev doesn't matter,
and also gives us 16x the resolution for ADC readinga, so we can
read smaller voltage and current values
2021-04-05 11:01:03 +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
Andrew Tridgell
bac9b27a3f
HAL_ChibiOS: enable analogin on G4
2021-03-23 12:01:20 +11:00
Tom Pittenger
d1e6b0befb
AP_HAL_ChibiOS: Add ADC1 support to STM32F3
...
This is useful for AP_Periph battery monitoring
2021-02-04 16:30:38 -08:00
Andrew Tridgell
25bc128248
HAL_ChibiOS: fixed periph overpower ifdef
...
fixes overcurrent logging on several boards
2020-10-13 17:58:30 +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
Andrew Tridgell
863807c9fb
HAL_ChibiOS: use more consistent naming for power VALID pins
...
this uses _VALID for an active high pin and _nVALID for an active low
pin. It uses _OC for active high overcurrent and _nOC for active low
overcurrent
2020-06-04 09:51:27 +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
Mirko Denecke
b84dcd483d
AP_HAL_ChibiOS: remove unnecessary tabs and whitespaces
2019-10-21 08:01:56 +11:00
Peter Barker
9fb715692e
AP_HAL_ChibiOS: correct include of mavlink header for analog debug
2019-09-25 12:22:27 +10:00
Michael du Breuil
95bca05322
AP_HAL_ChibiOS: Only include MAVLink when using the MAVLink debugging
2019-09-19 10:48:25 +09:00
Andrew Tridgell
d1565a96c5
HAL_ChibiOS: wrap cacheBuffer functions
...
needed to avoid problem with end() method in UARTDriver shadowing with
F7 implementation of cache macros
2019-08-27 15:40:43 +10:00
Alexey Kozin
e5988f7153
AP_HAL_ChibiOS: fix voltage sensor connected to fmu adc
2019-07-02 06:42:11 +10:00
Andrew Tridgell
d368d95aa7
HAL_ChibiOS: removed unusued AP_Common/Semaphore.h
2019-05-15 15:33:48 +10:00
Andrew Tridgell
4deb2c38f6
HAL_ChibiOS: fixed brick2 valid status in POWR flags for fmuv5
...
and fixed sense of VBUS
2019-05-03 10:32:41 +10:00
Andrew Tridgell
6422068e6b
HAL_ChibiOS: fixed analog input on H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
599a1a3d67
HAL_ChibiOS: adapt analog driver for H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
bbd25350eb
HAL_ChibiOS: support ChibiOS kernel major 6
...
preparing for STM32H7 support
2019-02-26 16:18:26 +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
Andrew Tridgell
490d6eea20
HAL_ChibiOS: fixed ADC bug
...
this caused bad analog readings when the number of channels being read
was more than the number of hw channels
thanks to @vierfuffzig for reporting!
2018-09-12 07:10:04 +10:00
Lucas De Marchi
668c941717
Global: use new version of ARRAY_SIZE
2018-08-04 15:31:55 +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
2493cdbcb6
HAL_ChibiOS: switch to new bouncebuffer system
...
this removes the dma_flush and dma_invalidate methods and uses a
common bouncebuffer system for all CPU types. This enables microSD
support on STM32F7
2018-06-06 07:15:41 +10:00
Andrew Tridgell
f25b95f287
HAL_ChibiOS: fixed array length in ADC debug code
2018-06-06 07:15:41 +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
edb831653f
HAL_ChibiOS: added dma_flush and dma_invalidate operations
...
these are needed to manage the data cache on the STM32F7
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
d191b37520
HAL_ChibiOS: cope with having no ADC inputs
2018-02-07 20:33:45 +11:00