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
Andrew Tridgell
dbe0f3c575
HAL_ChibiOS: fixed assert in reboot
...
with asserts enabled we can't sleep with interrupts off
7 years ago
Andrew Tridgell
79ca1e76c0
HAL_ChibiOS: improve reliability of reboot
7 years ago
Andrew Tridgell
afb36ec168
HAL_ChibiOS: run can loop much more often
...
this allows for much higher ESC and servo rates, as it gives more
changes for frames to get out
7 years ago
Peter Barker
b2a81405ea
AP_HAL_ChibiOS: move delay callback handling to base HAL Scheduler class
7 years ago
Andrew Tridgell
dcab51801c
HAL_ChibiOS: implement boost_end
...
this fixes problems with main thread priority and SPI bus delays on
fmuv3
7 years ago
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
7 years ago
Andrew Tridgell
67993d6e5c
HAL_ChibiOS: re-instate priority boost system
...
this adds back in the priority boost system for the main thread when
waiting for a IMU sample. This significantly improves scheduling
performance on very busy boards like a PH2.1
7 years ago
Andrew Tridgell
51c40a013b
HAL_ChibiOS: added IRQ save/restore to hal.scheduler
...
these are used by RPM driver
7 years ago
Francisco Ferreira
e4382c2232
AP_HAL_ChibiOS: fix CAN thread name
7 years ago
Andrew Tridgell
427e00dd41
HAL_ChibiOS: switched to system timer for AP_HAL::micros()
...
this uses the ChibiOS system timer instead of a separate GPT timer for
the core ChibiOS timer. The advantage is it saves us a timer, plus it
changes ChibiOS to use a 1MHz clock on its timer, which gives us
higher resolution for delays.
This has a remarkable effect on timing jitter, reducing it greatly
7 years ago