Siddharth Purohit
d484477a99
AP_HAL_ChibiOS: move to using PLL2_R_CK for QSPI
4 years ago
Andrew Tridgell
4cebcede31
HAL_ChibiOS: switched to fix allocation for BMDA streams on H7
...
this avoids issues with BDMA stream assignments due to bugs found
while testing boards with both I2C4 and SPI6
4 years ago
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
4 years ago
Siddharth Purohit
245f9d21b3
AP_HAL_ChibiOS: update clock config for FDCAN and External Flash
4 years ago
Siddharth Purohit
abc26d1993
AP_HAL_ChibiOS: add QSPI Device Driver in HAL
4 years ago
Andrew Tridgell
8764d69e2c
HAL_ChibiOS: default SDMMC clock to 12.5MHz max on H7
...
this makes microsd considerably more reliable
4 years ago
Andrew Tridgell
61c829d624
HAL_ChibiOS: only use SRAM4 for DMA for now
...
we can enable others when we have an allocation interface that
specifies the peripheral type
4 years ago
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
4 years ago
Andy Piper
e1d71486e4
AP_HAL_ChibiOS: build fixes for ChibiOS 20.3.x
4 years ago
Andrew Tridgell
5b59445471
AP_HAL_ChibiOS: fixes for build with 20.3.x ChibiOS
4 years ago
Andrew Tridgell
84bd59a7bb
HAL_ChibiOS: support H7 with no crystal
5 years ago
Andrew Tridgell
db642717be
HAL_ChibiOS: fixed clock for FDCAN to be below 80MHz
...
we were running at 100MHz, which is out of spec
5 years ago
Andrew Tridgell
8e977183fe
HAL_ChibiOS: added mRoNexus
5 years ago
Andrew Tridgell
9e0edba31d
HAL_ChibiOS: raised timer clocks to 200MHz
...
this gives more flexibility in setting up timers for DShot
5 years ago
Andrew Tridgell
fced7d78fc
HAL_ChibiOS: fixed clock src for I2C4 on H7
5 years ago
Andrew Tridgell
f8cfbb8062
HAL_ChibiOS: added ISR limit on I2C
...
this will prevent any possibility of an I2C interrupt storm. This is
designed to address the most likely cause of #11642
6 years ago
Andrew Tridgell
160de969a5
HAL_ChibiOS: simplify H7 clock tree setup
...
and push more peripherals to max of 100MHz
6 years ago
Andrew Tridgell
5bcfe41d1f
HAL_ChibiOS: push H7 clock to 400MHz
6 years ago
Andrew Tridgell
4c12ba4c2c
HAL_ChibiOS: fixed SDMMC IRQ priority
6 years ago
Andrew Tridgell
e192bc6c10
HAL_ChibiOS: adjust H7 clocks, and enabled SDMMC
6 years ago
Andrew Tridgell
f8aeeb0333
HAL_ChibiOS: adjust clock tree to be more consistent
...
use 96MHz for all peripheral buses
6 years ago
Andrew Tridgell
5dd82f1d63
HAL_ChibiOS: adjust 16MHz HSE settings for H743 (CubeH7)
6 years ago
Andrew Tridgell
b0f4494c4a
HAL_ChibiOS: fixed DMA on SPI for Pixhawk4Pro
6 years ago
Andrew Tridgell
77d4e1f796
HAL_ChibiOS: removed ID_ANY streams for H7
...
use generated map instead
6 years ago
Andrew Tridgell
46787fe7d8
HAL_ChibiOS: adjust clocks for H743
6 years ago
Andrew Tridgell
37bcd6e7d8
HAL_ChibiOS: default to timer 5 for H7
6 years ago
Andrew Tridgell
4b01e2c3b3
HAL_ChibiOS: fixed clock tree for no LSE on H7
6 years ago
Andrew Tridgell
52b47e499b
HAL_ChibiOS: fixed H7 clock tree for ADC driver
6 years ago
Andrew Tridgell
1fa0a2eeca
HAL_ChibiOS: fixed peripheral enables on H7
6 years ago
Andrew Tridgell
c2746ca9f9
HAL_ChibiOS: simplify H7 hwdef.dat
6 years ago
Andrew Tridgell
227ecc53ac
HAL_ChibiOS: support mcuconf for STM32H7 MCU
6 years ago