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
982cff0695
AP_HAL_ChibiOS: make all semaphores recursive
...
the cost is very similar and this prevents an easy coding error which
can occur on less used code paths
5 years ago
Andrew Tridgell
2b7bffa906
HAL_ChibiOS: adjust dma reserve allocation
...
use larger target and allow for smaller allocation
5 years ago
Andrew Tridgell
56985f8c33
HAL_ChibiOS: added checking on bouncebuffer allocation
...
fail operations if DMA bouncebuffer alloc fails
5 years ago
Andrew Tridgell
fced7d78fc
HAL_ChibiOS: fixed clock src for I2C4 on H7
5 years ago
Andrew Tridgell
8ffd1050eb
HAL_ChibiOS: fixed build on STM32F3
5 years ago
Andrew Tridgell
faf34970e1
HAL_ChibiOS: automatically control pullup/pulldown on inverted UARTs
...
this makes setup of sport telemetry much easier
5 years ago
Andrew Tridgell
f732a482fe
HAL_ChibiOS: support wider range of clock frequencies
5 years ago
Andrew Tridgell
4f429e6c5a
HAL_ChibiOS: fixed handling of 16bit timer wrap
...
this fixes #12948
5 years ago
Andrew Tridgell
ef993f380f
HAL_ChibiOS: use system_halt_hook()
5 years ago
Andrew Tridgell
c1575654e2
HAL_ChibiOS: added optional debug code for hardfaults and panics
...
this implements a soft-serial print function that can be used to get
debug out on a GPIO pin in a panic
5 years ago
Andrew Tridgell
a90a2e20dc
HAL_ChibiOS: enable CAN callbacks
...
this allows for much more reliable CAN comms in AP_Periph
5 years ago
Andrew Tridgell
bc1de7a208
HAL_ChibiOS: support STM32F3xx MCUs
5 years ago
Andrew Tridgell
b5af1edf0d
HAL_ChibiOS: moved app_descriptor to start of flash
...
this prevents the bootloader from finding it's own image as a false
posititve in searching for the app_descriptor
5 years ago
Andrew Tridgell
d1bc0f236d
HAL_ChibiOS: added pragma once for watchdog header
5 years ago
Andrew Tridgell
fc8d9e8af5
HAL_ChibiOS: added RTC_BOOT_FWOK value for RTC reboot register
...
this is used in CAN firmware to know if the main app firmware has run
for long enough to be considered good
5 years ago
Andrew Tridgell
e6cb35090c
HAL_ChibiOS: fixed page size for STM31F105 flash
5 years ago
Andrew Tridgell
44f895ab16
HAL_ChibiOS: fixed for ZubaxGNSS build
5 years ago
Andrew Tridgell
91e8752c17
HAL_ChibiOS: wrap more libc functions
...
this saves a few k of flash as it avoids linking libc versions of some
functions
6 years ago
Andrew Tridgell
3166f84954
HAL_ChibiOS: added vsnprintf wrapper
...
this allows us to use a common snprintf implementation
6 years ago
Andrew Tridgell
0ffe2e75be
HAL_ChibiOS: fixed warnings
6 years ago
Andrew Tridgell
9d760a2956
HAL_ChibiOS: disable re-entrancy in FATFS
...
not needed now we have a semaphore in AP_Filesystem
6 years ago
Andrew Tridgell
bf79b65e07
HAL_ChibiOS: simplify stubs code
6 years ago
Andrew Tridgell
d1565a96c5
HAL_ChibiOS: wrap cacheBuffer functions
...
needed to avoid problem with end() method in UARTDriver shadowing with
F7 implementation of cache macros
6 years ago
Andrew Tridgell
b867ef35c0
HAL_ChibiOS: use AP_Filesystem API
6 years ago
Andrew Tridgell
63f39c2bd6
HAL_ChibiOS: fixed build of iomcu firmware
6 years ago
Andrew Tridgell
5cbe85ee19
HAL_ChibiOS: allow for ADC and clock overrides
6 years ago
Andrew Tridgell
cbc83d68cd
HAL_ChibiOS: allow for CAN enable override on F4
6 years ago
Andrew Tridgell
fb68fa8bc9
HAL_ChibiOS: fixed typo for 512k F4 parts
6 years ago
Andrew Tridgell
16bdaaa1af
HAL_ChibiOS: added support for STM31F10x for AP_Periph
6 years ago
Andrew Tridgell
ffe0f338d3
HAL_ChibiOS: enable utime() API
6 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
Siddharth Purohit
2f0d1336e6
HAL_ChibiOS: add support for dual usd cdc
6 years ago
Andrew Tridgell
dbfe6b8019
HAL_ChibiOS: implement persistent_data for watchdog
...
this is a much simpler approach to persistent data
6 years ago
Andrew Tridgell
6333494d99
HAL_ChibiOS: disable peripheral power on boot on fmuv3
...
then enable after 100ms, and let settle for 20ms. This is to fix an
issue with peripheral power on consistency with all fmuv3 boards
Thanks to Philip for the suggestion
6 years ago
Michael du Breuil
a4d9853f1d
AP_HAL_ChibiOS: Actually enable the wrapper on remove
6 years ago
Andrew Tridgell
508aae8f2a
HAL_ChibiOS: added save/restore of attitude in backup registers
6 years ago
Andrew Tridgell
730982b3c4
HAL_ChibiOS: fixed build with older gcc
6 years ago
Andrew Tridgell
2778a1b01e
HAL_ChibiOS: save/restore home position in backup registers
...
# Conflicts:
# libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c
6 years ago
Andrew Tridgell
f0f36c6237
HAL_ChibiOS: fixed watchdog timeout setting
6 years ago
Andrew Tridgell
9ca67dc811
HAL_ChibiOS: implement was_watchdog_armed()
6 years ago
Andrew Tridgell
1acb7e977f
HAL_ChibiOS: added ability to restore safety state on watchdog reset
6 years ago
Andrew Tridgell
54cbf8ea9e
HAL_ChibiOS: change to 2s timeout on watchdog
...
a bit more of a safety net against false positives for stable release
6 years ago
Andrew Tridgell
58aca561fd
HAL_ChibiOS: fixed watchdog on H7
6 years ago
Andrew Tridgell
19526b5826
HAL_ChibiOS: implement scheduler->expect_delay_ms()
6 years ago
Andrew Tridgell
a5309b3afa
HAL_ChibiOS: record reason for reset
...
allows us to tell if reset was due to watchdog
6 years ago
Andrew Tridgell
c09df1ea7b
HAL_ChibiOS: added IWDG watchdog support
...
this resets the MCU if the main loop stops for 1 second
6 years ago
Andrew Tridgell
26d1371d25
HAL_ChibiOS: separate out DMA allocation for sdcard IO
...
this fixes an issue with DMA to SPI6 on STM32H7. On the H7 SRAM4 can
be used for DMA and BDMA to all devices except for SDMMC which uses
IDMA.
by separating out DMA of sdcard data from other data we can arrange
for DMA to all devices to work
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