Andrew Tridgell
055ee6ba82
HAL_ChibiOS: increase monitor thread stack by 512
...
this is needed to ensure that the log writes of MON and WDOG don't
overflow monitor thread stack
3 years ago
Peter Barker
cfacb5d34d
AP_HAL_ChibiOS: split out a calculate_thread_priority method
4 years ago
Andy Piper
4e61ba2dc8
AP_HAL_ChibiOS: reduce stack sizes for rcout, uart_rx and storage.
4 years ago
Andy Piper
f9c5f9be00
AP_HAL_ChibiOS: make dshot DMA unlock event driven in order to allow unlocking from rcout thread
...
refactor rcout into separate thread and process all dshot requests there
move uart DMA completion to event model
process dshot locks in strick reverse order when unlocking
convert Shared_DMA to use mutexes
move UART transmit to a thread-per-uart
do blocking UART DMA transactions
do blocking dshot DMA transactions
trim stack sizes
cancel dma transactions on dshot when timeout occurs
support contention stats on blocking locking
move thread supression into chibios_hwdef.py
invalidate DMA bounce buffer correctly
separate UART initialisation into two halves
cleanup UART transaction timeouts
add @SYS/uarts.txt
move half-duplex handling to TX thread
correct thread statistics after use of ExpandingString
set unbuffered TX thread priority owner + 1
correctly unlock serial_led_send()
don't share IMU RX on KakuteF7Mini
observe dshot pulse time more accurately.
set TRBUFF bit for UART DMA transfers
deal with UART DMA timeouts correctly
don't deadlock on reverse ordered DMA locks
change PORT_INT_REQUIRED_STACK to 128
4 years ago
Andrew Tridgell
afbdd69165
AP_HAL_ChibiOS: adjust stack sizes
4 years ago
Andy Piper
07f199ea1a
AP_HAL_ChibiOS: rename system_initialized() and add is_system_initialized()
4 years ago
Andrew Tridgell
84eac7642b
HAL_ChibiOS: improved stack checking
4 years ago
Andrew Tridgell
408f8b3940
HAL_ChibiOS: added check for overwrite of nullptr on H7
...
the STM32H7 has 64k of ITCM memory at address zero. We allow
allocation of everything except the first 1024 bytes. This checks for
those reserved bytes being overwritte, which would indicate a write to
nullptr
4 years ago
Andy Piper
2bae080be4
AP_HAL_ChibiOS: increase RCIN stack size
5 years ago
Andrew Tridgell
7f429302ed
HAL_ChibiOS: increase monitor thread stack to 768 bytes
...
attempt to fix issue #14582
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
Mirko Denecke
b84dcd483d
AP_HAL_ChibiOS: remove unnecessary tabs and whitespaces
5 years ago
Andrew Tridgell
a7eb85e1c5
HAL_ChibiOS: cope with nesting of expected_delay_ms()
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
19526b5826
HAL_ChibiOS: implement scheduler->expect_delay_ms()
6 years ago
Peter Barker
17f643719a
AP_HAL_ChibiOS: add override keyword in many places
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
Francisco Ferreira
7278af05e0
AP_HAL_ChibiOS: remove CAN thread management
7 years ago
Andrew Tridgell
846418e5e9
HAL_ChibiOS: raise timer thread priority
...
needs to be above main for guaranteed DShot and oneshot output periods
7 years ago
Jonathan Challinger
f5f6220283
AP_HAL_ChibiOS: reflect changes to AP_HAL tonealarm interface
7 years ago
Andrew Tridgell
df3ce87e02
HAL_ChibiOS: implement thread_create()
7 years ago
Andrew Tridgell
e40457d98f
HAL_ChibiOS: avoid malloc in usbcfg
...
this avoids the need for malloc in the bootloader
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
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
Michael du Breuil
8374c5a4f3
AP_HAL_ChibiOS: Remove unused priority level
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
a2eec97325
HAL_ChibiOS: raised default SPI priority
...
this was causing transfer errors on the primary IMU of a PH2.1 when
fast sampling was enabled
7 years ago
Andrew Tridgell
51c40a013b
HAL_ChibiOS: added IRQ save/restore to hal.scheduler
...
these are used by RPM driver
7 years ago
Andrew Tridgell
b7c4dea9d3
HAL_ChibiOS: gain back 250usec in loop time
...
if we have already called delay_microseconds_boost() then we know
we've given up time to drivers, so we can avoid the extra delay in the
HAL
7 years ago
Mark Whitehorn
8b216cf182
AP_HAL_ChibiOS: add ToneAlarm thread
...
fmuv4 hwdef.dat: remove PWM label from buzzer output pin
add buzzer pin labeled ALARM
remove timer PWM from HAL_PWM_GROUPs
7 years ago
Andrew Tridgell
dce4c90467
HAL_ChibiOS: moved UART thread to UART driver
...
use an event model for triggering sends from tx complete DMA handler
for unbuffered uarts
7 years ago
Siddharth Purohit
f2e77ab773
AP_HAL_ChibiOS: add uavcan thread
7 years ago
Andrew Tridgell
8286486890
HAL_ChibiOS: drop default SPI priority to 179
7 years ago
bugobliterator
f7ac5aa079
HAL_ChibiOS: put rcin on a separate thread
7 years ago
Andrew Tridgell
b07c599bf2
Hal_Chibios: allow for faster INS sample times
...
we need higher priority on SPI and faster device loops
7 years ago
Andrew Tridgell
f14a847b97
HAL_ChibiOS: rename classes to remove 'Chibi'
...
it is redundent as all classes are in ChibiOS namespace, and makes the
code harder to read
7 years ago
Andrew Tridgell
8b6bab7b17
HAL_Chibios: added ChibiOS HAL
...
this is based on initial work by Sid, reset here for easier merging
7 years ago
Peter Barker
9cb23f6108
AP_HAL_VRBRAIN: make in_main_thread const and override
7 years ago
Lucas De Marchi
5ea1784838
global: remove AP_HAL::in_timerprocess()
...
This is not used and in the only places it would make sense would be
internally to the scheduler so remove it.
8 years ago
Murilo Belluzzo
0b86532b5c
Global: Remove '\r' character from all source code files
8 years ago
LukeMike
fde5992b6d
VRBRAIN: updated AP_HAL_VRBRAIN
9 years ago
Lucas De Marchi
44bc2eceb4
AP_HAL_VRBRAIN: replace header guard with pragma once
9 years ago
Lucas De Marchi
f39a6745d1
Global: remove unused _timer_pending from scheduler
9 years ago
Lucas De Marchi
9aa49cda93
Global: remove system_initializing() from scheduler
...
This is not used anymore.
9 years ago
Lucas De Marchi
bf24d0ef31
AP_HAL_VRBRAIN: use init() method without arguments
...
Override the init() method from parent class that doesn't have a
parameter since it's not used here.
9 years ago
Caio Marcelo de Oliveira Filho
cbaa57c7be
AP_HAL_VRBRAIN: remove unused functions
9 years ago