bugobliterator
8651d99de6
HAL_ChibiOS: move to using parameter STORAGE_FLASH_PAGE instead of define
2021-10-30 19:24:57 +11:00
bugobliterator
70f606c480
AP_HAL_ChibiOS: restrict crash dump mechanisms only on boards with 2M flash
2021-10-30 19:24:57 +11:00
bugobliterator
909f59f0e0
HAL_ChibiOS: fix build with boards without HAL_CRASH_SERIAL_PORT
2021-10-30 19:24:57 +11:00
bugobliterator
a6b2018cbf
HAL_ChibiOS: fix build and serial crash dump for F4 based boards
2021-10-30 19:24:57 +11:00
bugobliterator
7d199f3e51
HAL_ChibiOS: record info into watchdog as well
2021-10-30 19:24:57 +11:00
bugobliterator
13c83f7010
HAL_ChibiOS: remove build of Crash dump to flash methods when !defined(HAL_CRASH_DUMP_FLASHPAGE)
2021-10-30 19:24:57 +11:00
bugobliterator
66b8b9cf74
HAL_ChibiOS: add support for dumping crash logs to flash page
2021-10-30 19:24:57 +11:00
bugobliterator
b2ffc12092
HAL_ChibiOS: define flash page for dumping crash log
2021-10-30 19:24:57 +11:00
bugobliterator
29568a23ae
HAL_ChibiOS: fetch crash_dump stored in flash
2021-10-30 19:24:57 +11:00
bugobliterator
bd08d2d257
HAL_ChibiOS: move crashcatcher methods out from system.cpp into hwdef common
2021-10-30 19:24:57 +11:00
bugobliterator
7c96f295b3
HAL_ChibiOS: use CrashCatcher's hardfault method to log and dump crashes
2021-10-30 19:24:57 +11:00
bugobliterator
69f53a6188
HAL_ChibiOS: add defines for CrashCatcher methods to use
2021-10-30 19:24:57 +11:00
bugobliterator
c32bd845f2
HAL_ChibiOS: build crashcatcher lib alongside chibios
2021-10-30 19:24:57 +11:00
Andrew Tridgell
a0b662f161
hwdef: fixed reported flash on boards with storage at end of flash
...
this was in hwdef-bl.dat but had been left out of hwdef.dat which led
to flash_free being wrong in apj file
2021-10-29 18:28:36 +11:00
Andrew Tridgell
b94d6b064f
HAL_ChibiOS: convert some hwdef.dat to unix line endings
2021-10-26 15:56:53 +11:00
Andrew Tridgell
80836ca1d9
HAL_ChibiOS: simplify AP_Periph hwdef.dat
2021-10-26 15:56:53 +11:00
Andrew Tridgell
68146d541c
HAL_ChibiOS: removed boilerplate lines from bootloaders
2021-10-26 15:56:53 +11:00
Andrew Tridgell
0378e1a879
HAL_ChibiOS: removed need for a lot of boilerplate hwdef lines
...
bootloader and AP_Periph lines can default to right values
2021-10-26 15:56:53 +11:00
Michel Pastor
876f478ae1
RCOutput: fix motor stopping with rev thrust and full throttle
2021-10-26 10:53:34 +11:00
Hwurzburg
e7a157283f
AP_HAL_ChibiOS: add param for second IMU primary in Swan-K1 hwdef
2021-10-26 10:38:28 +11:00
Iampete1
d7cc2cb296
AP_HAL_ChibiOS: hwdef.py: allow same GPIO pin in multiple alt configs
2021-10-26 10:05:20 +11:00
kniuk
aabb6f7c59
AP_HAL_ChibiOS: add alt config GPIO to Matek F765-Wing
...
Based on new functionality introduced in #18753
2021-10-26 10:05:20 +11:00
Andrew Tridgell
822e657a70
HAL_ChibiOS: increase PROCESS_STACK on several boards
...
use min of 0xA00 for AP_Periph. A larger stack is needed for parameter
fetching
2021-10-20 19:06:35 +11:00
Iampete1
8459439798
AP_HAL_ChibiOS: CubeYellow: set default IMU arming temp margin
2021-10-19 11:16:45 +11:00
Iampete1
8e381b6017
AP_HAL_ChibiOS: CubeSolo: set default IMU arming temp margin
2021-10-19 11:16:45 +11:00
Iampete1
a004de65b3
AP_HAL_ChibiOS: CubePurple: set default IMU arming temp margin
2021-10-19 11:16:45 +11:00
Iampete1
e3289d2aec
AP_HAL_ChibiOS: CubeBlack: set default IMU arming temp margin
2021-10-19 11:16:45 +11:00
Iampete1
5d5a21a4ec
AP_Hal_ChibiOS: CubeOrange: set default min IMU temp margin
2021-10-19 11:16:45 +11:00
QioTek
fd2195d6fe
HAL_ChibiOS: added QioTekZealotH743 support
2021-10-19 08:17:43 +11:00
Andrew Tridgell
7aa968329c
HAL_ChibiOS: added Nucleo-L476 target
2021-10-17 20:30:20 +11:00
Andrew Tridgell
c8664e0b98
HAL_ChibiOS: added STM32L476 support
2021-10-17 20:30:20 +11:00
Andrew Tridgell
655c757c22
HAL_ChibiOS: added Sierra-L431 peripheral
2021-10-17 20:30:20 +11:00
Andrew Tridgell
5a68e21435
HAL_ChibiOS: support STM32L431
2021-10-17 20:30:20 +11:00
Andrew Tridgell
71e7bb0fe3
HAL_ChibiOS: mark af_parse_cubemx.py as executable, py3
2021-10-17 20:30:20 +11:00
Andrew Tridgell
f1ea4f5d01
HAL_ChibiOS: use a 16 bit sysinterval_t on 16 bit timers
...
prevent mixed size subtraction errors
2021-10-17 20:29:42 +11:00
bugobliterator
5fa50c419d
AP_HAL_ChibiOS: account for TXFIFO when doing flow control detection
2021-10-15 19:57:55 +11:00
Andrew Tridgell
d1c7ed1c82
HAL_ChibiOS: make it clear how to enable parameter backup on CubeBlack
...
uses 16k more ram, but allows auto-restore of corrupted params
2021-10-12 22:08:13 -04:00
Andrew Tridgell
84bbc707fc
AP_HAL_ChibiOS: added stack logging
2021-10-12 16:04:06 +11:00
auturgy
7c3c3a0a41
HAL_Chibios: support modalai_fc-v1 flight controller
...
Based on M0018 version. Thanks to ModalAI for assistance
2021-10-12 15:47:51 +11:00
Andrew Tridgell
6fa9768eab
HAL_ChibiOS: support GPIO get_mode and set_mode
2021-10-12 15:47:51 +11:00
Andrew Tridgell
25324ae0e2
HAL_ChibiOS: support SDMMC2 for sdcard
2021-10-12 15:47:51 +11:00
Andrew Tridgell
d962e094e7
HAL_ChibiOS: change RCIN PULLUP to PULLDOWN
...
this makes us more consistent between boards
2021-10-12 11:52:36 +11:00
Andrew Tridgell
47da7f5c9b
HAL_ChibiOS: change RCIN FLOAT to PULLDOWN
...
this lowers the chance of noise on a RCIN pin causing incorrect
protocol detection
2021-10-12 11:52:36 +11:00
Nick Exton
ffa2bba35c
HAL_ChibiOS: add missing return to Dual CDC get_usb_baud()
2021-10-12 10:54:44 +11:00
Andrew Tridgell
e6aae3caf6
HAL_ChibiOS: fix G4 I2c bus speeds
2021-10-12 10:54:07 +11:00
bugobliterator
f298ea406e
HAL_ChibiOS: enable RNG only for H7 based boards off for the rest by default
2021-10-07 19:43:11 +11:00
bugobliterator
fc4d59c5a4
HAL_ChibiOS: setup hw random number generator for stm32 chips
2021-10-07 19:43:11 +11:00
bugobliterator
792e6666a3
HAL_ChibiOS: add random number generator implementation for ChibiOS
2021-10-07 19:43:11 +11:00
Iampete1
9751cb5b24
AP_HAL_ChibiOS: move is_dshot_protocol up to AP_HAL
2021-10-06 18:59:57 +11:00
Iampete1
f7cba024c1
AP_HAL_ChibiOS: AnalogSource: check for valid pin
2021-10-06 18:42:51 +11:00
Andrew Tridgell
33529c98a9
HAL_ChibiOS: check the ROMFS line for IOMCU is added
2021-10-06 06:45:43 +11:00
Andrew Tridgell
52124cf602
HAL_ChibiOS: fixed f1 bootloader build errors
2021-10-06 06:44:36 +11:00
Andrew Tridgell
8deaa1b46b
HAL_ChibiOS: fixed warning for USB
2021-10-06 06:44:36 +11:00
Andrew Tridgell
4daf4ad501
HAL_ChibiOS: lock in no warnings for chibios RTOS build
2021-10-06 06:44:36 +11:00
Andrew Tridgell
4dbff85de7
HAL_ChibiOS: check for common hwdef.dat errors
...
catches missing GPIO type, mismatched timers and UARTs or bad pin types
2021-10-05 15:46:02 +11:00
Iampete1
f0a284c1e7
AP_Hal_ChibiOS: R9Pilot: add OUTPUT to GPIO
2021-10-05 15:46:02 +11:00
Iampete1
0143518954
AP_Hal_ChibiOS: mRoControlZeroF7: add OUTPUT to GPIO
2021-10-05 15:46:02 +11:00
Iampete1
a282a39866
AP_Hal_ChibiOS: F4BY: add OUTPUT to GPIO
2021-10-05 15:46:02 +11:00
Iampete1
6f1f26a72a
AP_Hal_ChibiOS: CubeOrange: add OUTPUT to GPIO
2021-10-05 15:46:02 +11:00
Iampete1
5848510876
AP_HAL_ChibiOS: set flow control disabled if no RTS line
2021-10-05 12:11:47 +11:00
Michel Pastor
a9fed2f9bc
RCOutput: fix full throttle bug
2021-10-05 11:47:04 +11:00
Andrew Tridgell
c15221fd53
HAL_ChibiOS: fixed orientation of ICM42605 on QiotekZealotF427
2021-10-03 14:00:09 +11:00
Andrew Tridgell
6953778b4c
HAL_ChibiOS: use micros16() for blheli pass-thru IRQ
...
saves some IRQ overhead, makes time handling more consistent
2021-10-02 18:26:39 +10:00
Andrew Tridgell
5714ee113f
HAL_ChibiOS: added micros16() method
2021-10-02 18:26:39 +10:00
Andrew Tridgell
2aef3364bc
HAL_ChibiOS: optimisation for AP_HAL::micros() on systems with 32 bit timers
...
most ChibiOS boards have a 32 bit timer. This optimisation reduces the
cost of micros() from 0.3us to 0.06us, which is significant in
interrupt handlers and for accurate timing. It takes advantage of the
timer being 32 bit with 1MHz clock
2021-10-02 18:26:39 +10:00
bugobliterator
dd9f513aa5
AP_HAL_ChibiOS: setup led control via lua script for HerePro
2021-09-30 08:52:27 +10:00
Iampete1
b6de44cc7b
AP_HAL_ChibiOS: CubeOrange: add alt config for telem1 RTS CTS as GPIO
2021-09-29 19:55:21 +10:00
Iampete1
8ae5bc5ad0
AP_HAL_ChibiOS: hwdef: allow GPIO alt config
2021-09-29 19:55:21 +10:00
Iampete1
a96150a528
AP_HAL_ChibiOS: allow enabling GPIO as alt config
2021-09-29 19:55:21 +10:00
Iampete1
dc45a113f9
AP_HAL_ChibiOS:UARTDriver: allow re-defintion of RTS and CTS pins
2021-09-29 19:55:21 +10:00
Andrew Tridgell
e85594e423
HAL_ChibiOS: added KakuteH7 support
2021-09-29 18:11:04 +10:00
Andrew Tridgell
d1d5cd5d9f
HAL_ChibiOS: fix sdcard on SPI bus on H7
...
the spiIgnore() call was hanging on H7. The ChibiOS submodule change
fixes that, but this patch is also needed to ensure we timeout any
spiIgnore calls correctly
2021-09-29 18:11:04 +10:00
Andrew Tridgell
2c2c85c4d8
HAL_ChibiOS: fixed polled SPI
2021-09-29 18:11:04 +10:00
Andrew Tridgell
27e93155f4
HAL_ChibiOS: fixed build on boards with OTG2 and no CAN interfaces
2021-09-29 18:11:04 +10:00
Iampete1
ade01f41d9
AP_HAL_ChibiOS: support digital write via IOMCU
2021-09-28 09:40:25 +10:00
Andrew Tridgell
4aa88d172c
HAL_ChibiOS: adjust Swan-K1 parameters
...
limit down pitch to 15 degrees to prevent overspeed, and limit angular
rates to 100 deg/s
2021-09-27 21:21:53 +10:00
Peter Barker
43469955a9
AP_HAL_ChibiOS: rename GENERATOR_ENABLED to HAL_GENERATOR_ENABLED
2021-09-26 19:24:09 +10:00
Josh Henderson
27fa2e776d
AP_HAL_ChibiOS: Hitec-Airspeed move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-24 21:05:05 +10:00
Andrew Tridgell
6d093e56fb
HAL_ChibiOS: added Nucleo-L496 AP_Periph target
2021-09-24 18:08:00 +10:00
Andrew Tridgell
0212e23cd3
HAL_ChibiOS: added support for STM32L496 MCUs
...
good MCU for AP_Periph
2021-09-24 18:08:00 +10:00
Peter Barker
1bd62362a4
AP_HAL_ChibiOS: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Andrew Tridgell
758ce2699e
HAL_ChibiOS: added Hitec-Airspeed hwdef
2021-09-21 13:51:40 +10:00
Andrew Tridgell
7f59366cc0
HAL_ChibiOS: process AIRSPEED lines in hwdef.dat
2021-09-21 13:51:40 +10:00
Iampete1
bf695e4eeb
AP_HAL_ChibiOS: atof to strtof
2021-09-15 17:36:12 +10:00
Hwurzburg
6dfbd9ce31
AP_HAL_ChibiOS: add batt mon defaults to Kakutef4 Mini
2021-09-14 10:14:20 +10:00
Iampete1
53ee7d861d
AP_HAL_ChibiOS: remove safe PWM
2021-09-14 09:23:02 +10:00
Andrew Tridgell
88d77d0acd
HAL_ChibiOS: change f303-PWM timers
...
fixes PWM on channels 3 and 4
2021-09-13 21:29:13 +10:00
Andrew Tridgell
adbaccaa08
HAL_ChibiOS: fixed RTSCTS flow control issue
...
this fixes an issue reported on MatekH743, but also applies to other
boards. When not using DMA if there have been bytes written before the
auto flow control detection was enabled then these must be cleared
from _total_written so the flow control detection can work correctly
2021-09-13 21:28:08 +10:00
mateksys
659286ee4f
ChibiOS: add icm42605 as substitution for icm20602
2021-09-11 17:37:12 +10:00
Iampete1
529a3a9122
AP_HAL_ChibiOS: convert back to full range on IOMCU ONESHOT125 read
2021-09-08 18:01:50 +10:00
Andy Piper
e705f78b5e
AP_HAL_ChibiOS: correct and compact Pixhawk4-bdshot build
2021-09-08 17:09:49 +10:00
Andy Piper
c92c75c9a6
AP_HAL_ChibiOS: bdshot version of CUAVv5
2021-09-08 17:09:49 +10:00
Andy Piper
bb41db8478
AP_HAL_ChibiOS: bdshot version of CUAVv5Nano
2021-09-08 17:09:49 +10:00
Andrew Tridgell
d29057a158
HAL_ChibiOS: added f303-PWM
...
for a PWM output node based on mRo f303 CAN node
2021-09-08 17:06:44 +10:00
Andrew Tridgell
2e4766fe54
HAL_ChibiOS: ensure HI_POWER periph is on
2021-09-07 10:40:44 +10:00
Andrew Tridgell
532396e5e6
REVERT: HAL_ChibiOS: Rename STM32F412 hw definition file
...
This reverts commit 5de6c690d8
.
That commit broke the build for the affected board as the chibios
headers rely on the name of the file matching a ifdef
2021-09-07 10:37:43 +10:00
Andrew Tridgell
b77580f934
HAL_ChibiOS: avoid an issue with DCache init on H743
...
this fixes an issue found by Andy Piper where the H743 bootloader gets
a hard fault in the DCache enable code when SRAM1 is primary memory.
This is the simplest fix I could think of, and avoids the problem by
making DTCM the first segment in the bootloader.
Note that we can't use DTCM as first segment for main firmware since
we went to double precision EKF as the static variables don't fit
2021-09-06 18:23:03 +10:00
Hwurzburg
d0b67baefd
AP_HAL_ChibOS: add pin defs for RSSI to KakuteF7
2021-09-06 10:12:48 +10:00
Hwurzburg
854697f870
AP_HAL_ChibiOS: update default params for SWAN-K1
2021-09-06 08:07:06 +10:00
Andrew Tridgell
8462ce4e2e
HAL_ChibiOS: fixed GPIO lines for QioTekZealotF427
2021-09-03 18:16:43 +10:00
bugobliterator
4ecdf90470
AP_HAL_ChibiOS: add internal flash version of hwdef for H757I_EVAL
2021-09-01 17:10:53 +10:00
Siddharth Purohit
d484477a99
AP_HAL_ChibiOS: move to using PLL2_R_CK for QSPI
2021-09-01 17:10:53 +10:00
Siddharth Purohit
81dc237a19
AP_HAL_ChibiOS: move to using Instruction RAM with External Flash setup
2021-09-01 17:10:53 +10:00
Siddharth Purohit
1eb318c62b
AP_HAL_ChibiOS: increase clock frequency for QSPI
2021-09-01 17:10:53 +10:00
Siddharth Purohit
39bd229279
AP_HAL_ChibiOS: remove dependency on Semaphores in QSPIDevice in BL
2021-09-01 17:10:53 +10:00
Siddharth Purohit
813e93a69c
AP_HAL_ChibiOS: do not reset GPIO for boards with external flash
2021-09-01 17:10:53 +10:00
Siddharth Purohit
4ba2835de1
AP_HAL_ChibiOS: add config for supporting load from external flash
2021-09-01 17:10:53 +10:00
Siddharth Purohit
faedb12493
AP_HAL_ChibiOS: fix hwdef generation for bootloader supporting ext flash
2021-09-01 17:10:53 +10:00
Siddharth Purohit
6e81fcbed1
AP_HAL_ChibiOS: add support for things required to run QSPIDriver
2021-09-01 17:10:53 +10:00
Siddharth Purohit
a039711628
AP_HAL_ChibiOS: prepare H757I_EVAL for external flash programming
2021-09-01 17:10:53 +10:00
Andrew Tridgell
fdfa14c4c0
HAL_ChibiOS: adjust Swan-K1 tuning
2021-09-01 14:04:35 +10:00
Andrew Tridgell
f4ad8f6ef5
HAL_ChibiOS: fix for HAL_PWM_COUNT zero
...
reported by Mallikarjun
2021-09-01 13:05:20 +10:00
Andrew Tridgell
584fb7cd7b
HAL_ChibiOS: use more USB buffers on higher end F7 chips
2021-08-31 10:12:00 +10:00
Andrew Tridgell
39f44147b8
HAL_ChibiOS: reduce the impact of UART DMA contention
...
this changes the heuristics for UART TX DMA allocation to greatly
reduce the chances of DMA contention causing long delays on other
devices
This fixes issues with FETTec driver output and gimbal status messages
as reported by Amilcar and OlliW. The problem is particularly bad when
no GPS is connected to GPS1 on fmuv3 and derived boards (such as
CubeBlack)
key changes:
- remember the contention_counter across begin() calls, as the GPS
calls begin with new baudrates regularly
- added a is_shared() API to Shared_DMA, allowing the UART driver to
avoid TX DMA on shared streams when at low baudrates.
2021-08-31 07:55:27 +10:00
Marek Łukasiewicz
5de6c690d8
HAL_ChibiOS: Rename STM32F412 hw definition file
2021-08-30 10:27:45 +10:00
bugobliterator
fd95c32d88
AP_HAL_ChibiOS: add CubeOrange Periph Heavy build
2021-08-27 09:17:30 -07:00
Andrew Tridgell
858a6b7e87
HAL_ChibiOS: allow FlywooF745 to build again
2021-08-27 07:45:58 +10:00
Marek S. Łukasiewicz
47f2e13024
HAL_ChibiOS: Add hwdef for BirdCANdy
2021-08-26 09:43:39 +10:00
bugobliterator
a32a32ab43
HAL_ChibiOS: change name for USART2_CTS pin in STM32H757xx.py
2021-08-25 10:09:23 +10:00
bugobliterator
21ad3c7ac1
AP_HAL_ChibiOS: add HereID board
2021-08-25 10:09:23 +10:00
Andrew Tridgell
e9427f1dae
HAL_ChibiOS: removed remnants of CHIBIOS_ADC_MAVLINK_DEBUG
2021-08-25 07:11:31 +10:00
Andrew Tridgell
5bacd35eaa
HAL_ChibiOS: review fixes
2021-08-25 07:11:31 +10:00
Andrew Tridgell
4cebcede31
HAL_ChibiOS: switched to fix allocation for BMDA streams on H7
...
this avoids issues with BDMA stream assignments due to bugs found
while testing boards with both I2C4 and SPI6
2021-08-25 07:11:31 +10:00
Andrew Tridgell
57e87b9820
HAL_ChibiOS: measure MCU temperature and ref voltage on H7
...
this uses ADC3 to measure the internal MCU temperature and the reference
voltage. This uses a currently unused BDMA channel
2021-08-25 07:11:31 +10:00
Andrew Tridgell
531ca4289e
HAL_ChibiOS: switch to minimum scheduling delta of 10us
...
this avoids an issue with the ChibiOS 20.3 virtual timer
implementation that can result in a scheduling slip equal to the
system timer period.
Andy has been suggesting this change for a while. I resisted it as I
thought it would impact on soft-serial parsing, but it turns out it
doesn't.
Fixes issue #18383
2021-08-23 10:45:44 +10:00
Peter Barker
70aef84997
AP_HAL_ChibiOS: remove definitions of BOARD_PWM_COUNT_DEFAULT
...
No longer used
2021-08-20 10:51:19 +10:00
Andy Piper
0279c86f7f
AP_HAL_ChibiOS: use hardware serial inversion pins on F4 boards that support it
...
change mamba F405 to active high as per betaflight
2021-08-19 17:05:42 +10:00
bugobliterator
d64621e349
HAL_ChibiOS: remove duplicate FLASH_RESERVE_START_KB from hwdef
2021-08-19 14:20:58 +10:00
bugobliterator
a8ab20abd9
AP_HAL_ChibiOS: allow sending stats via mavftp on AP_Periph
2021-08-19 14:20:58 +10:00
bugobliterator
4f65705c99
AP_HAL_ChibiOS: set proper name for CAN terminators on HerePro
2021-08-19 14:20:58 +10:00
bugobliterator
c7907bb8fb
AP_HAL_ChibiOS: update config for dual gps heading in HerePro
2021-08-19 14:20:58 +10:00
Andy Piper
b78d848a5d
AP_HAL_ChibiOS: add FlywooF745Nano board definition
2021-08-18 17:06:09 +10:00
Randy Mackay
a1eb84ebfd
AP_HAL_ChibiOS: swap Pixhawk4 blue and red LEDs
2021-08-17 10:13:39 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
38a825c987
AP_HAL_ChibiOS: disable FETtec OneWire device driver
2021-08-13 16:22:37 +10:00
Andy Piper
68fd87091c
AP_HAL_ChibiOS: output initializing from PWM banner when not available
2021-08-12 19:07:51 +09:00
Andy Piper
a51e58022f
AP_HAL_ChibiOS: add accessor for reversed mask
...
allow mask updates to be disabled
send dshot commands even if armed - they will be accepted as long as throttle is at zero
only accept low-priority dshot commands while disarmed
apply reversed and reversible mask as servo channels
2021-08-12 19:00:51 +09:00
Andrew Tridgell
79b0571d7e
HAL_ChibiOS: added Swan K1 support
2021-08-10 10:08:05 +10:00
Andy Piper
7dea029626
AP_HAL_ChibiOS: probe for compasses on FlywooF745
2021-08-10 09:35:06 +10:00
Leonard Hall
4e06140c6c
AP_Hal_ChibiOS: Skyviper Parameters PSC_VELXY_FLTE
2021-08-10 08:33:56 +09:00
bugobliterator
81c5a99527
AP_HAL_ChibiOS: fix invalid use of FDCAN2_IT0_IRQn enum for ifdef
2021-08-10 07:25:05 +10:00
QioTek
30e23052a0
AP_HAL_ChibiOS: add Icm42605 as a backup to replace icm20649
...
AP_HAL_ChibiOS: add Icm42605 as a backup to replace icm20649
2021-08-10 07:00:52 +10:00
Andy Piper
f71b951cb2
AP_HAL_ChibiOS: return correct value for tx_pending().
2021-08-04 17:26:18 +10:00
Andrew Tridgell
eb638a5267
HAL_ChibiOS: added CubeMX files for G431 and G441
2021-08-03 10:54:03 +10:00
Andrew Tridgell
bab0c1dfc7
HAL_ChibiOS: fixed build for single FDCAN G4 boards
2021-08-03 10:54:03 +10:00
Andrew Tridgell
8df99f0d15
HAL_ChibiOS: added G431 and G441 support
2021-08-03 10:54:03 +10:00
Andrew Tridgell
4df62ce719
HAL_ChibiOS: added mRo-M10095 G491 peripheral
2021-07-30 10:20:52 +10:00
Andrew Tridgell
4fce1ae092
HAL_ChibiOS: added G491 support
2021-07-30 10:20:52 +10:00
Hwurzburg
8b7b4d6796
AP_HAL_Chibios: Change RC in to RCINT to free a DMA channel
2021-07-28 17:24:06 +10:00
mateksys
08cd1171bf
Tools: added MatekF765-SE to autobuild
2021-07-26 18:13:46 +10:00
Isaac Alich
35beae6037
AP_HAL_ChibiOS: Make final tweaks to MambaF405US-I2C
2021-07-25 17:44:22 +10:00
Isaac Alich
bdcb32456e
AP_HAL_ChibiOS: Add support for MambaF405US-I2C based boards
2021-07-25 09:28:17 +10:00
Andrew Tridgell
d8b8facdd0
HAL_ChibiOS: fixed off by 1 bug in GPIO check
2021-07-24 18:18:57 +10:00
Andrew Tridgell
d302d3c90a
HAL_ChibiOS: implement valid_pin()
2021-07-22 07:48:12 +10:00
Andrew Tridgell
bbcce717dc
HAL_ChibiOS: stop defaulting relay pins to 54 and 55
...
this just leads to confusion
2021-07-22 07:48:12 +10:00
Andrew Tridgell
54e53ed71c
HAL_ChibiOS: use is_GPIO() instead of BRD_PWM_COUNT
2021-07-22 07:48:12 +10:00
bugobliterator
48b8fdfd48
AP_HAL_ChibiOS: make linecoding objects static arrays
2021-07-21 17:06:41 +10:00
bugobliterator
d1b0438412
AP_HAL_ChibiOS: add support for usb passthrough with baud changes
2021-07-21 17:06:41 +10:00
Michael Oborne
d622aad592
AP_HAL_ChibiOS: add get_usb_baud - support for usb baudrate
2021-07-21 17:06:41 +10:00
honglang
ef109721fe
AP_HAL_ChibiOS: hwdef: reorder CUAV-X7 IMUs
...
adjust the sequence of IMU sensors to have good performance.
2021-07-20 16:10:50 +10:00
Hwurzburg
0f2f6ccc80
AP_HAL_ChibiOS: add Link Quality reporting to RC protocols
2021-07-16 13:27:38 +10:00
Andrew Tridgell
a098c80671
HAL_ChibiOS: use DNA for node allocation on Matek GPS
...
this works as MSP is now active when a DNA server is not found
2021-07-15 14:38:11 +10:00
Andrew Tridgell
db1df9d3a8
HAL_ChibiOS: raise DMA contention threshold for H7
2021-07-15 11:31:55 +10:00
Andrew Tridgell
926d4ad71c
HAL_ChibiOS: implement NOFIFO option for uarts
2021-07-15 11:31:55 +10:00
Andy Piper
60b0df0a25
AP_HAL_ChibiOS: only control widest pulse for dshot and oneshot
2021-07-14 17:50:06 +10:00
Andrew Tridgell
4f32fa537a
HAL_ChibiOS: define HAL_HAVE_HARDWARE_DOUBLE on F765, F777 and H7
2021-07-10 07:20:41 +10:00
Andrew Tridgell
6c712c9001
HAL_ChibiOS: use SRAM1 as first ram segment on H7
...
this is needed to give the linker more than 128k for static variables
with double precision maths.
2021-07-10 07:20:41 +10:00
Andrew Tridgell
4ed0b03f35
HAL_ChibiOS: implement set_RTS/CTS_pin methods
2021-07-09 13:27:57 +10:00
mateksys
40200654af
AP_HAL_ChibiOS: add MatekF765-SE hwdef as a variant of MatekF765-Wing
2021-07-08 13:01:44 +10:00
Andrew Tridgell
dd156d8da6
HAL_ChibiOS: run storage writes at 1kHz not 100Hz
...
The 100Hz update rate means there is a significant chance of an arming
failure after mission upload if you try to arm shortly after the
update.
Each mission item is 15 bytes, so with a 1200 item mission we need to
write 18000 bytes to storage. At 100Hz, with 8 bytes per storage line,
that takes over 22 seconds.
2021-07-07 17:32:21 +10:00
Andy Piper
e9f0c59e61
AP_HAL_ChibiOS: re-enable LEDs on MatekF405-bdshot
2021-07-06 10:10:04 +10:00
Andrew Tridgell
7ac895db77
HAL_ChibiOS: always send zero DShot when disarmed
...
this prevents a misconfigured system (for example SERVOn_REVERSED=1)
from running a motor while disarmed.
See https://discuss.ardupilot.org/t/plane-4-1-0-beta/72434/34?u=tridge
2021-07-03 11:37:28 +10:00
Siddharth Purohit
9b2359b34c
AP_HAL_ChibiOS: allow option to enable ChibiOS features in bootloader
2021-07-02 08:50:16 +10:00
Siddharth Purohit
1a1dd76a4c
AP_HAL_ChibiOS: add initial herepro hwdef
2021-07-02 08:50:16 +10:00
Andrew Tridgell
b4b02b4ffc
HAL_ChibiOS: use nargs='+' for chibios_hwdef.py
2021-07-01 09:33:16 +10:00
willpiper
ce1ee6334f
AP_HAL_ChibiOS: addressed reviewed comments
2021-07-01 09:33:16 +10:00
willpiper
fb4a4e609a
AP_HAL_ChibiOS: added --extra-hwdef option
2021-07-01 09:33:16 +10:00
Siddharth Purohit
245f9d21b3
AP_HAL_ChibiOS: update clock config for FDCAN and External Flash
2021-06-30 19:34:36 +10:00
Siddharth Purohit
28dbbc2bc4
AP_HAL_ChibiOS: do not even initialise empty qspi driver
2021-06-30 19:33:17 +10:00
Siddharth Purohit
d3e081c100
AP_HAL_ChibiOS: add support for entering XIP mode
2021-06-30 19:33:17 +10:00
Siddharth Purohit
263fbbbdb0
AP_HAL_ChibiOS: add echo safe debug flag bouncebuffer
2021-06-30 19:33:17 +10:00
Siddharth Purohit
3b3cc0b194
AP_FlashIface: add initial files for AP_FlashIface library
2021-06-30 19:33:17 +10:00
Siddharth Purohit
c962292bae
AP_HAL_ChibiOS: add support for H757I Evaluation board
2021-06-30 19:33:17 +10:00
Siddharth Purohit
abc26d1993
AP_HAL_ChibiOS: add QSPI Device Driver in HAL
2021-06-30 19:33:17 +10:00
Siddharth Purohit
4cb48da984
modules: update ChibiOS
2021-06-30 19:33:17 +10:00
Siddharth Purohit
0e4fbe7c46
AP_HAL_ChibiOS: allow using internal compasses onboard
2021-06-30 17:06:02 +10:00
Siddharth Purohit
882b01bae3
AP_HAL_ChibiOS: Use HAL_CANMANAGER_ENABLED instead of HAL_ENABLE_LIBUAVCAN_DRIVERS
2021-06-24 09:02:42 +10:00
bugobliterator
7e8f11b749
AP_HAL_ChibiOS: allow embedded bootloader to be excluded
...
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2021-06-24 08:36:30 +10:00
Andy Piper
9e99f724e5
AP_HAL_ChibiOS: add 1Hz update_channel_masks()
...
Send dshot commands in update function
2021-06-22 09:55:27 +10:00
Andrew Tridgell
ed93caadd5
HAL_ChibiOS: fixed build of VRUBrain-v51
...
overflowing flash
2021-06-21 16:48:10 -07:00
Andy Piper
3386cbb0df
AP_HAL_ChibiOS: add OREO support to CubeSolo.
...
add back RunCam and Spektrum support to MatekF405-Wing
remove gripper support from MatekF405-Wing
2021-06-16 20:25:58 +10:00
Samuel Tabor
3fc58de7ce
AP_HAL_ChibiOS: Restore soaring on F405-Wing board.
2021-06-16 09:15:03 +10:00
Andy Piper
d36b4bfa3f
AP_HAL_ChibiOS: make sure all MatekF405 bi-dir outputs get a DMA channel
...
only allow (b)dshot on M1-4 to get full DMA on USART3 and UART4
2021-06-15 09:49:02 +10:00
Peter Barker
f780a5c358
AP_HAL_ChibiOS: fix infinite loop for large SPI transfers
...
len is 32 bits; i may integer-wrap back to zero at 65535+1
2021-06-14 09:13:49 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
d363cbadcc
AP_HAL_ChibiOS: Disable un-needed hardware drivers in SkyViper builds
...
these boards have integrated ESCs with no telemetry
2021-06-09 21:42:51 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
8593672f4c
AP_HAL_ChibiOS: fix compilation when HAL_WITH_ESC_TELEM == 0
2021-06-09 21:42:51 +10:00
Tom Pittenger
7a004656a2
AP_HAL_ChibiOS: use HAL_ENABLE_LIBUAVCAN_DRIVERS instead of HAL_MAX_CAN_PROTOCOL_DRIVERS
2021-06-09 18:36:18 +10:00
Tom Pittenger
1feec460c4
AP_HAL_ChibiOS: enable BattMon MPPT PacketDigital to CubeOrange-periph
2021-06-09 18:36:18 +10:00
Tom Pittenger
f764bd6547
AP_HAL_ChibiOS: disable EventSource only when CH_CFG_USE_EVENTS is false
...
(cherry picked from commit 6e7542a70ca2343ab8d18470deaf5fc2d27390af) from bugobliterator
2021-06-09 18:36:18 +10:00
Andrew Tridgell
f09abc705b
HAL_ChibiOS: bring us to 18k free for MatekF405-Wing plane build
2021-06-09 18:07:00 +10:00
Peter Barker
09e82e52e1
AP_HAL_ChibiOS: disable AP_EFI on MatekF405-Wing and omnibusf4pro
2021-06-08 14:08:34 +10:00
Peter Barker
3ba57fed89
AP_HAL_ChibiOS: add support for AP_Logger into AP_Periph
2021-06-08 09:57:55 +10:00
Andrew Tridgell
67fea9f2f8
HAL_ChibiOS: fixed DMA disable on contention
...
this fixes a problem with the automatic DMA disable on DMA contention
in UARTs. This fixes issue #14581
the problem was that while tx_dma_enabled was correctly set to false,
it would keep looping inside write_pending_bytes_DMA() if the data
arrived in the write buffer at a faster rate than it could be sent
out, which did happen with a mavlink stream rate of 4Hz. This means it
kept using DMA even with tx_dma_enabled set to false. The result was
that the automatic flow control code never got a chance to run and we
didn't switch back to non-DMA for these low baudrate contended UARTs
2021-06-05 19:03:03 +10:00
Andrew Tridgell
3128d71aac
HAL_ChibiOS: display uart even when not initialised
...
don't rely on thread allocation for uart info display
2021-06-05 18:52:33 +10:00
Andrew Tridgell
c34d8e80e9
HAL_ChibiOS: fixed serial info indexing for EMPTY uarts
2021-06-05 18:52:33 +10:00
Andrew Tridgell
6fab8feeae
HAL_ChibiOS: implement uart_info per-uart
...
this allows for some UARTs to be of EMPTY type
2021-06-05 18:52:33 +10:00
Andrew Tridgell
135a4d2c83
HAL_ChibiOS: fixed order and labelling of @SYS/uarts.txt
2021-06-05 18:52:33 +10:00
Andrew Tridgell
a895bc1846
HAL_ChibiOS: reduce flash on VRBranin-v51
2021-06-05 13:05:30 +10:00
honglang
847ce3b311
AP_HAL_ChibiOS: CUAV X7/Nora: use icm42688 instead of bmi088
2021-06-03 13:57:27 +10:00
CUAVcaijie
0ff38e1379
HAL_ChibiOS: CUAV ICM20649 on SPI6 bus replaced by ICM20689
...
alternative IMUs for Nora and X7
2021-06-02 10:49:55 +10:00
Andrew Tridgell
8701932670
HAL_ChibiOS: return zeros in dma.txt on first fetch
2021-06-01 11:36:07 +09:00
Andrew Tridgell
5529ba36e2
HAL_ChibiOS: added HolybroGPS AP_Periph port
2021-06-01 09:19:51 +10:00
Andrew Tridgell
23c0f257b6
HAL_ChibiOS: default off serial protocols in AP_Periph
...
this allows for a GPS on high numbered ports
2021-06-01 09:19:51 +10:00
Andrew Tridgell
ac1e03e16a
HAL_ChibiOS: move heater gains on CubeOrange to hwdef.dat
...
this makes it easier for users using apjtool to override params
2021-06-01 08:07:49 +10:00
Andrew Tridgell
244d896bfb
HAL_ChibiOS: enable heater on Pix32v5
2021-06-01 08:07:49 +10:00
bugobliterator
ea1795d6fe
AP_HAL_ChibiOS: ensure ToneAlarm is not disabled when UAVCAN is available
2021-05-31 07:34:02 +10:00
Michael Oborne
126456742a
Hwdef: add Joey
2021-05-27 14:19:55 +10:00
Andrew Tridgell
91dce554d1
HAL_ChibiOS: removed unnecessary USB product IDs from boards
2021-05-27 09:30:30 +09:00
Andrew Tridgell
de3a3f7edf
HAL_ChibiOS: fixed case of Pix32v5 USB product string
2021-05-27 09:30:30 +09:00
Siddharth Purohit
ad9a8c8bd9
AP_HAL_ChibiOS: record error states in CANFDIface and CANIface
2021-05-26 18:25:01 +10:00
Michel Pastor
b083848ae7
AP_HAL_ChibiOS: fix comments
2021-05-26 17:59:04 +10:00
Michel Pastor
a148849ec3
AP_HAL_ChibiOS: RCOutput_serial: fix comment for set_reversible_mask()
2021-05-26 17:59:04 +10:00
Andrew Tridgell
fced5271af
HAL_ChibiOS: expand pin map of G474 to cover 64 pin parts
2021-05-25 09:35:25 +10:00
Andy Piper
a7a9fa93f0
AP_HAL_ChibiOS: correct enabled mask for motor channel output
2021-05-24 07:57:51 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
fc7e242bae
AP_HAL_ChibiOS: Fix typo (NFC)
2021-05-21 09:43:10 +10:00
Peter Barker
79809b60aa
AP_HAL_ChibiOS: rename f103-periph/hwdef.dat to .inc (f303 too)
2021-05-20 17:23:17 +10:00
Siddharth Purohit
5bcc713985
AP_HAL_ChibiOS: add omnibusf4pro config with one compass and gps
2021-05-19 18:04:20 +10:00
Peter Barker
31ef6db937
AP_HAL_ChibiOS: remove redundant HAL_LOGGING_ENABLED from AP_Periph hwdefs
2021-05-19 17:38:47 +10:00
Andrew Tridgell
ebe858f762
HAL_ChibiOS: auto-set HAL_LOGGING_ENABLED for AP_Periph builds
2021-05-19 17:38:47 +10:00
Peter Barker
dbf5357592
AP_HAL_ChibiOS: base use of InternalError on build type not HAL_LOGGING_ENABLED
...
Really not sure why we were using HAL_LOGGING_ENABLED here
2021-05-19 17:38:47 +10:00
Peter Barker
7d8c5757d6
AP_HAL_ChibiOS: move from HAL_NO_LOGGING to HAL_LOGGING_ENABLED
2021-05-19 17:38:47 +10:00
Andy Piper
6a21446bac
AP_HAL_ChibiOS: correct KakuteF4Mini board id
2021-05-18 10:02:36 +10:00
Andy Piper
25be0cf4b4
AP_HAL_ChibiOS: pull the right pin for KakuteF4 buzzer
2021-05-18 10:02:36 +10:00
vierfuffzig
393ac386cc
AP_HAL_ChibiOS: add revo-mini-i2c alt configs
2021-05-18 09:53:38 +10:00
Andy Piper
f8a59a4a72
AP_HAL_ChibiOS: set inbound bitrate correctly for bi-directional dshot1200
2021-05-14 07:23:59 +10:00
Andy Piper
b33b07e43f
AP_HAL_ChibiOS: fixes for KakuteF4Mini
2021-05-12 17:26:35 +10:00
Andy Piper
387812bb01
AP_HAL_ChibiOS: avoid startup scream on KakuteF4 and variants
2021-05-12 17:26:35 +10:00
Andy Piper
f0ff4a2cd4
AP_HAL_ChibiOS: hwdef for KakuteF4Mini
2021-05-12 17:26:35 +10:00
Andy Piper
6447bd1cdd
AP_HAL_ChibiOS: use AP_ESC_Telem to record erpm data and error rate
...
don't output RPM data if bi-dir dshot is not enabled
2021-05-12 17:01:11 +10:00
Andrew Tridgell
e1a5d73504
HAL_ChibiOS: fixed DTCM comment for F732
2021-05-09 06:44:19 +10:00
Andrew Tridgell
b7fffe35f9
HAL_ChibiOS: added FreeflyRTK GPS build
...
a F732 based GPS peripheral
2021-05-09 06:44:19 +10:00
Andrew Tridgell
4d661911e5
HAL_ChibiOS: allow adjustment of F7 I2C timing
...
needed for F732
2021-05-09 06:44:19 +10:00
Andrew Tridgell
6b9e4161cb
HAL_ChibiOS: removed UDID_START from all MCU defs
...
use UID_BASE from ChibiOS headers
2021-05-09 06:44:19 +10:00
Andrew Tridgell
36d5c98e96
HAL_ChibiOS: default UDID_START to UID_BASE
2021-05-09 06:44:19 +10:00
Andrew Tridgell
2dc4c50953
HAL_ChibiOS: fixed default OTP address and size
2021-05-09 06:44:19 +10:00
Andrew Tridgell
22f7218acf
HAL_ChibiOS: support 512k F7 parts for flash
2021-05-09 06:44:19 +10:00
Andrew Tridgell
03cae60471
HAL_ChibiOS: added STM32F732 support
2021-05-09 06:44:19 +10:00
Andrew Tridgell
f1de0c7fe2
HAL_ChibiOS: added F732 16MHz CubeMX config
2021-05-09 06:44:19 +10:00
Andy Piper
f6b9479542
AP_HAL_ChibiOS: add accessor for UART DMA status
2021-05-05 17:50:42 +10:00
Andy Piper
dbd9b3a9ae
AP_HAL_ChibiOS: ESC telemetry is orthogonal to RPM telemetry
2021-05-05 17:41:24 +10:00
Andy Piper
384ecd4a5b
AP_HAL_ChibiOS: check command queue is empty before arming
2021-05-05 17:41:24 +10:00
Andy Piper
66fadf53a1
AP_HAL_ChibiOS: remove dshot calibration step
2021-05-05 17:41:24 +10:00
Andy Piper
f3f3056dba
AP_HAL_ChibiOS: add support for dshot commands to rcout
...
add support for dshot beepcodes through tonealarm
add support for dshot reversal and command queue
add support for dshot commands to all channels
correctly manage channel enablement in PWM groups
Correctly send dshot commands when using bi-dir dshot
allow reversible settings to be changed
ChibiOS: allow more than one type of ESC for dshot commands
Only execute reverse/reversible commands on BLHeli
add support for checking active ESCS
mark ESCs active when bdshot telemetry is returned
allow dshot alarm to be disabled
allow priroitized dshot commands
2021-05-05 17:41:24 +10:00
Andrew Tridgell
8764d69e2c
HAL_ChibiOS: default SDMMC clock to 12.5MHz max on H7
...
this makes microsd considerably more reliable
2021-05-02 13:04:42 +10:00
Andrew Tridgell
f9866dc27e
HAL_ChibiOS: fixed LED_SAFETY attached to FMU with recent DShot updates
2021-04-30 17:26:33 +10:00
QioTek
ca6102ed28
f103Qiotek_Periph
...
f103Qiotek_Periph
2021-04-24 07:48:40 +10:00
QioTek
1de3135d14
HAL_ChibiOS: added f103-QiotekPeriph hwdef ( #1 )
...
HAL_ChibiOS: added f103-QiotekPeriph
2021-04-24 07:48:40 +10:00
Andy Piper
42ebc13e6c
Revert "AP_HAL_ChibiOS: support 6 bi-directional dshot channels on the MatekH743"
...
This reverts commit f9d166edf6
.
2021-04-22 18:39:06 +10:00
Andrew Tridgell
6764f039ca
HAL_ChibiOS: added support for the new H7 luminousbee version 5
2021-04-21 20:41:34 +10:00
Andy Piper
f9d166edf6
AP_HAL_ChibiOS: support 6 bi-directional dshot channels on the MatekH743
2021-04-21 17:18:53 +10:00
Andy Piper
558631918c
AP_HAL_ChibiOS: add %age of total to thread statistics
...
don't display meaningless thread info
2021-04-21 17:14:11 +10:00
Andrew Tridgell
961e538cc0
HAL_ChibiOS: reduced flash usage on MatekF405
...
overflowing by 1k
2021-04-21 07:12:55 +10:00
Andy Piper
4bb4e2fb22
AP_HAL_ChibiOS: adjust GPIO settings for serial passthru
2021-04-20 10:35:22 +10:00
Andrew Tridgell
4118a3eb03
HAL_ChibiOS: check bus owner on all SPI transfers
2021-04-16 10:02:02 +10:00
Andrew Tridgell
9990404e64
HAL_ChibiOS: fixed G4 analog input build
...
use right resolution in ADC peripheral for ADCv3
2021-04-14 13:11:58 +10:00
Andrew Tridgell
eca8cf3414
HAL_ChibiOS: save flash on boards that are critically low
...
move to single OSD font on some boards
this saves about 12k on these boards. They were also extremely close
to overflowing flash, under 2k on some
Now that we support having an OSD font on the microSD card (where
available) we can reduce built in fonts without a large functionality
impact
This also disables some less used features on these boards:
- generator support
- object avoidance path planning
- precision landing
This will give us some breathing room on these boards
2021-04-13 09:58:59 +10:00
Andrew Tridgell
47a5d78397
HAL_ChibiOS: disable DMA on high contention UARTs
...
switch to interrupt driven when in high contention
2021-04-08 06:53:48 +10:00
anbello
77998fb5ba
revo-mini bdshot
2021-04-07 17:44:29 +10:00
anbello
dcb90c7bdb
revo-mini ext i2c
2021-04-07 17:26:56 +10:00
Andy Piper
be39e1f297
AP_HAL_ChibiOS: correct current scale for BeastH7 and BeastF7
2021-04-07 17:25:19 +10:00
Andy Piper
aa0ec0f091
AP_HAL_ChibiOS: optimize BeastH7 compilation
2021-04-07 17:25:19 +10:00
Iampete1
ec90ab13f4
AP_HAL_ChibiOS: RCOutput: print DMA alocation errors
2021-04-07 17:24:25 +10:00
Iampete1
15509f314c
AP_HAL_ChibiOS: RCOuput: LED setup re-work
2021-04-07 17:24:25 +10:00
Andrew Tridgell
61c829d624
HAL_ChibiOS: only use SRAM4 for DMA for now
...
we can enable others when we have an allocation interface that
specifies the peripheral type
2021-04-07 17:10:45 +10:00
Iampete1
2377d33417
AP_HAL_ChibiOS: H7 set SRAM4 to no cache and allow DMA
2021-04-07 17:10:45 +10:00
Andrew Tridgell
4cddb12508
HAL_ChibiOS: fixed DMA sent calculation on UART DMA timeout
2021-04-07 07:34:45 +10:00
Andy Piper
b3dbc21fa7
AP_HAL_ChibiOS: KakuteF7 bdshot configuration, tested by yaapu
2021-04-06 11:33:53 +10:00
Andy Piper
721850d00a
AP_HAL_ChibiOS: fix dshot150.
2021-04-06 10:24:04 +10:00
Andy Piper
f6b1e15b0e
AP_HAL_ChibiOS: optimize bdshot ISRs
2021-04-06 10:24:04 +10:00
Andy Piper
cb3b37d181
AP_HAL_ChibiOS: ensure that non-dshot modes get regular 1Khz updates
2021-04-06 10:24:04 +10:00
Andy Piper
ea3291520c
AP_HAL_ChibiOS: add fast cycle calibration step
2021-04-06 10:24:04 +10:00
Andy Piper
74d4af9ac9
AP_HAL_ChibiOS: reset bdshot IC correctly
...
don't allow dshot rates below 800Hz.
set pin speed to MID1 to avoid glitching
don't run receive pulses on a timer
2021-04-06 10:24:04 +10:00
Andy Piper
477ff72214
AP_HAL_ChibiOS: allow dshot rate to be set so as to both regularize the output as well as
...
allow faster rates synchronized to the loop rate
synchronize 1Khz and use Betaflight definition for prescaler
adjust dshot bitrates
don't allocate IC DMA if already allocated
cancel DMA pulses correctly
try really hard to align pulses with push() by making each dshot pulse event driven
2021-04-06 10:24:04 +10:00
Andrew Tridgell
45477f6063
HAL_ChibiOS: fixed default MSP port for f405-MatekGPS
2021-04-05 11:02:32 +10:00
Andrew Tridgell
ca948171fe
HAL_ChibiOS: fixed ADC error on revXY STM32H7 boards
...
with the new ChibiOS revision we were configuring for newer revisions
of the H7, which meant that we changed the ADC config. This broke ADC
readings on revX and revY H7 MCUs.
This PR fixes it in two ways:
1) change ChibiOS config to assume XY config chips
2) use 16 bit ADC for H7, which means the chip rev doesn't matter,
and also gives us 16x the resolution for ADC readinga, so we can
read smaller voltage and current values
2021-04-05 11:01:03 +10:00
willpiper
94bdca7f6f
AP_HAL_ChibiOS: tidy up beastF7 DMA channels
2021-04-04 16:51:19 +10:00
Andrew Tridgell
f0d6b79e8a
HAL_ChibiOS: fixed skyviper builds with BMM150
2021-03-30 13:31:50 +09:00
Peter Barker
cfacb5d34d
AP_HAL_ChibiOS: split out a calculate_thread_priority method
2021-03-30 10:49:06 +11:00
Iampete1
7c96522e44
AP_HAL_ChibiOS: add semaphore to AnalogIn::channel to make it thread safe
2021-03-30 10:44:43 +11:00
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
2021-03-29 20:14:29 +11:00
Andrew Tridgell
88e277420f
AP_HAL_ChibiOS: removed assert calls
...
these waste flash space and do not do us any good
2021-03-25 14:03:40 +11:00
Andrew Tridgell
2d4dfe8a2a
HAL_ChibiOS: fixed (unused) FF_FS_TIMEOUT
...
this change was harmless as we don't define FF_FS_REENTRANT
2021-03-23 12:01:20 +11:00
Andrew Tridgell
ffb2876f58
HAL_ChibiOS: disable unused ChibiOS features
2021-03-23 12:01:20 +11:00
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
2021-03-23 12:01:20 +11:00
Andrew Tridgell
c3d16cf2e2
HAL_ChibiOS: use defines for G4 messageram
...
review fix
2021-03-23 12:01:20 +11:00
Andrew Tridgell
b4e4d48e52
HAL_ChibiOS: switch OMNIBUSF7V2 timer for RCIN
...
this avoids a conflict with shared interrupt on TIM1
2021-03-23 12:01:20 +11:00
Andrew Tridgell
ff31e10d9e
HAL_ChibiOS: ensure that RCIN DMA channel is not shared
...
RCIN DMA cannot be shared as it runs all the time
2021-03-23 12:01:20 +11:00
Andrew Tridgell
2842730868
HAL_ChibiOS: fixed F3 CAN build
2021-03-23 12:01:20 +11:00
Andrew Tridgell
2fc7ea1a8b
HAL_ChibiOS: added G4-ESC hwdef
2021-03-23 12:01:20 +11:00
Andrew Tridgell
353eca79b6
HAL_ChibiOS: fixed 32/64 micros bug in CAN select()
2021-03-23 12:01:20 +11:00
Andrew Tridgell
bac9b27a3f
HAL_ChibiOS: enable analogin on G4
2021-03-23 12:01:20 +11:00
Andrew Tridgell
ac9e6ba86d
HAL_ChibiOS: fix label for CCM on G4
2021-03-23 12:01:20 +11:00
Andrew Tridgell
7496b8bff5
HAL_ChibiOS: fixed DMAR register offset
...
use offsetof() instead of a magic value
2021-03-23 12:01:20 +11:00
Andrew Tridgell
4f10565f82
HAL_ChibiOS: fixed CANFD build on H7
2021-03-23 12:01:20 +11:00
Andrew Tridgell
f2ac61f6ba
HAL_ChibiOS: enable DShot on G4
2021-03-23 12:01:20 +11:00
Andrew Tridgell
f57b1b9c4b
HAL_ChibiOS: support logical/physical CAN bus mapping
...
allow for first CAN interface to be CAN2 or CAN3
2021-03-23 12:01:20 +11:00
Andrew Tridgell
2f7ff778be
HAL_ChibiOS: fixed bug in DMA resolver
...
idsets can be empty for a peripheral
2021-03-23 12:01:20 +11:00
Andrew Tridgell
439a944801
HAL_ChibiOS: added support for STM32G474 MCU
2021-03-23 12:01:20 +11:00
Andy Piper
e1d71486e4
AP_HAL_ChibiOS: build fixes for ChibiOS 20.3.x
2021-03-23 12:01:20 +11:00
Andrew Tridgell
5b59445471
AP_HAL_ChibiOS: fixes for build with 20.3.x ChibiOS
2021-03-23 12:01:20 +11:00
QioTek
fe30612bb0
AP_HAL_ChibiOS: release ICM20649 reserve sensor
...
BMI055 & BMI088 out of stock, release ICM20649 reserve sensor
2021-03-22 19:05:03 +11:00
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
2021-03-21 11:59:12 +11:00
Andy Piper
bb270014e7
AP_HAL_ChibiOS: make sure LEDs get a DMA channel on MatekH743-bdshot
2021-03-17 18:28:01 +11:00
Andy Piper
968d05a637
AP_HAL_ChibiOS: allow further LED channels to be allocated at the same length
2021-03-17 18:24:11 +11:00
Andrew Tridgell
8a8db85b9c
HAL_ChibiOS: fixed build of f103-trigger fw
2021-03-16 18:28:58 +11:00
Lava Chemist
4a52f945db
AP_HAL_ChibiOS: Add FlywooF745
2021-03-16 11:27:23 +11:00
Andy Piper
d6575fb6ad
AP_HAL_ChibiOS: bdshot configs for CubeYellow and mRoControlZeroH7
2021-03-03 18:02:26 +11:00
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
2021-03-02 11:58:38 +11:00
Andy Piper
6cb263056d
AP_HAL_ChibiOS: build fix for iomcu
2021-03-02 11:58:38 +11:00
Andy Piper
d0e4d510cf
AP_HAL_ChibiOS: order PWM timers by DMA UP stream id to prevent deadlocks in dshot
2021-03-02 11:58:38 +11:00
Andrew Tridgell
14791c335b
HAL_ChibiOS: fixed build of f3 boards without PWM out
2021-02-24 18:25:02 +11:00
Andrew Tridgell
243cf2199d
HAL_ChibiOS: disable shared DMA on IOMCU
...
this saves about 600 bytes of ram
2021-02-24 18:21:08 +11:00
Andrew Tridgell
c23f61b79a
HAL_ChibiOS: set internal error on panic
2021-02-24 18:18:37 +11:00
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
2021-02-24 15:39:10 +11:00
Andy Piper
b102391163
AP_HAL_ChibiOS: don't send rcout events without rcout thread
2021-02-24 08:55:12 +11:00
Mirko Denecke
edc2b0c94e
AP_HAL_ChibiOS: fix copy and paste typo
2021-02-23 08:15:50 +09:00
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
2021-02-20 20:49:45 +11:00
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
2021-02-20 14:37:11 +11:00
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
2021-02-20 14:37:11 +11:00
Andy Piper
4e61ba2dc8
AP_HAL_ChibiOS: reduce stack sizes for rcout, uart_rx and storage.
2021-02-20 14:37:11 +11:00
Andy Piper
94de238751
AP_HAL_ChibiOS: disable RCOUT thread on iomcu and rebuild iomcu.
2021-02-20 14:37:11 +11:00
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
2021-02-20 14:37:11 +11:00
mateksys
7eb4e9b370
AP_Periph: set PORT defaults for F405-MatekGPS
2021-02-18 11:51:50 +11:00
mateksys
97c2b7228e
AP_Periph: Matek F303 and F405 AP_Periph use DSP310 baro
2021-02-18 11:51:50 +11:00
Andy Piper
4c2cbdab8d
AP_HAL_ChibiOS: only setup half-duplex for receive when transmit is fully over
2021-02-17 20:09:48 +11:00
Andy Piper
5c32007cdf
AP_HAL_ChibiOS: ensure stop bits can be set before UART begin
2021-02-17 20:09:48 +11:00
Andy Piper
3a9107245c
AP_HAL_ChibiOS: allocate DMA and LED buffers correctly when the length changes
...
calculate DMAR pulse times correctly
ensure 50us pulse separation for LED
make sure the LEDs are signalled for output
only allow LED length to be set once
2021-02-17 18:36:36 +11:00
Michael du Breuil
c0da87c066
AP_HAL_ChibiOS: Update HitecMosaic to reflect changes to GPS config
2021-02-15 16:31:45 -07:00
Andrew Tridgell
9de1519928
HAL_ChibiOS: prevent hw flow control from hogging a DMA channel
...
When hw flow control is enabled check the CTS pin before we grab the
DMA channel to prevent a long timeout trying to send to a blocked port
from holding a DMA channel against another device
this fixes issue #16587
2021-02-15 07:23:56 +11:00
Andrew Tridgell
0cc4409845
HAL_ChibiOS: fixed handling of invalid channel for LED write
...
this prevents a null ptr dereference when an invalid channel (such as
one on IOMCU) is used for LEDs
2021-02-13 15:11:10 +11:00
Andrew Tridgell
098a17fe2e
HAL_ChibiOS: fixed CubeOrange ADSB param name
2021-02-13 13:06:20 +11:00
Andy Piper
20d8696a0a
AP_HAL_ChibiOS: BeastH7 has DPS310 baro
2021-02-10 18:33:59 +11:00
Andrew Tridgell
814393c9c2
HAL_ChibiOS: switch from DPS280 to DPS310 in boards that use the DPS310
2021-02-09 11:37:07 +11:00
Andrew Tridgell
86fda93781
HAL_ChibiOS: added heater correction of AK09916
...
this fixes a problem with the internal compass being impacted by the
magnetic field from the heater
2021-02-09 11:32:19 +11:00
Andrew Tridgell
2ab8ad0ef0
HAL_ChibiOS: added Durandal pinout details
2021-02-09 07:14:02 +11:00
Michael du Breuil
623951a262
AP_HAL_ChibiOS: Add some extra GPS SBF config
2021-02-05 11:52:29 -07:00
Tom Pittenger
d1e6b0befb
AP_HAL_ChibiOS: Add ADC1 support to STM32F3
...
This is useful for AP_Periph battery monitoring
2021-02-04 16:30:38 -08:00
Andrew Tridgell
b8e82a56f3
HAL_ChibiOS: don't start rout ticks till after full system init
...
this prevents an occasional boot hang on systems with DShot
enabled. We shouldn't be starting DShot output till after setup() is
complete as the outputs are still being configured
2021-02-05 07:17:57 +11:00
Andy Piper
2cdc202d19
AP_HAL_ChibiOS: use non-cachable SRAM3 for DMA on H743
...
Adjust SRAM1+SRAM2 to 256k as describe in the H743 reference manual
Provide access to mem_info() information
Co-authored-by: Andrew Tridgell <andrew@tridgell.net>
2021-02-03 23:35:44 +11:00
Andy Piper
06a1500f98
AP_HAL_ChibiOS: ensure GPIO pins get undef'ed properly
...
minimise bi-directional dshot configs for:
CubeOrange
Durandal
MatekF405
MatekH743
OmnibusNanoV6
Pixracer
mRoPixracerPro
omnibusf4pro
CUAV-X7
2021-02-03 18:49:06 +11:00
Michel Pastor
41f7587637
ChibiOS: Add SWD pins to SuccexF4 bootloader
2021-02-03 18:37:46 +11:00
auturgy
24268cc6de
AP_HAL_ChibiOS: add MatekH743-periph hwdef
2021-02-03 18:17:44 +11:00
mateksys
b91c65b4a4
AP_HAL_ChibiOS: add f405-MatekGPS & MatekF405-CAN hwdef
2021-02-03 18:09:35 +11:00
huhen
9ba35580db
HAL_ChibiOS: Init kakutef7 motor pins for correct initialization of some ESCs
2021-02-03 13:13:32 +11:00
Andy Piper
6f5d5c2bf9
AAP_HAL_ChibiOS: allow asserts to be printed on a GPIO pin
2021-01-27 19:36:58 +11:00
Andy Piper
d41c92d317
AP_HAL_ChibiOS: don't overwrite fault handler data, register forced faults
2021-01-27 19:13:18 +11:00
Andy Piper
20d928a86a
AP_HAL_ChibiOS: don't share DMA on OmnibusNanoV6 for Flash SPI
2021-01-27 19:04:49 +11:00
Andy Piper
873d35acd9
AP_HAL_ChibiOS: bi-directional dshot for MatekH743
2021-01-27 18:58:38 +11:00
Andy Piper
877dde4736
AP_HAL_ChibiOS: on BeastF7 share TIM3 UP/CH and give flash SPI dedicated channel
2021-01-27 18:54:43 +11:00
Andy Piper
9249b73e8b
AP_HAL_ChibiOS: correctly allow mixing of bidir and non-bidir channels
2021-01-27 18:49:15 +11:00
Andy Piper
2823fa7245
AP_HAL_ChibiOS: never write bytes that have not been erased on H7
...
Be more careful about flash failure conditions on H7
2021-01-27 18:30:36 +11:00
Andy Piper
78735a946e
AP_HAL_ChibiOS: allow STM32_FLASH_DISABLE_ISR for H7
2021-01-27 18:30:36 +11:00
Andrew Tridgell
155de6d2bc
HAL_ChibiOS: fixed build of AP_Periph on H7
2021-01-27 18:24:03 +11:00
Andrew Tridgell
9861a02c60
HAL_ChibiOS: save INS_ACC*ID persistent parameters
...
this enables full factory accelerometer calibration, so the user is
not required to run an accelcal, even if they change vehicle type
2021-01-27 09:49:35 +11:00
Andrew Tridgell
5ed19c764e
HAL_ChibiOS: expose load_persistent_params for @SYS
2021-01-21 13:09:21 +11:00
Andrew Tridgell
5c823debc0
HAL_ChibiOS: support saving persistent parameters to bootloader sector
...
when we flash the bootloader we can save key peristent parameters to
the end of the bootloader sector, allowing them to persistent across
changes of firmware type
This allows for factory temperature calibration
2021-01-21 13:09:21 +11:00
Andrew Tridgell
d81c2ee407
HAL_ChibiOS: allow for some embedded parameters on AP_Periph builds
2021-01-21 06:19:46 +11:00
bugobliterator
8b90eb23e0
AP_HAL_ChibiOS: distcc doesn't like lst generation commands
2021-01-20 19:21:14 +11:00
Andy Piper
2fadcf6ba0
AP_HAL_ChibiOS: handle UP/CH channel sharing on H7 correctly
2021-01-20 18:15:17 +11:00
Andy Piper
9e641a32ad
AP_HAL_ChibiOS: don't share flash SPI on BeastH7 and compile with -Os
2021-01-20 18:12:57 +11:00
Andy Piper
2b885cd79f
AP_HAL_ChibiOS: ensure that serial LED setup goes via an intermediate buffer
...
protect serial LED buffer transfers with mutex
protect serial LED buffer size with mutex
prevent serial LED interactions before rcout is ready
allocate a serial led buffer per channel that needs it
setup clock mask when needed
2021-01-20 18:10:18 +11:00
bugobliterator
c02c546077
AP_HAL_ChibiOS: add support for inline comments in hwdef.dat
2021-01-18 09:37:11 +11:00
bugobliterator
41693403e2
AP_HAL_ChibiOS: retain memory of past conflicts in dma_resolver
2021-01-18 09:37:11 +11:00
Andrew Tridgell
f93e2f6717
HAL_ChibiOS: enable 32k FRAM on H7 boards
2021-01-16 06:47:10 +11:00
pkocmoud
7b61a4d8c2
HAL_ChibiOS: support F7 with no crystal
2021-01-15 15:48:01 +11:00
Andy Piper
cb5be4fcc1
AP_HAL_ChibiOS: don't share IMU DMA on MatekH743 to avoid SPI DMA contention
2021-01-15 14:32:39 +11:00
Andy Piper
e781572d53
AP_HAL_ChibiOS: support iFlight BeastF7
...
reduce DMA contention on BeastH7 and correct sharing
add README's for BeastF7 and BeastH7
2021-01-13 18:09:33 +11:00
Andy Piper
fdbf2d369a
AP_HAL_ChibiOS: do not take bi-dir path when in serial DMA
2021-01-13 18:03:41 +11:00
bugobliterator
4346264113
AP_HAL_ChibiOS: ensure UP and CH timer channels share DMA for H7
2021-01-12 10:45:03 +11:00
Andy Piper
e9ea360a99
AP_HAL_ChibiOS: don't timeout after 11 bits on serial irqs
2021-01-12 09:58:58 +11:00
Andrew Tridgell
14433c3ae3
HAL_ChibiOS: enable ICM-40609 on mRoNexus
2021-01-11 14:43:35 +11:00
Andrew Tridgell
afbdd69165
AP_HAL_ChibiOS: adjust stack sizes
2021-01-10 08:28:55 +11:00
Andy Piper
8fb403c569
AP_HAL_ChibiOS: make sure BDMA channels are not adjacent
2021-01-10 08:11:37 +11:00
Andrew Tridgell
42bc9adfb7
HAL_ChibiOS: use ExpandingString for @SYS buffers
2021-01-05 10:52:00 +11:00
Peter Barker
ca6c133042
AP_HAL_ChibiOS: do not reuse va_list after it has been ended
2021-01-05 10:04:25 +11:00
Andrew Tridgell
324ff178d8
HAL_ChibiOS: fixed CUAV_GPS defaults.parm
2021-01-03 16:24:12 -08:00
Tom Pittenger
113f792ad1
AP_HAL_ChibiOS: update periph targets who have buzzer/LEDs with notify
2021-01-03 16:24:12 -08:00
Andrew Tridgell
6f4bfed82d
HAL_ChibiOS: fixed build with alarm and no PWM channels
...
this fixes a build error due to conditional always being false when
NUM_GROUPS==0 by using a C++ iterator. It also makes the code neater
2021-01-04 09:04:06 +11:00
Hwurzburg
ce361e51bf
HAL_ChibiOS: Reinstate HAL_MINIMIZE_FEATURES for 1MB F7 boards
2021-01-02 08:57:47 +11:00
Andrew Tridgell
e260c7ad59
HAL_ChibiOS: update f303-MatekGPS to allow disable of MSP
...
and use DMA for MSP
2021-01-01 15:40:13 +11:00
David B. Bitton
8dbe0a71ba
AP_HAL_ChibiOS: add support for Toshiba LED
2020-12-31 11:02:10 -08:00
Andy Piper
401e5c2073
AP_HAL_ChibiOS: add support for bidir DShot support in RCOutput
...
add support for sampling GPIO pins using timer
don't restart pwm group when not doing bi-dir
fix hwdef generation preproc for TIM DMA
decode telemetry at the start of the dshot cycle
calculate dshot pulse separation correctly and ensure we output rapidly enough
calculate dshot min periods and timeouts correctly
refactor dshot_send() into dshot_send_groups()
use bi-dir dshot channel mask
selectively enable bi-dir RC Channels
process bi-dir mask correctly when allocating DMA channels
allow UP and CH DMA channel sharing
optionally enable bidir vars in hwdef.
enable bi-dir dshot in KakuteF7Mini
enable bi-dir dshot in OmnibusF4Pro
enable bi-dir dshot in OmnibusNanoV6
enable bi-dir dshot in MatekF405
enable bi-dir dshot in fmuv5
enable bi-dir dshot in fmuv3
enable bi-dir dshot in OmnibusF7V2
enable bi-dir dshot in OmnibusNanoV6
enable bi-dir dshot in CubeOrange
enable bi-dir dshot in Pixracer
enable bi-dir dshot in mRoPixracerPro
Co-authored-by: bugobliterator <siddharthbharatpurohit@gmail.com>
2020-12-30 19:14:16 +11:00
Andy Piper
07f199ea1a
AP_HAL_ChibiOS: rename system_initialized() and add is_system_initialized()
2020-12-30 18:16:59 +11:00
Andy Piper
83c8807b39
AP_HAL_ChibiOS: when HAL_ENABLE_THREAD_STATISTICS is defined add ChibiOS thread stats to threads.txt
...
define HAL_ENABLE_THREAD_STATISTICS in hwdef.h
2020-12-30 18:15:05 +11:00
Andy Piper
a4b2930223
AP_HAL_ChibiOS: iFlight Beast H7 AIO hwdef
2020-12-30 18:13:03 +11:00
ukmook
bf34041211
AP_HAL_ChibiOS: add support for Pixracer-periph
2020-12-29 07:52:39 -07:00
Tom Pittenger
5432c9957a
AP_HAL_ChibiOS: rename AP_PERIPH_<feature>_DEFAULT to HAL_PERIPH_<feature>_DEFAULT
2020-12-28 09:16:02 +11:00
Tom Pittenger
083088bfff
AP_HAL_ChibiOS: adjust defaults to use param instead of hardcoded defaults
2020-12-25 16:24:50 -07:00
Ari Krupnik
79e1f5e8bd
AP_HAL_ChibiOS: standard spelling of variant
2020-12-25 00:01:50 +11:00
Phillip Kocmoud
062c6cef41
HAL_ChibiOS: Fix typo relating to pin PB7:I2C4_SDA
2020-12-23 06:43:19 +11:00
Siddharth Purohit
5b58163c35
AP_HAL_ChibiOS: add HAL_PERIPH_ENABLE_RCOUT_TRANSLATOR to CubeBlack-periph and CubeOrange-periph
2020-12-21 18:27:07 -08:00
Tom Pittenger
da74d755d0
AP_HAL_ChibiOS: add new HAL_PWM_COUNT define
2020-12-21 18:27:07 -08:00
Tom Pittenger
f670f7a9b6
AP_HAL_ChibiOS: change ADSB to use param ADSB_PORT instead of define
2020-12-17 23:24:04 -08:00
Tom Pittenger
5c98e18236
AP_HAL_CubeORange-periph: enable HAL_PERIPH_ALLOW_MAVLINK_UART_OR_USB_REBOOT_CMD on USB
2020-12-18 06:59:09 +11:00
Andrew Tridgell
b4201436dd
HAL_ChibiOS: fixed flash space on 16k bl boards
...
this avoids the stm32_flash_recent_erase() function which added around
800 bytes to the bootloader. It is not needed
2020-12-17 12:51:25 +11:00
Sebastian Witt
6cfaae4e7d
AP_HAL_ChibiOS: Support for Diatone MambaF405 MK2
2020-12-16 19:07:07 +11:00
Andrew Tridgell
bf546f363d
HAL_ChibiOS: don't init serial 1 and 3
...
these should not be treated as special. Initialising them early just
wastes memory if the end up not being used
2020-12-15 10:32:46 +11:00
Andrew Tridgell
e54fc4b0de
AP_HAL_ChibiOS: convert to using hal.serial() instead of hal.uartX
2020-12-15 10:32:46 +11:00
Phillip Kocmoud
ce87b62dcc
AP_Periph: Add alternate ordering of NCP5623 LED colors
2020-12-12 14:57:35 +11:00
Tom Pittenger
68b2982cc6
AP_HAL_ChibiOS: CubeBlack/Orange-periph to use default HAL_SUPPORT_RCOUT_SERIAL
2020-12-09 07:53:09 -08:00
Tom Pittenger
2203bf2400
AP_HAL_ChibiOS: Add f303-periph default RANGEFINDER_MAX_INSTANCES 1
2020-12-09 18:05:24 +11:00
Andrew Tridgell
0c440d5675
HAL_ChibiOS: cope with flash erase in expected delay
...
when there has been a flash erase when we are definately in an
expected delay
2020-12-08 13:22:36 +11:00
Andrew Tridgell
b4de6fb56a
HAL_ChibiOS: added new option DEFAULTGPIO for hwdef.dat
...
this allows ESD issues to be avoided by pulling all unused pins low
2020-12-08 11:21:57 +11:00
Andrew Tridgell
f44e4aaefb
HAL_ChibiOS: always set STM32_DMA_REQUIRED for non-bootloader
...
this fixes an issue for uart-only AP_Periph builds
2020-12-08 10:27:27 +11:00
Andrew Tridgell
b1e7b508db
HAL_ChibiOS: added HitecMosaic
2020-12-06 16:48:08 +11:00
Andrew Tridgell
1723cf8efb
HAL_ChibiOS: reduce SPI clock on MatekH743 mpu6k to 2MHz
...
this fixes regular transfer errors
2020-12-06 13:04:52 +11:00
Tom Pittenger
e235fd311e
AP_HAL_ChibiOS: fixed comment in script file
2020-12-03 20:33:51 +11:00
Andrew Tridgell
6765265a3b
AP_Periph: switched to 1kHz clock for f303-periph
...
and use CAN RX buffer size of 64.
This makes for more efficient CPU usage on f3, and fixes an issue with
lost CAN parameter replies causing timeouts in the CAN parameter
download protocol
2020-12-03 20:00:55 +11:00
Andrew Tridgell
b289701d20
HAL_ChibiOS: removed SPI devices on f103-periph
...
these are unused and saves us a couple of k of flash
2020-12-03 15:50:50 +11:00
Andy Piper
cf2602f91d
AP_HAL_ChibiOS: add support for @SYS/dma.txt for DMA contention
2020-12-02 18:17:23 +11:00
Phillip Kocmoud
38dd3b9209
hwdef: add mRo Control Zero Classic
2020-12-01 15:19:50 +11:00
Phillip Kocmoud
bef522387a
hwdef: add mRo Control Zero H7
2020-12-01 14:46:55 +11:00
Andrew Tridgell
cf22caa7ef
HAL_ChibiOS: raise stack limits in f303 peripherals
2020-12-01 11:14:50 +11:00
Andrew Tridgell
3ba46d5bd9
HAL_ChibiOS: enable reporting of watchdog reset on AP_Periph
2020-12-01 11:14:50 +11:00
Andrew Tridgell
ba69cd72c9
HAL_ChibiOS: improved stack checking and stack display
...
display both ISR stack and thread stacks. Show total stack sizes as
well as amount of stack remaining
2020-12-01 11:14:50 +11:00
Andrew Tridgell
84eac7642b
HAL_ChibiOS: improved stack checking
2020-12-01 11:14:50 +11:00
Andrew Tridgell
2d459dccc3
HAL_ChibiOS: reduced stack usage in CAN RX handler
2020-12-01 11:14:50 +11:00
Andrew Tridgell
c778d14fd3
HAL_ChibiOS: enable stack checking on f303 boards
2020-12-01 11:14:50 +11:00
Andrew Tridgell
573cd6db6d
HAL_ChibiOS: adjust MAIN_STACK for more ISR stack
...
we need more stack to deal with interrupt nesting between CAN, system
timer and serial interrupts
2020-12-01 11:14:50 +11:00
Andrew Tridgell
52a90e7a33
HAL_ChibiOS: fixed monitor thread with no logging
2020-12-01 11:14:50 +11:00
Andrew Tridgell
2a29b0fcf5
HAL_ChibiOS: fixed AP_Periph build with --enable-asserts
2020-12-01 11:14:50 +11:00
Andrew Tridgell
4d171ec19a
AP_HAL_ChibiOS: support uartI, allowing a total of 9 uarts
...
this allows for OTG2 on the MatekH743 board, which makes SLCAN much
easier
2020-11-30 14:09:31 +11:00
Phillip Kocmoud
c9182b39d5
hwdef: mRo Control Zero H7 OEM - update and improve uniformity
2020-11-30 08:48:36 +11:00
Phillip Kocmoud
b55920165a
hwdef: mRo Pixracer Pro - update and improve uniformity
2020-11-30 08:48:36 +11:00
Phillip Kocmoud
a379bb8fc5
hwdef: mRo Control Zero F7 update and improve uniformity
2020-11-28 20:28:22 +11:00
Andrew Tridgell
a587195912
HAL_ChibiOS: change f303-MatekGPS to 5Hz by default
2020-11-27 19:41:33 +11:00
Tom Pittenger
67405cedb2
AP_HAL_ChibiOS: add AP_BattMonitor support to CubeBlack&Orange-periph
2020-11-25 14:20:53 +11:00
斯东Stone
4990048efb
HAL_ChibiOS: Correct a typo and Update product link url for PH4-mini
2020-11-24 12:48:11 +11:00
QioTek
e4f4868d9b
HAL_ChibiOS: add QMC5883L on QioTekZealotF427
...
add QMC5883L on QioTekZealotF427
2020-11-22 06:10:34 +11:00
Marek Łukasiewicz
64f208cbec
HAL_ChibiOS: Add af_parse for CubeMX pinout csv
2020-11-18 18:39:07 +11:00
Phillip Kocmoud
701ab83f01
HAL_ChibiOS: Added support for mRo ControlZero OEM H7 flight controller
2020-11-18 18:28:24 +11:00
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
2020-11-18 17:14:43 +11:00
Andrew Tridgell
8f682c0782
HAL_ChibiOS: check all memory at 10Hz
2020-11-18 17:14:43 +11:00
Andrew Tridgell
95a823a702
HAL_ChibiOS: added link list of all memory allocations
...
check all allocations for corruption on free() and malloc_check()
2020-11-18 17:14:43 +11:00
Andrew Tridgell
3f775205e6
HAL_ChibiOS: fixed use of chHeapFree
...
should be free
2020-11-18 17:14:43 +11:00
Andrew Tridgell
ce3e1a69ec
HAL_ChibiOS: added memory guard system
2020-11-18 17:14:43 +11:00
Huibean
cf2b89c4f1
AP_HAL_ChibiOS:add mazzy star drone hwdef
2020-11-17 17:57:07 +11:00
Tom Pittenger
e0e3c23a87
AP_HAL_ChibiOS/hwdef: fix misprint in comment
2020-11-14 08:00:40 +11:00
Marek Łukasiewicz
8813057b4c
AP_HAL_ChibiOS: Tweak sorting to be py2/py3 compatible
2020-11-12 10:27:31 +11:00
Andrew Tridgell
280e9d1c41
HAL_ChibiOS: fixed bootloader build
2020-11-10 16:15:45 +11:00
Andrew Tridgell
17b4198921
HAL_ChibiOS: add WITH_FATFS to environment
2020-11-10 16:15:45 +11:00
Andrew Tridgell
ac566763fe
HAL_ChibiOS: disable loop delay on replay
2020-11-10 16:15:45 +11:00
Andrew Tridgell
bb3b59966f
HAL_ChibiOS: define INS_MAX_INSTANCES if less than 3
...
save some flash and memory
2020-11-10 16:15:45 +11:00
Andrew Tridgell
cb034c50a7
HAL_ChibiOS: fixed orientation of compass on M10070B
2020-11-08 16:13:17 +11:00
Andrew Tridgell
3b7b2b89a5
HAL_ChibiOS: added baro for mRo Location-one GPS
2020-11-08 16:13:17 +11:00
Phillip Kocmoud
c192efea0a
hwdef:PixracerPro - Fix analog volt pin assignments
2020-11-03 08:17:54 +11:00
Andrew Tridgell
46976c4358
HAL_ChibiOS: fixed remapping of ioline_t with BRD_ALT_CONFIG
...
when a peripheral is made available via BRD_ALT_CONFIG we need to
remap the existing ioline_t in the UART and I2C drivers to use the new
pin.
This fixes an issue with half-duplex, inverted, swapped UART pins for
protocols like FPort and FPort2
2020-10-28 19:51:45 +11:00
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
2020-10-27 10:45:03 +11:00
Andrew Tridgell
96f7397099
HAL_ChibiOS: make PowerC primary power on CUAV-X7
...
CUAV considers the CAN power to be the main power for this board
2020-10-24 08:27:21 +11:00
Michael Oborne
b383db15c7
ChibiOS: fix cubeblack+ name and usbid
2020-10-24 08:26:55 +11:00
Andrew Tridgell
fb1dcdb059
HAL_ChibiOS: added BL suffix to bootloader USB IDs for two boards
...
our convention is to have -BL on end of USB product IDs in bootloaders
2020-10-13 17:59:13 +11:00
Andrew Tridgell
418bd33c43
HAL_ChibiOS: fix CUAV-X7 power bits
2020-10-13 17:58:30 +11:00
Andrew Tridgell
25bc128248
HAL_ChibiOS: fixed periph overpower ifdef
...
fixes overcurrent logging on several boards
2020-10-13 17:58:30 +11:00
Andrew Tridgell
989f8c5d41
HAL_ChibiOS: fixed a race condition in UART DMA transmit
...
this fixes an issue seen on one board which caused a watchdog on high
uart DMA load. We have reproduced the issue on another board by
forcing a very high DMA transfer rate on the same DMA channel while
also requesting very high transfer rates on the UART. The likely race
is in the DMA transmit timeout code, and the simplest fix is to lock
out interrupts during the DMA setup to ensure the tx timeout cannot
trigger during the setup
2020-10-12 13:25:48 +11:00
bugobliterator
5880628b01
hwdef: add support for CubeBlack-periph
2020-10-08 09:31:35 +11:00
bugobliterator
e16cab0437
AP_HAL_ChibiOS: ensure we timeout while checking FDCAN register sets
2020-10-08 09:31:35 +11:00
bugobliterator
ca957519dc
AP_HAL_ChibiOS: redo filter configuration to make it work with STM32H7
2020-10-08 09:31:35 +11:00
QioTek
f04de7d610
HAL_ChibiOS: Add QioTekZealotF427 build target
...
I've added the hwdef to support the QioTekZealotF427
It has 3 IMU sensors(ICM20698,ICM20602,BMI055), a Compass(Ist8310),
2Baro sensors(DSP310,MS5611), an integrated analog OSD, 14motor
outputs, 4Relay output, 5uarts, 2Power Module input, an i2c, a Can.
2020-10-05 07:41:06 +11:00
Andrew Tridgell
702a3926f8
HAL_ChibiOS: setup defines for more flow control pins
...
allow all uarts to have flow control
2020-10-03 20:22:56 +10:00
Andrew Tridgell
5e80b10396
HAL_ChibiOS: enable telem3 on Durandal
...
the RCIN issue is not there in the final production boards
2020-10-03 20:22:56 +10:00
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
2020-10-02 09:38:24 +10:00
bugobliterator
0a4ea250ad
AP_HAL_ChibiOS: disable CANFilter on H7 boards temporarily
2020-10-01 07:19:19 +10:00
Andrew Tridgell
4b747430e1
HAL_ChibiOS: save 2k in f103 bootloader
...
don't include serial bl support if dev list is empty
2020-09-24 12:32:19 +10:00
Siddharth Purohit
6fb973081b
AP_HAL_ChibiOS: enable all I2C compasses by default for f103 boards
2020-09-24 12:32:19 +10:00
Andrew Tridgell
0e8c8c29a8
HAL_ChibiOS: fixed f303-MatekGPS build
2020-09-24 12:32:19 +10:00
Andrew Tridgell
246e790484
AP_Bootloader: use new hal CAN interface for CAN support
2020-09-24 12:32:19 +10:00
Siddharth Purohit
a79efaeb1d
AP_HAL_ChibiOS: hwdef: add support for HAL CANIface based bootloader
2020-09-24 12:32:19 +10:00
Siddharth Purohit
882c86c394
AP_HAL_ChibiOS: add app start offset to leave space for params
2020-09-24 12:32:19 +10:00
Siddharth Purohit
1f16aa8360
HAL_ChibiOS: add hwdef for CubeOrange-periph
2020-09-24 12:32:19 +10:00
Siddharth Purohit
62df67a4b8
HAL_ChibiOS: hwdef: modify to use HAL CAN driver instead of ChibiOS's
2020-09-24 12:32:19 +10:00
Siddharth Purohit
36ffcdae30
HAL_ChibiOS: modify hal can drivers for use by AP_Periph
2020-09-24 12:32:19 +10:00
Hwurzburg
d5722b15e9
AP_ChibiOS: fix configuration number in OmnibusF7V2 hwdef
2020-09-23 07:35:22 +10:00
Hwurzburg
de8002ab5e
AP_HAL_ChbiOS: ALT config to enable UART3 in place of I2C
2020-09-22 09:48:02 +10:00
Andrew Tridgell
0ba256f625
HAL_ChibiOS: fixed warning on gcc9
...
packed structure can be misaligned
2020-09-22 08:07:23 +10:00
Andrew Tridgell
90cd2a38b6
HAL_ChibiOS: fixed gcc9 warnings
2020-09-22 08:07:23 +10:00
Hwurzburg
c64f286333
AP_ChibOS: add UART7_RX to OMNIBUSF7V2
2020-09-17 10:47:18 +10:00
bugobliterator
575a56a6b6
hwdef: CubeOrange: do power reset on peripherals and sensor at boot
2020-09-16 18:08:08 +10:00
bugobliterator
a2ee82d8d9
hwdef: use inv2 sensor checks in CubeOrange
2020-09-16 18:08:08 +10:00
Andy Piper
570fd59c39
AP_HAL_ChibiOS: disable OSD parameters on F7 1Mb boards with SD cards
2020-09-10 18:10:32 +10:00
Andrew Tridgell
1ffbbb2896
HAL_ChibiOS: added FLASH_TOTAL to environment
2020-09-10 07:41:25 +10:00
Andy Piper
bbaaf7d66f
AP_HAL_ChibiOS: disable features on KakuteF7 and OmnibusF7v2 to mirror KakuteF7Mini
2020-09-09 20:36:42 +10:00
Andrew Tridgell
90e488d29d
HAL_ChibiOS: set airspeed type in f303-MatekGPS fw
2020-09-09 12:04:49 +10:00
Andrew Tridgell
e95a44e73c
HAL_ChibiOS: run f303-MatekGPS at 10Hz
2020-09-09 06:35:50 +10:00
Andrew Tridgell
844db20db0
HAL_ChibiOS: use a default node ID for f303-MatekGPS
2020-09-09 06:35:50 +10:00
Andrew Tridgell
9c7568eb5f
HAL_ChibiOS: enable MSP output for f303-MatekGPS
2020-09-09 06:35:50 +10:00
chobits
f4320c935c
AP_HAL_ChibiOS: fix kakutef7/mini motor glitch when using dshot
2020-09-08 18:57:30 +10:00
vierfuffzig
63fdac0048
AP_HAL_ChibiOS: add USART3 as alt config on OmnibusNanoV6
2020-09-07 15:34:01 +10:00
Michael Oborne
4e9848ab3a
HAL_ChibiOS: fix sdcard param init
...
the write was failing because of a 0 byte write attempt, the response was -1 vs 0
this results in not using the sdcard backend for storage for all boots after the initial
2020-09-04 07:13:12 +10:00
Andrew Tridgell
3a252a042b
HAL_ChibiOS: fixed fast sampling on F32Lightning
...
this SPI bus on this board can't handle 8MHz
2020-09-02 06:42:44 +10:00
Andrew Tridgell
491e82159c
HAL_ChibiOS: add HAL_WITH_SPI_xx defines for SPI devices
...
this allows us to avoid building drivers for SPI devices we don't
have, such as OSD
2020-09-02 05:56:46 +10:00
Siddharth Purohit
d25908a1c9
AP_HAL_ChibiOS: keep a backup of storage for last 100 boots
2020-09-01 14:31:53 +10:00
vierfuffzig
56e44c46ca
AP_HAL_ChibiOS: disable IMU fast sampling on F35 / WingFC10
...
fast sampling introduces random IMU glitches, bisect search identifies 9c2caf5b12
disabling fast sampling fixes IMU back to expected behaviour. see:
https://github.com/ArduPilot/ardupilot/issues/15090
https://discuss.ardupilot.org/t/shaking-horizon-and-jittering-servos/60420
for reference
2020-08-31 19:50:09 +10:00
Andrew Tridgell
36442dc9b0
HAL_ChibiOS: added Matek CAN GPS
...
supports GPS, baro, mag and airspeed
2020-08-25 09:59:15 +10:00
Andrew Tridgell
4c4c3d467b
HAL_ChibiOS: added f103-Airspeed sensor
...
for Matek CAN airspeed sensor
2020-08-25 09:59:15 +10:00
bugobliterator
5eb0e0a718
AP_HAL_ChibiOS: fix name for RX Queue size define
2020-08-24 06:48:56 +10:00
Siddharth Purohit
8dcb973dad
HAL_ChibiOS: fix SWD config in f3 boards
2020-08-20 19:08:14 +10:00
Siddharth Purohit
7929efec0d
HAL_ChibiOS: add EventSource HAL
2020-08-19 17:31:09 +10:00
Siddharth Purohit
265e9b8cc6
HAL_ChibiOS: add native time info methods
2020-08-19 17:31:09 +10:00
Siddharth Purohit
a7d641c705
AP_HAL_ChibiOS: add available method for locked state
2020-08-19 17:31:09 +10:00
Siddharth Purohit
cdf8e369f1
AP_HAL_ChibiOS: create UAVCAN agnostic CANIface driver
...
HAL_ChibiOS
2020-08-19 17:31:09 +10:00
Siddharth Purohit
697e4141cb
AP_HAL: add common Event interface
2020-08-19 17:31:09 +10:00
Siddharth Purohit
3ddd1d484a
AP_HAL_ChibiOS: add support for bank selection call outside SPI driver
2020-08-06 12:41:35 +10:00
Andy Piper
baf92a17f9
AP_HAL_ChibiOS: disable AP_Mount on "mini" boards
2020-08-04 09:18:14 +10:00
Peter Barker
b5d0480bed
AP_HAL_ChibiOS: log accumulated power status flags; all flags ever set
2020-07-21 09:12:14 +10:00
Andrew Tridgell
d283dd7d00
HAL_ChibiOS: define polarity of 3.3/5v selection for PWM
2020-07-21 08:47:27 +10:00
Andrew Tridgell
99ac8e2fbe
HAL_ChibiOS: enable BRD_PWM_VOLT_SEL parameter for mRoPixracerPro
2020-07-21 08:47:27 +10:00
Peter Barker
efb576292f
AP_HAL_ChibiOS: handle queue push and pop failing
2020-07-20 10:19:47 +09:00
Henry Wurzburg
d78c5371db
AP_HAL_ChibiOS: remove fmuv4 and update Pixracer
2020-07-13 15:24:54 +10:00
Andrew Tridgell
9f1e641637
HAL_ChibiOS: added new STM32Cube configs
2020-07-10 13:33:51 +10:00
Andrew Tridgell
84bd59a7bb
HAL_ChibiOS: support H7 with no crystal
2020-07-10 13:33:51 +10:00
Andrew Tridgell
cfbfb27004
HAL_ChibiOS: support no-crystal F3 setups
2020-07-10 13:33:51 +10:00
Andy Piper
2bae080be4
AP_HAL_ChibiOS: increase RCIN stack size
2020-07-07 18:48:06 +10:00
Peter Barker
cadb1012df
AP_HAL_ChibiOS: reenable full features on KakuteF7Mini
2020-07-02 18:38:46 +10:00
Andrew Tridgell
ce8591ddbc
HAL_ChibiOS: re-enable full features on KakuteF7 and OMNIBUSF7V2
...
we now have enough space with recent changes for these boards
2020-07-02 18:38:46 +10:00
Andy Piper
c707303336
AP_HAL_ChibiOS: hold buzzer ping low in bootloader for omnibusf4pro
2020-06-30 17:58:35 +10:00
Andy Piper
48e0da8444
AP_HAL_ChibiOS: pull buzzer pin low in Kakute F7 bootloader to prevent startup scream
2020-06-30 17:58:35 +10:00
Andrew Tridgell
20b2396646
HAL_ChibiOS: fixed bug in undef of pins
...
revert pin to initial state on undef
2020-06-30 14:28:30 +10:00
Randy Mackay
f9a866d09a
AP_HAL_ChibiOS: luminousbee4 serial5 to mavlink2
2020-06-30 09:42:49 +10:00
Randy Mackay
3e0bb4110a
AP_HAL_ChibiOS: fmuv4 serial5 to mavlink2
2020-06-30 09:42:49 +10:00
Randy Mackay
ced448b706
AP_HAL_ChibiOS: DrotekP3Pro serial5 to mavlink2
2020-06-30 09:42:49 +10:00
MATEKSYS
903b44da7d
HAL_ChibiOS: Add DPS310 for MatekF405-WING,F765-WING and H743
2020-06-22 19:35:01 +10:00
Andrew Tridgell
7f429302ed
HAL_ChibiOS: increase monitor thread stack to 768 bytes
...
attempt to fix issue #14582
2020-06-15 17:56:34 +10:00
Andrew Tridgell
6fa623d074
HAL_ChibiOS: added Holybro Pix32v5
2020-06-12 21:23:16 +10:00
MATEKSYS
14e01e21b7
HAL_ChibiOS: MatekH743: move baro to I2C2 bus
2020-06-11 17:31:59 +10:00
Andrew Tridgell
c1403a2e2b
HAL_ChibiOS: fixed default CubeOrange pin for 2nd current sensor
2020-06-10 17:32:11 +10:00
Andrew Tridgell
6a1f43d5df
HAL_ChibiOS: fixed build with our old compiler
...
gcc 4.9 doesn't like static_assert() in C code
2020-06-07 14:11:48 +10:00
duccan
cdcdd5ce27
AP_HAL_ChibiOS: Added support for Bitcraze Crazyflie 2.1
...
Rework after review:
- Kept old IMU and barometer definition of crazyflie 2.0 in hwdef
- Added comment regarding soft-reset command
- Added defaults.parm for crazyflie
2020-06-07 07:49:37 +10:00
duccan
0d96c7f7a5
AP_HAL_ChibiOS: Added support for Bitcraze Crazyflie 2.1
2020-06-07 07:49:37 +10:00
James Jacobsson
8a87322d93
AP_HAL_Chibios: Adjust MatekF765-Wing voltage and current scales
...
The new values matches the ones from here:
http://www.mateksys.com/?portfolio=f765-wing#tab-id-5
Also verified to be a lot more accurate in real life.
2020-06-04 10:06:22 +10:00
Phillip Kocmoud
0d5a0f392c
hwdef.dat update x2.1-777
2020-06-04 09:51:27 +10:00
Andrew Tridgell
571fbf8f71
HAL_ChibiOS: update power VALID pins
2020-06-04 09:51:27 +10:00
Andrew Tridgell
863807c9fb
HAL_ChibiOS: use more consistent naming for power VALID pins
...
this uses _VALID for an active high pin and _nVALID for an active low
pin. It uses _OC for active high overcurrent and _nOC for active low
overcurrent
2020-06-04 09:51:27 +10:00
Peter Barker
931c77fa77
AP_HAL_ChibiOS: correct clearing of UART drivers
2020-06-03 17:00:44 +10:00
CUAVcaijie
220e6999c7
HAL_ChibiOS:Adapt to CUAV Nora V1.2 hardware
2020-05-28 19:13:49 +10:00
pkocmoud
7809dc849c
HAL_ChibiOS: Added support for mRo Pixracer Pro flight controller
2020-05-27 21:22:56 +10:00
Peter Barker
6d9e563ede
AP_HAL_ChibiOS: override read(buffer,count) method to be more efficient
2020-05-26 15:59:11 +10:00
Henry Wurzburg
9c72525bbf
AP_HAL_ChibiOS: Add unused LED output as GPIO in OmnibusF4Pro def
2020-05-26 10:51:32 +10:00
Peter Barker
8f54de4184
AP_HAL_ChibiOS: add discard_input method on UARTDriver
2020-05-26 09:20:32 +10:00
Andy Piper
33c1523905
AP_HAL_ChibiOS: add harmonics to DSP
...
add vector_mean_float() to DSP
allow fft_start() to use ObjectBuffer<float> for lock-free access
2020-05-24 07:43:34 +10:00
bugobliterator
7b9f0f3fd7
HAL_ChibiOS: use FIFO mode instead of Queue mode in FDCAN driver
2020-05-21 15:32:53 +10:00
Henry Wurzburg
12d5602926
AP_HAL_ChibiOS: Add ability to use UART3 and UART4 in bd alt config 4
2020-05-11 14:18:35 +10:00
Peter Barker
50523ed0fa
AP_HAL_ChibiOS: remove pointless initialisations
...
These are never stack-allocated.
Only saves 16 bytes - but several lines
2020-05-10 18:03:36 +10:00
Andrew Tridgell
2200dfefdb
HAL_ChibiOS: during setup() we expect delays
...
this may fix occasional internal errors on SPI during startup
2020-05-10 15:12:43 +10:00
Andrew Tridgell
259cb0aafd
HAL_ChibiOS: removed EKF2 define, not needed any more
2020-05-10 15:09:54 +10:00
Andrew Tridgell
61d036acf3
HAL_ChibiOS: added build time check for right system clock
...
this helps prevent cases where we underclock a chip due to mistake in
headers or hwdef.dat
2020-05-10 15:09:28 +10:00
Andrew Tridgell
69676cd614
HAL_ChibiOS: support 24MHz f3 MCUs
2020-05-10 15:09:28 +10:00
Henry Wurzburg
3f735e7e54
HAL_ChibiOS: Make full UART4 available as bd config option
2020-05-10 08:00:57 +10:00
Henry Wurzburg
225a305cb9
AP_HAL_ChibiOS:Remove alt config since its not useful (no TX available)
2020-05-10 08:00:21 +10:00
Peter Barker
967f8bf726
AP_HAL_ChibiOS: correct description of where stdout goes
2020-05-05 07:57:57 +10:00
Andrew Tridgell
e126b6d346
HAL_ChibiOS: fixed race condition in storage write
...
we could mark a line as clean when it should be dirty if we lose a
race condition between storage thread and writer
2020-05-04 17:22:41 +10:00
Peter Barker
48da4e523c
AP_HAL_ChibiOS: create and use INTERNAL_ERROR macro so we get line numbers
2020-04-30 13:21:36 +10:00
pkocmoud
defb7dc43f
hwdef: add mRo M10070 Location One CAN GPS
2020-04-30 11:31:43 +10:00
Andrew Tridgell
3ec2ef787d
HAL_ChibiOS: fixed build warning
2020-04-29 12:20:19 +10:00
Andrew Tridgell
ce68e0fbb5
HAL_ChibiOS: fixed bootloader build
2020-04-29 07:36:55 +10:00
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
2020-04-29 07:36:55 +10:00
Andrew Tridgell
18e88e0ea3
HAL_ChibiOS: implement stack overflow hook
...
this needs C bindings to allow call from low level RTOS thread
switching code
2020-04-29 07:36:55 +10:00
Andrew Tridgell
c61cecdbc7
HAL_ChibiOS: report thread name in watchdog
2020-04-29 07:36:55 +10:00
Andrew Tridgell
09477b2dfe
HAL_ChibiOS: shorted thread names
...
changes names so threads can be distinguished by first 4 bytes
2020-04-29 07:36:55 +10:00
Andrew Tridgell
a5965d5a9e
HAL_Chibios: removed unnecessary debug defines
2020-04-29 07:36:55 +10:00
Andrew Tridgell
2c26807736
HAL_ChibiOS: embed hwdef.dat in ROMFS for all boards
2020-04-29 07:36:55 +10:00
Andrew Tridgell
9350c78023
AP_HAL_ChibiOS: use GCS_SEND_TEXT()
2020-04-29 07:36:55 +10:00
Andrew Tridgell
6bacf021c8
HAL_ChibiOS: disable thread_info in AP_Periph and bootloader
2020-04-29 07:36:55 +10:00
Andrew Tridgell
d82cd1363b
HAL_ChibiOS: fixed bootloader build
2020-04-29 07:36:55 +10:00
Andrew Tridgell
f0c9f4003e
HAL_ChibiOS: implement thread_info()
2020-04-29 07:36:55 +10:00
Andrew Tridgell
ea71b72c87
HAL_ChibiOS: fixed issue with I2C4 on H743
...
when both I2C4 and SPI4 are active on a H743 I found that some BDMA
completion interrupts were lost, which resulted in SPI transfer
timeouts. Close inspection of the ChibiOS BDMA, I2Cv3 and SPIv3
drivers did not reveal any issues, but I found that the issue only
happened when the first 4 BDMA streams were used. This change splits
the 4 streams across the first and 2nd half of the BDMA controller,
and that fixes the problem.
This works as there are only 2 peripherals (I2C4 and SPI6) that want
to use BDMA with our current setup. If we ever wish to enable ADC3
(which also uses BDMA) we will need to revisit this issue
2020-04-28 17:42:15 +10:00
Andrew Tridgell
32cdfddf12
HAL_ChibiOS: convert all hwdef from UART_ORDER to SERIAL_ORDER
...
much easier to understand
2020-04-28 10:32:23 +10:00
Andrew Tridgell
a52070d226
HAL_ChibiOS: use SERIAL_ORDER instead of UART_ORDER
...
SERIAL_ORDER is much easier for developers to understand as it maps
directly to the SERIALn_ parameters
2020-04-28 10:32:23 +10:00
Andrew Tridgell
0994655f5b
HAL_ChibiOS: fixed build warnings for bootloader builds
2020-04-28 10:32:23 +10:00
Andrew Tridgell
9557a5c22c
HAL_ChibiOS: added more STM32CubeMX configs
2020-04-28 10:32:23 +10:00
Andrew Tridgell
a9df9fe0c0
HAL_ChibiOS: removed clock tree settings in most hwdef.dat
...
these are better set automatically in the headers. This simplifies the
task of doing a new port
2020-04-28 10:32:23 +10:00
Andrew Tridgell
a638196334
HAL_ChibiOS: skyviper-f412-rev1 uses a custom clock tree
2020-04-28 10:32:23 +10:00
Andrew Tridgell
e8b2b52bae
HAL_ChibiOS: removed STM32_VDD from hwdef.dat
...
use default
2020-04-28 10:32:23 +10:00
Andrew Tridgell
d9efac2993
HAL_ChibiOS: only allow PLL override in clock selection part of header
2020-04-28 10:32:23 +10:00
Andrew Tridgell
fe765b8845
HAL_ChibiOS: switched CUAV_GPS to use same clocks as other F4
2020-04-28 10:32:23 +10:00
Andrew Tridgell
82c45f6cdb
HAL_ChibiOS: default STM32_VDD to 3.3V
2020-04-28 10:32:23 +10:00
Andrew Tridgell
29f538dec9
HAL_ChibiOS: use common header for STM32 clock config
...
avoid the need for clock config lines in most hwdef.dat files
2020-04-28 10:32:23 +10:00
Andrew Tridgell
3d5475a1d9
HAL_ChibiOS: fixed skyviper-journey build
2020-04-28 10:32:23 +10:00
Andrew Tridgell
7320cd3174
HAL_ChibiOS: fixed assert in wait_pin()
2020-04-27 14:01:04 +10:00
Ivannikov Kirill
3ab1b29397
AP_HAL_ChibiOS: error if system clock not 1mhz on 16 CH_CFG_ST_RESOLUTION. prevent variable overflow
...
if CH_CFG_ST_FREQUENCY not match 1000000U on 16 bit CH_CFG_ST_RESOLUTION
we try to multiply now *= 1000000U/CH_CFG_ST_FREQUENCY; it may overflow 16 bit value.
2020-04-26 19:58:54 +10:00
Andrew Tridgell
d9e2a644ea
HAL_ChibiOS: fixed Durandal buzzer in bootloader
...
need to pull low to avoid buzzer running in bootloader
2020-04-24 19:46:22 +10:00
bugobliterator
b94f089984
HAL_ChibiOS: improve throughput of slcan router
2020-04-24 19:39:18 +10:00
Andrew Tridgell
43ac58c63b
HAL_ChibiOS: added STM32CubeMX configs for H7 processor crystal varients
...
useful for checking clock config changes
2020-04-24 16:55:03 +10:00
Andrew Tridgell
db642717be
HAL_ChibiOS: fixed clock for FDCAN to be below 80MHz
...
we were running at 100MHz, which is out of spec
2020-04-24 16:55:03 +10:00
Andrew Tridgell
2c68ce1986
HAL_ChibiOS: fixed clock source for FDCAN
...
use selected source and add 80MHz limit, as per manual and latest STM32CubeMX tool
2020-04-24 16:55:03 +10:00
Andrew Tridgell
4ec1717361
HAL_ChibiOS: enable IMU temp control on CUAV-X7
2020-04-23 09:05:52 +10:00
Andrew Tridgell
56b0dddb7c
HAL_ChibiOS: set IMU temp on CUAV-X7
2020-04-23 07:28:13 +10:00
Andrew Tridgell
5892e6421e
HAL_ChibiOS: enable DRDY on ADIS16470 on CUAV-X7
2020-04-23 07:28:13 +10:00
Andrew Tridgell
ffe773ff6f
HAL_ChibiOS: use DRDY pin for ADIS16470 on mRoNexus
2020-04-23 07:28:13 +10:00
Andrew Tridgell
450871cde1
HAL_ChibiOS: added wait_pin() implementation
2020-04-23 07:28:13 +10:00
Andrew Tridgell
8e977183fe
HAL_ChibiOS: added mRoNexus
2020-04-23 07:28:13 +10:00
Andrew Tridgell
6be519fb0d
HAL_ChibiOS: added alt-config for UART4 on omnibusf4pro
2020-04-21 18:42:12 +10:00
Andy Piper
f3b240533f
AP_HAL_ChibiOS: eliminate EKF2 from fmuv2 build
2020-04-18 20:18:30 +10:00
Andrew Tridgell
db8fdeebeb
HAL_ChibiOS: fixed Hott telem half duplex handling
...
this fixes an issue with single byte writes with half duplex. It isn't
an elegent solution, but nicely separates the different types of half
duplex operation
2020-04-17 17:52:28 +10:00
Andrew Tridgell
cac455ff2d
HAL_ChibiOS: added another uart to omnibusf4v6
...
for RC telemetry such as Hott telem
2020-04-17 11:23:06 +10:00
vierfuffzig
7c7b199bbd
AP_HAL_ChibiOS: add I2C / USART3 ALT_CONFIG for omnibusf4pro
2020-04-16 08:42:24 +10:00
Andrew Tridgell
74f33d57c5
HAL_ChibiOS: avoid unnecessary H7 flash writes
2020-04-14 10:02:51 +10:00
Andrew Tridgell
8dabd6cefc
HAL_ChibiOS: expect a long delay on flash page erase
...
this prevents the display of errors on flash page erase
2020-04-14 10:02:51 +10:00
Andrew Tridgell
4b236e52b2
HAL_ChibiOS: added MatekH743 port
2020-04-14 10:02:51 +10:00
Andrew Tridgell
2165fd66f1
HAL_ChibiOS: define FLASH_RESERVE_END_KB
2020-04-14 10:02:51 +10:00
Henry Wurzburg
e5319397b4
AP_HAL_ChibiOS: eliminate EKF2 from F4 builds not using HAL_MINIMIZE_FEATURES
2020-04-14 09:19:28 +10:00
murata
124d8c7fdf
AP_HAL_ChibiOS: Changing the timeout detection
2020-04-14 07:32:46 +10:00
Andrew Tridgell
db4f1a1473
HAL_ChibiOS: enable ADIS16470 on SPI1
2020-04-13 15:26:02 +10:00
CUAVcaijie
942b2fd29f
HAL_ChibiOS: Added support for CUAV X7 flight controller
2020-04-13 15:26:02 +10:00
bugobliterator
a31f2e5d90
hwdef: add validation checks for CubeOrange
2020-04-10 07:04:21 +10:00
bugobliterator
ef91f1634b
HAL_ChibiOS: add support for adding board validation test
2020-04-10 07:04:21 +10:00
Andrew Tridgell
376116c99b
HAL_ChibiOS: fixed skyviper-journey build
2020-04-04 10:47:15 +11:00
Peter Barker
9ba2aecbb8
AP_HAL_ChibiOS: send statustext at regular intervals after watchdog reset
2020-03-31 14:30:11 +11:00
Henry Wurzburg
a637073dad
AP_HAL_Chibios: add tenth PWM output to MatekF405-Wing
2020-03-30 11:23:14 +11:00
Andrew Tridgell
e0957c2bcc
HAL_ChibiOS: include hwdef.dat in ROMFS
...
this allows download via ftp
2020-03-28 15:28:03 +11:00
Andrew Tridgell
ea57b7b3cd
HAL_ChibiOS: embed ROMFS files from hwdef directory
...
this allows for a scripts/ directory under hwdef board directory to
embed lua scripts
2020-03-28 15:28:03 +11:00
Andrew Tridgell
822460ce7d
HAL_ChibiOS: fixed strdup() on ChibiOS
2020-03-28 15:28:03 +11:00
bugobliterator
8215537f99
HAL_ChibiOS: deprecate realloc for ChibiOS build, so as to return error when used
2020-03-24 10:32:14 +11:00
bugobliterator
89d03f0243
AP_HAL_ChibiOS: implement standard realloc method
2020-03-24 10:32:14 +11:00
Andrew Tridgell
fc0b2ef920
HAL_ChibiOS: added half-duplex protection for non-inverted
...
to prevent output bytes being seen as input bytes we disable half
duplex during transmit. This was previously only done for non-inverted
UARTs. This patch enables it whether we are inverted or not. This
greatly reduces the number of bad input bytes.
2020-03-20 12:37:52 +11:00
Peter Barker
a59c3670c8
AP_HAL_ChibiOS: stash lr_thd in watchdog hardfault handler
2020-03-19 16:03:58 +11:00
Andrew Tridgell
5a4b648cf5
HAL_ChibiOS: disable flash fallback for boards with FRAM
...
this saves on flash and prevents confusing results when fram fails
2020-03-14 13:47:25 +11:00
Nick Exton
4cd39a4619
HAL_ChibiOS: improved selection of storage backend
2020-03-14 13:47:25 +11:00
Andy Piper
104dd7cd75
AP_HAL_ChibiOS: remove board subtype for OmnibusNanoV6
2020-03-14 10:20:46 +11:00
Andrew Tridgell
986ad0dc27
HAL_ChibiOS: removed unnecessary subtype defines
2020-03-14 08:35:32 +11:00
Andrew Tridgell
c3f2117590
HAL_ChibiOS: fixed R9Pilot board ID
2020-03-14 07:05:22 +11:00
Andrew Tridgell
1540cf958b
HAL_ChibiOS: improve error messages for flashing bootloader
...
send progress as statustext messages
2020-03-11 16:30:06 +11:00
Andrew Tridgell
cf7c2b1475
HAL_ChibiOS: suppress SPI timeout error for expected delay
2020-03-11 16:30:06 +11:00
Andrew Tridgell
65cd223023
HAL_ChibiOS: implement in_expected_delay()
2020-03-11 16:30:06 +11:00
Andrew Tridgell
d35fff5186
HAL_ChibiOS: set CS pins high while in bootloader
...
this appears to be the root cause of the parameter resets on
CubeOrange. We need to ensure the CS pin is not floating or random
noise on the SPI bus for FRAM can cause the FRAM to become corrupt
2020-03-11 09:53:06 +11:00
Peter Barker
d0edfd2c0d
AP_HAL_ChibiOS: VRUBrain-v51: reduce AP_MAX_EMBEDDED_PARAM to 1024
...
Stops us overflowing on Copter and Plane builds
2020-03-10 10:50:18 +11:00
Peter Hall
fe5779fd88
AP_HAL_ChibiOS: add support for ProfiLEDs
2020-03-10 10:37:26 +11:00
Andrew Tridgell
16f34778fc
HAL_ChibiOS: added f103-HWESC target
2020-03-04 16:21:06 +11:00
Andrew Tridgell
bca1bd2c72
HAL_ChibiOS: added f303-HWESC firmware
2020-03-04 16:21:06 +11:00
Peter Barker
1a123e5f8d
AP_HAL_ChibiOS: avoid referencing flash sector/page 22 on 1MB boards
2020-03-03 10:13:53 +11:00
Peter Barker
2d2fdf8bd0
AP_HAL_ChibiOS: make a static-const hal a reference to the external symbol
2020-03-03 10:12:14 +11:00
Andrew Tridgell
ccc7d48c20
HAL_ChibiOS: reserve plenty of DMA memory for luminousbee4
2020-02-27 13:12:26 +11:00
Andrew Tridgell
669b98c6df
HAL_ChibiOS: allow more than 32 WS2812 LEDs on a pin
2020-02-27 13:12:26 +11:00
Andrew Tridgell
5bfd607300
HAL_ChibiOS: added luminousbee4 flight controller
2020-02-27 13:12:26 +11:00
Peter Hall
0ca6b7cf77
AP_HAL_ChibiOS: retry neopixel until successful send
2020-02-25 11:15:55 +11:00
Andrew Tridgell
41b74ec014
HAL_ChibiOS: use DNA by default for all AP_Periph builds
...
this makes multiple sensors of the same type on the bus easier
2020-02-22 12:28:16 +11:00
Andrew Tridgell
6139860a64
HAL_ChibiOS: use default USB IDs for fmuv3
2020-02-22 12:17:05 +11:00
Andy Piper
3d0cf7e12a
AP_HAL_ChibiOS: hardware M4-Cortex and M7-Cortex (and H7) implementation of HAL FFT abstraction
...
implements an FFT engine based on the betaflight feature using ARM hardware accelerated CMSIS library
make the FFT feature optional
add dynamic gyro windows
add quinns and candans estimators and record in DSP state
disable DSP for boards with limited flash
calculate power spectrum rather than amplitude
start/analyse version of analysis to support threading
allocate memory in a specific region
constrain window size by CPU class
control inclusion of DSP based on board size
2020-02-22 11:15:37 +11:00
pkocmoud
8c764bb568
hwdef: switch to (0) DNA as the default NODEID
2020-02-17 12:48:37 +11:00
pkocmoud
8f6d2aab7a
hwdef: add mRo M10025 KITCAN
2020-02-17 12:48:37 +11:00
Andrew Tridgell
bebfef369f
HAL_ChibiOS: fixed power flags for CUAV-Nora
2020-02-12 21:17:49 +11:00
CUAVcaijie
561808ba3c
HAL_ChibiOS: Added support for CUAV Nora flight controller
2020-02-12 21:17:49 +11:00
Andrew Tridgell
a0fe1a7598
HAL_ChibiOS: produce more accurate clocks for DShot and PWM
2020-02-12 18:12:39 +11:00
Andrew Tridgell
9e0edba31d
HAL_ChibiOS: raised timer clocks to 200MHz
...
this gives more flexibility in setting up timers for DShot
2020-02-12 18:12:39 +11:00
Andrew Tridgell
8b93e0f57d
HAL_ChibiOS: prevent double init of USB
...
this prevented init of USB CubeBlack on Windows. Thanks to Randy for
reporting
2020-02-12 17:44:09 +11:00
Andrew Tridgell
adf17414e0
HAL_ChibiOS: fixed output string for non-DMA capable chan
...
this fixes a problem where the user requests DShot (which rquired DMA)
on an output channel which cannot allocate a DMA channel. We end up
sending normal PWM, so the string representation of the output modes
should reflect that
2020-02-12 14:08:40 +11:00
Andrew Tridgell
e8ab35a192
HAL_ChibiOS: fixed stdout in early startup bug
...
this caused a failure to boot on some boards if they tried to print
messages in early startup code before hal was initialised
thanks to @Shadowru for reporting the issue
2020-02-12 13:51:10 +11:00
Matt Lawrence
e6f32f4572
AP_HAL_ChibiOS: Fix waf --default-parameters
...
If a defaults.parm file was present in the hwdef, waf ignored the --default-parameters=xyz.parm command line argument. This will allow it to use that command line argument specified file.
2020-02-11 11:00:01 +11:00
Andrew Tridgell
12f31e328f
HAL_ChibiOS: fixed dshot docs for Pixhawk4
2020-02-08 14:15:37 +11:00
Randy Mackay
76c982ced8
AP_HAL_CHibiOS: update Pixhawk4 README to 16 pwm outputs
...
also correct Main PWM ouput's number of groups
2020-02-08 14:14:32 +11:00
Andrew Tridgell
bdef7d7158
HAL_ChibiOS: fixed default fast sampling on CubeOrange and Durandal
2020-02-05 12:48:51 +11:00
Andrew Tridgell
e0cd790505
HAL_ChibiOS: fixed spektrum RC input on Pixracer
...
RCININT is inverted compared to RCIN, so need to enable SBUS_INV pin
2020-02-05 10:45:36 +11:00
Randy Mackay
a71ae54d3a
AP_HAL: add RCOutput::get_output_mode_banner
2020-02-04 12:23:33 +11:00
giacomo892
529f067914
HAL_ChibiOS: save more flash on SuccexF4
2020-02-02 06:02:59 +11:00
giacomo892
23a42b1914
HAL_ChibiOS: disable parachute and sprayer on SuccexF4
2020-02-02 06:02:59 +11:00
Andrew Tridgell
8b2629bfc1
HAL_ChibiOS: save 7k flash for boards close to flash limit
2020-02-01 06:58:43 +11:00
Andrew Tridgell
c8395bb2c1
HAL_ChibiOS: use blocking semaphore for new_input()
...
this prevents a race where we continually fail to get new input
2020-01-31 11:09:07 +11:00
Andrew Tridgell
05f095f338
HAL_ChibiOS: fixed build
2020-01-31 11:09:07 +11:00
Andrew Tridgell
3fe3c8ecdc
HAL_ChibiOS: implement pulse_input_enable()
...
and cleanup use of mutexes in RC input
2020-01-31 11:09:07 +11:00
Andrew Tridgell
9c0cf0871b
HAL_ChibiOS: added disable() API for pulse input
2020-01-31 11:09:07 +11:00
Andrew Tridgell
27c114828b
HAL_ChibiOS: fixed bitmask error on storage erase
2020-01-31 11:06:29 +11:00
Peter Barker
bff97eb150
AP_HAL_ChibiOS: assert that storage size is an even number of storage-lines
2020-01-30 19:53:02 +11:00
Andrew Tridgell
a7b6887f44
HAL_ChibiOS: added a f303-Universal build target
2020-01-26 09:12:55 +11:00
Andrew Tridgell
7a812a5516
HAL_ChibiOS: use cortex m7 instructions on F7/H7
2020-01-25 08:50:09 +11:00
Peter Barker
73c32f403b
AP_HAL_ChibiOS: do not compile EKF2 for MatekF405-Wing
2020-01-21 11:53:18 +11:00
Peter Barker
e189b17efb
AP_HAL_ChibiOS: remove unused AnalogIn fields
2020-01-21 10:06:18 +11:00
Andrew Tridgell
a8501a91c7
HAL_ChibiOS: fixed handling of write mutex
...
this fixes an issue with log download on USB and mavlink throughput
caused lock contention. The issue was introduced with the changes for
unbuffered writes recently (does not affect stable releases)
2020-01-21 08:37:25 +11:00
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
2020-01-19 20:19:30 +11:00
Andrew Tridgell
0aae8e13c1
AP_HAL_ChibiOS: use take_blocking instead of HAL_SEMAPHORE_BLOCK_FOREVER
...
this makes for cleaner and smaller code as the failure case is not
needed
2020-01-19 20:19:30 +11:00
Andrew Tridgell
7ce771734c
HAL_ChibiOS: fixed fw build size for several boards
2020-01-19 07:24:57 +11:00
Andrew Tridgell
320a703afc
HAL_ChibiOS: fixed UART DMA config for ALT() pins
2020-01-19 07:24:57 +11:00
Andrew Tridgell
0cc6d4a70b
HAL_ChibiOS: added support for FrSky R9 flight controller
2020-01-18 17:00:44 +11:00
Andrew Tridgell
f7a65afa67
HAL_ChibiOS: allow for baro with no arguments
2020-01-18 17:00:44 +11:00
Andrew Tridgell
83d3488eb2
HAL_ChibiOS: fixed ZubaxGNSS board ID
2020-01-18 15:44:51 +11:00
Michel Pastor
6fa09c05c2
HAL_ChibiOS: added SuccexF4 board
2020-01-18 14:54:29 +11:00
Andrew Tridgell
ce4120e803
HAL_ChibiOS: disable parachute and sprayer on MatekF405-Wing
...
fixes build size
2020-01-18 13:48:48 +11:00
Andrew Tridgell
a935b764f4
HAL_ChibiOS: fixed UART DMA issue on F4
...
disabling in rx irq callback should only be done on F3
2020-01-18 07:13:11 +11:00
Andrew Tridgell
a220b37bf8
HAL_ChibiOS: use 4k bouncebuffer for sdcard
...
match AP_Logger IO size
2020-01-18 07:13:11 +11:00
Andrew Tridgell
2b7bffa906
HAL_ChibiOS: adjust dma reserve allocation
...
use larger target and allow for smaller allocation
2020-01-18 07:13:11 +11:00
Andrew Tridgell
9554103418
HAL_ChibiOS: don't extend alloc of iomcu uart
2020-01-18 07:13:11 +11:00
Andrew Tridgell
56985f8c33
HAL_ChibiOS: added checking on bouncebuffer allocation
...
fail operations if DMA bouncebuffer alloc fails
2020-01-18 07:13:11 +11:00
Andrew Tridgell
a7b83b1e26
HAL_ChibiOS: allow for unbuffered writes without DMA
2020-01-16 20:36:54 +11:00
CUAVcaijie
7e89591e90
HAL_ChibiOS: Modify the default orientation of the compass
2020-01-08 07:33:51 +11:00
Andrew Tridgell
fced7d78fc
HAL_ChibiOS: fixed clock src for I2C4 on H7
2020-01-08 05:56:23 +11:00
Andrew Tridgell
43172bdd57
HAL_ChibiOS: switch non-composite USB ID
...
use newly allocated 0x1209/0x5740
2020-01-06 11:43:15 +11:00
Andrew Tridgell
793b867706
HAL_ChibiOS: switched to new USB VID for dual-CDC boards
2020-01-06 09:55:26 +11:00
Andrew Tridgell
bb5c1d07e1
HAL_ChibiOS: implement new UART option bits
2020-01-03 17:32:23 +11:00
Andrew Tridgell
ab0f1a8887
HAL_ChibiOS: added max uarts check
2020-01-03 17:32:23 +11:00
Andrew Tridgell
0d31e614ed
HAL_ChibiOS: added ALT(1) configs for more boards
...
this allows more boards to use the FPort protocol
2020-01-03 17:32:23 +11:00
Andrew Tridgell
61f8e6f0d1
HAL_ChibiOS: added alt config for USART6 on MatekF765-Wing
2020-01-02 12:13:55 +11:00
Andrew Tridgell
296a4cb086
HAL_ChibiOS: re-format and fix chibios_hwdef.py for flake8
2020-01-02 09:52:57 +11:00
Andrew Tridgell
9c2b5a05bd
HAL_ChibiOS: fixed python3 error
2020-01-02 09:52:57 +11:00