Andrew Tridgell
ee50eaf3c9
HAL_ChibiOS: go via AP_Filesystem for mount/unmount operations
...
this fixes a deadlock where a mount/unmount could access FATFS without
holding the AP_Filesystem semaphore
4 years ago
Andrew Tridgell
e471b23f58
HAL_ChibiOS: add a max quota of GPIO interrupts
...
This implements a max quota of GPIO interrupts per 100ms period to
prevent high interrupt counts from consuming all CPU and causing a
lockup. The limit is set as 10k interrupts per 0.1s period. That limit
should be high enough for all reasonable uses of GPIO interrupt
handlers while being below the level that causes significant CPU loads
and flight issues
This addresses issue #15384
4 years ago
Siddharth Purohit
cdf8e369f1
AP_HAL_ChibiOS: create UAVCAN agnostic CANIface driver
...
HAL_ChibiOS
5 years ago
Andrew Tridgell
2200dfefdb
HAL_ChibiOS: during setup() we expect delays
...
this may fix occasional internal errors on SPI during startup
5 years ago
Peter Barker
48da4e523c
AP_HAL_ChibiOS: create and use INTERNAL_ERROR macro so we get line numbers
5 years ago
Andrew Tridgell
0ef66659ce
HAL_ChibiOS: log WDOG message once a second
...
this copes with delayed mounting of the microSD, making it much more
likely we log the critical data
5 years ago
Andrew Tridgell
09477b2dfe
HAL_ChibiOS: shorted thread names
...
changes names so threads can be distinguished by first 4 bytes
5 years ago
Andrew Tridgell
8dabd6cefc
HAL_ChibiOS: expect a long delay on flash page erase
...
this prevents the display of errors on flash page erase
5 years ago
Andrew Tridgell
65cd223023
HAL_ChibiOS: implement in_expected_delay()
5 years ago
Stephen Dade
e1e7c6ea8a
AP_HAL: Ensure scheduler does not log if there is no logger
5 years ago
Andrew Tridgell
6b841e781c
HAL_ChibiOS: pat watchdog immediately in expect_delay_ms()
...
this fixes a watchdog issue on AP_Periph if we don't have a timer
thread
5 years ago
Mirko Denecke
b84dcd483d
AP_HAL_ChibiOS: remove unnecessary tabs and whitespaces
5 years ago
Andrew Tridgell
06b272705e
HAL_ChibiOS: run RCIN thread at 1kHz
...
this gives fast enough response for SBUS parsing on a UART
6 years ago
Andrew Tridgell
16bdaaa1af
HAL_ChibiOS: added support for STM31F10x for AP_Periph
6 years ago
Andrew Tridgell
5e40921b42
HAL_ChibiOS: fixed reboot hold in bootloader
...
thanks to Tom for noticing this
6 years ago
Andrew Tridgell
898150e460
HAL_ChibiOS: cope with calling delay_microseconds_boost() multiple times
...
needed for updated IMU wait code
6 years ago
Andrew Tridgell
59678840a8
HAL_ChibiOS: log SPI and I2C counters
6 years ago
Andrew Tridgell
0708b65c2d
AP_HAL_ChibiOS: added const for PersistentData
6 years ago
Andrew Tridgell
a7eb85e1c5
HAL_ChibiOS: cope with nesting of expected_delay_ms()
6 years ago
Andrew Tridgell
8d0bca6ba9
HAL_ChibiOS: log mavlink IDs and semaphore lines for watchdog
...
this gives a better chance of tracking down a hang
6 years ago
Andrew Tridgell
d7a0eb42ee
HAL_ChibiOS: added logging of watchdog data
...
log MON msgs in the leadup to a watchdog, and log a WDOG message after
a watchdog reset
6 years ago
Andrew Tridgell
ce9e9d8670
HAL_ChibiOS: end scheduler boost on expected delay
...
we want timer thread to be higher priority than main thread while in a
long operation
6 years ago
Andrew Tridgell
19526b5826
HAL_ChibiOS: implement scheduler->expect_delay_ms()
6 years ago
Tom Pittenger
91b0650765
AP_HAL_ChibiOS: rename dataflash to logger
6 years ago
Andrew Tridgell
64681cb05c
HAL_ChibiOS: allocate threads from any heap
...
this fixes a failure on MatekF405-Wing where it fails to allocate the
SPI thread for the IMU
6 years ago
Andrew Tridgell
57c573552c
HAL_ChibiOS: check for logger instance before use
6 years ago
Peter Barker
6fc76a32af
GLOBAL: use AP::logger() and strip redundant Log_ from methods
6 years ago
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
6 years ago
Andrew Tridgell
ed3194d095
HAL_ChibiOS: fixed timer reset
6 years ago
Andrew Tridgell
960d4c0a80
HAL_ChibiOS: allow mount of microSD after boot
...
when disarmed, try to mount sd card every 3s
6 years ago
Andrew Tridgell
6c761fa864
HAL_ChibiOS: shutdown IOMCU on reboot
6 years ago
Andrew Tridgell
af4340d1d1
HAL_ChibiOS: enable analog input on IOMCU
6 years ago
Andrew Tridgell
15141a6a5a
HAL_ChibiOS: allow for no RCIN or TIMER thread
...
saves memory on iomcu
6 years ago
Michael du Breuil
11ab6c59e1
AP_HAL_ChibiOS: Handle scripting priority
6 years ago
Siddharth Purohit
b9319cae56
HAL_ChibiOS: disable segments relating to unused features
6 years ago
Michael du Breuil
f6cb196d53
AP_HAL_ChibiOS: Remove unimplemented force_safety_no_wait()
...
ChibiOS doesn't implement the method, so there is nothing to be gained
by calling the function.
7 years ago
Francisco Ferreira
7278af05e0
AP_HAL_ChibiOS: remove CAN thread management
7 years ago
Siddharth Purohit
395c48933c
HAL_ChibiOS: move tto using updated time conversion API
7 years ago
Jonathan Challinger
f5f6220283
AP_HAL_ChibiOS: reflect changes to AP_HAL tonealarm interface
7 years ago
Andrew Tridgell
a489c93001
HAL_ChibiOS: removed restriction on delay in threads
...
threads other than the main thread should be able to sleep, but not
call the delay callback
7 years ago
Andrew Tridgell
df3ce87e02
HAL_ChibiOS: implement thread_create()
7 years ago
Andrew Tridgell
2b7b499c63
HAL_ChibiOS: added support for RTC sig for fast boot
7 years ago
Andrew Tridgell
a0b4553a26
HAL_ChibiOS: fixed bootloader build issue
7 years ago
Alexander Malishev
95f3eb5ab6
HAL_ChibiOS: stop logging before reboot
7 years ago
Andrew Tridgell
e11b3f2f0e
HAL_ChibiOS: run CAN thread at 3KHz
...
at 10KHz we were causing occasional CRC errors on the UART to IOMCU
7 years ago
Eugene Shamaev
2055f264e5
AP_HAL_ChibiOS: helper func
7 years ago
Michael du Breuil
1123023a6f
AP_HAL_ChibiOS: Wrap process registration with a semaphore
7 years ago
Michael du Breuil
4a9fe1745f
AP_ChibiOS: Remove timer process suspension interface
7 years ago
Andrew Tridgell
f390e35c99
HAL_ChibiOS: use port_disable in reboot
...
this provides a more reliable way to stop all interrupts
7 years ago
Andrew Tridgell
ea37cede28
HAL_ChibiOS: stop sdcard interface on reboot
7 years ago