willpiper
94bdca7f6f
AP_HAL_ChibiOS: tidy up beastF7 DMA channels
4 years ago
Andrew Tridgell
f0d6b79e8a
HAL_ChibiOS: fixed skyviper builds with BMM150
4 years ago
Peter Barker
cfacb5d34d
AP_HAL_ChibiOS: split out a calculate_thread_priority method
4 years ago
Iampete1
7c96522e44
AP_HAL_ChibiOS: add semaphore to AnalogIn::channel to make it thread safe
4 years ago
Andrew Tridgell
07313ae71d
HAL_ChibiOS: fixed 2nd CAN inferface on F4/F7
...
CAN1_TX_IRQn is an enum not a defined. This was broken by the recent
change to support different CAN ordering
4 years ago
Andrew Tridgell
88e277420f
AP_HAL_ChibiOS: removed assert calls
...
these waste flash space and do not do us any good
4 years ago
Andrew Tridgell
2d4dfe8a2a
HAL_ChibiOS: fixed (unused) FF_FS_TIMEOUT
...
this change was harmless as we don't define FF_FS_REENTRANT
4 years ago
Andrew Tridgell
ffb2876f58
HAL_ChibiOS: disable unused ChibiOS features
4 years ago
Andrew Tridgell
744a2fe535
HAL_ChibiOS: use uint32_t for bit timing in passthru
...
we should not use systime_t as it may be 16 bit
4 years ago
Andrew Tridgell
c3d16cf2e2
HAL_ChibiOS: use defines for G4 messageram
...
review fix
4 years ago
Andrew Tridgell
b4e4d48e52
HAL_ChibiOS: switch OMNIBUSF7V2 timer for RCIN
...
this avoids a conflict with shared interrupt on TIM1
4 years ago
Andrew Tridgell
ff31e10d9e
HAL_ChibiOS: ensure that RCIN DMA channel is not shared
...
RCIN DMA cannot be shared as it runs all the time
4 years ago
Andrew Tridgell
2842730868
HAL_ChibiOS: fixed F3 CAN build
4 years ago
Andrew Tridgell
2fc7ea1a8b
HAL_ChibiOS: added G4-ESC hwdef
4 years ago
Andrew Tridgell
353eca79b6
HAL_ChibiOS: fixed 32/64 micros bug in CAN select()
4 years ago
Andrew Tridgell
bac9b27a3f
HAL_ChibiOS: enable analogin on G4
4 years ago
Andrew Tridgell
ac9e6ba86d
HAL_ChibiOS: fix label for CCM on G4
4 years ago
Andrew Tridgell
7496b8bff5
HAL_ChibiOS: fixed DMAR register offset
...
use offsetof() instead of a magic value
4 years ago
Andrew Tridgell
4f10565f82
HAL_ChibiOS: fixed CANFD build on H7
4 years ago
Andrew Tridgell
f2ac61f6ba
HAL_ChibiOS: enable DShot on G4
4 years ago
Andrew Tridgell
f57b1b9c4b
HAL_ChibiOS: support logical/physical CAN bus mapping
...
allow for first CAN interface to be CAN2 or CAN3
4 years ago
Andrew Tridgell
2f7ff778be
HAL_ChibiOS: fixed bug in DMA resolver
...
idsets can be empty for a peripheral
4 years ago
Andrew Tridgell
439a944801
HAL_ChibiOS: added support for STM32G474 MCU
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
QioTek
fe30612bb0
AP_HAL_ChibiOS: release ICM20649 reserve sensor
...
BMI055 & BMI088 out of stock, release ICM20649 reserve sensor
4 years ago
Andrew Tridgell
bbd32844d1
HAL_ChibiOS: switch more boards to 32k FRAM
...
this enables the parameter backup/restore on those boards, as well as
more waypoints
This is in response to a report that CUAVv5 boards can suffer from the
parameter reset issue
4 years ago
Andy Piper
bb270014e7
AP_HAL_ChibiOS: make sure LEDs get a DMA channel on MatekH743-bdshot
4 years ago
Andy Piper
968d05a637
AP_HAL_ChibiOS: allow further LED channels to be allocated at the same length
4 years ago
Andrew Tridgell
8a8db85b9c
HAL_ChibiOS: fixed build of f103-trigger fw
4 years ago
Lava Chemist
4a52f945db
AP_HAL_ChibiOS: Add FlywooF745
4 years ago
Andy Piper
d6575fb6ad
AP_HAL_ChibiOS: bdshot configs for CubeYellow and mRoControlZeroH7
4 years ago
Andrew Tridgell
4fbdb59398
HAL_ChibiOS: prevent sharing the same DMA stream on TIMn_UP channels
...
this avoids an issue with DShot where we run the same DMA stream on
two timers at once
4 years ago
Andy Piper
6cb263056d
AP_HAL_ChibiOS: build fix for iomcu
4 years ago
Andy Piper
d0e4d510cf
AP_HAL_ChibiOS: order PWM timers by DMA UP stream id to prevent deadlocks in dshot
4 years ago
Andrew Tridgell
14791c335b
HAL_ChibiOS: fixed build of f3 boards without PWM out
4 years ago
Andrew Tridgell
243cf2199d
HAL_ChibiOS: disable shared DMA on IOMCU
...
this saves about 600 bytes of ram
4 years ago
Andrew Tridgell
c23f61b79a
HAL_ChibiOS: set internal error on panic
4 years ago
Andrew Tridgell
eec05c1f48
HAL_ChibiOS: fixed a race and null ptr deref in dshot
...
if a dshot is cancelled then the waiter can be nullptr
4 years ago
Andy Piper
b102391163
AP_HAL_ChibiOS: don't send rcout events without rcout thread
4 years ago
Mirko Denecke
edc2b0c94e
AP_HAL_ChibiOS: fix copy and paste typo
4 years ago
Andrew Tridgell
7af20e9ea3
HAL_ChibiOS: increase H7 serial buffer sizes
...
this takes better advantage of the new UART code. Log download over
USB gets to 730 kbyte/s. For comparison, with the 4.0 code on the same
H7 we get about 300 kbyte/s
4 years ago
Andrew Tridgell
3b88a3273b
HAL_ChibiOS: adjust up uart tx stack size
...
lowest was showing 80 bytes free, which is too close to the 64 byte
level where we trigger an internal error
4 years ago
Andrew Tridgell
5e0f175223
HAL_ChibiOS: adjust UART buffer sizes for new UART code
...
this gains about 20k of RAM, and has almost no impact on log download
speed at 921600 on a F427. The improved threading means we can afford
to have smaller buffers
4 years ago
Andy Piper
4e61ba2dc8
AP_HAL_ChibiOS: reduce stack sizes for rcout, uart_rx and storage.
4 years ago
Andy Piper
94de238751
AP_HAL_ChibiOS: disable RCOUT thread on iomcu and rebuild iomcu.
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
mateksys
7eb4e9b370
AP_Periph: set PORT defaults for F405-MatekGPS
4 years ago
mateksys
97c2b7228e
AP_Periph: Matek F303 and F405 AP_Periph use DSP310 baro
4 years ago
Andy Piper
4c2cbdab8d
AP_HAL_ChibiOS: only setup half-duplex for receive when transmit is fully over
4 years ago