mateksys
be601acd89
AP_HAL_ChibiOS: add MatekF405-TE hwdef
2021-12-22 18:47:37 +11:00
Andy Piper
2fab99d647
AP_HAL_ChibiOS: remove redundant harmonics from DSP
2021-12-22 18:13:38 +11:00
Brad Stinson
cd39110b68
hwdef: add support for PixC4-Jetson
...
add support for building IOMCU with F103 and 8MHz clock
2021-12-21 13:05:34 +11:00
Jaaaky
f1f31c1aef
AP_HAL_ChibiOS: Fix multi #include's
2021-12-21 10:38:46 +11:00
bugobliterator
62945e1d85
AP_HAL_ChibiOS: use common directory reference wrt hwdef scripts
2021-12-20 12:47:25 +11:00
Peter Barker
a281c3ef91
AP_HAL_ChibiOS: remove stray 'No Crash Detected' diagnostic
2021-12-19 10:48:44 +11:00
Peter Barker
bdeec0868e
AP_HAL_ChibiOS: turn wind-compensation off in hwdef defaults
2021-12-19 10:45:16 +11:00
bugobliterator
f0073e472b
HAL_ChibiOS: set SWD pins pulled up and low by default
2021-12-17 22:51:18 -08:00
Shiv Tyagi
b2073e4e1c
AP_HAL_ChibiOS: remove stray define HAL_PERIPH_ENABLE_BATTERY_MPPT_PACKETDIGITAL
...
We have removed the class AP_BattMonitor_MPPT_PacketDigital, hence this should be removed too
2021-12-17 20:24:25 +09:00
Stephen Dade
fb5ac63a63
AP_HAL_ChibiOS: Fix get_options() to use uint16_t
2021-12-15 14:14:07 +11:00
Peter Barker
7cbe48d1f6
hwdef: fix CubeOrange-periph-heavy build
2021-12-14 14:11:35 +11:00
Andrew Tridgell
ee7464140a
HAL_ChibiOS: avoid re-writing hwdef.h if unchanged
...
this makes dependency handling faster
2021-12-14 09:37:17 +11:00
Andrew Tridgell
0e5beb423e
HAL_ChibiOS: sort shared dma mask
...
this prevents an unnecessary change in hwdef.h on reconfigure
2021-12-14 09:37:17 +11:00
Andrew Tridgell
c9b35ccfc8
hwdef: enable ESC telem on CarbonixL496
2021-12-10 08:11:24 -08:00
Andrew Tridgell
67649fe17d
hwdef: added CarbonixL496 AP_Periph node
2021-12-07 10:23:54 +11:00
Andrew Tridgell
c5fc2fa709
HAL_ChibiOS: enable DShot on L4 MCUs for AP_Periph
2021-12-07 10:23:54 +11:00
Andrew Tridgell
fbadc24fca
HAL_ChibiOS: support 12MHz crystal on L4xx MCUs
2021-12-07 10:23:54 +11:00
Andrew Tridgell
2c2369bf03
AP_HAL_ChibiOS: revert compass parameter changes
2021-12-04 16:51:53 +11:00
Randy Mackay
ec6ea03b80
AP_HAL_ChibiOS: update CubeBlack-pinout image
...
CAN1 and CAN2 port labels have been swapped
2021-12-03 13:49:20 +09:00
Andrew Tridgell
05ec2be62b
hwdef: updated KakuteH7 battery scale defaults
...
thanks to Vincent at Holybro
2021-12-02 18:17:49 +11:00
bugobliterator
f9bb9b4fc0
AP_HAL_ChibiOS: log heap and bss memory regions if enough space
2021-12-01 18:17:50 +11:00
bugobliterator
4efe75683a
HAL_ChibiOS: mention of HAL_CRASH_DUMP_FLASHPAGE not required
2021-12-01 18:17:50 +11:00
bugobliterator
878940292d
HAL_ChibiOS: no need to mention END reserve for Crash Dump anymore
2021-12-01 18:17:50 +11:00
bugobliterator
ee35350129
HAL_ChibiOS: setup for recording crashdump at the remaining flash space
2021-12-01 18:17:50 +11:00
bugobliterator
52c7886270
HAL_ChibiOS: fix issue with failing to write final buffer
2021-12-01 18:17:50 +11:00
bugobliterator
eae3fb016f
HAL_ChibiOS: dump per thread stack for crash
2021-12-01 18:17:50 +11:00
bugobliterator
f02a7b560b
AP_HAL_ChibiOS: update last_crash_dump api
2021-12-01 18:17:50 +11:00
Andrew Tridgell
312a6461b6
HAL_ChibiOS: enable UART7 on Swan-K1
...
useful extra UART for debug
2021-12-01 18:08:54 +11:00
Josh Henderson
34b3b7999e
CubeYellow: define HAL_CHIBIOS_ARCH_CUBE
2021-11-30 10:20:54 +11:00
Josh Henderson
188c3a781e
CubeSolo: define HAL_CHIBIOS_ARCH_CUBE
2021-11-30 10:20:54 +11:00
Josh Henderson
e78edac2a0
CubePurple: define HAL_CHIBIOS_ARCH_CUBE
2021-11-30 10:20:54 +11:00
Josh Henderson
b37c214f28
CubeOrange: define HAL_CHIBIOS_ARCH_CUBE
2021-11-30 10:20:54 +11:00
Josh Henderson
db3be4d07c
CubeBlack: define HAL_CHIBIOS_ARCH_CUBE
2021-11-30 10:20:54 +11:00
Josh Henderson
c7b986f30a
CubeYellow: set default EKF_IMU_MASK
2021-11-30 10:20:54 +11:00
Josh Henderson
b8411c22c5
CubeOrange: set default EKF_IMU_MASK
2021-11-30 10:20:54 +11:00
Iampete1
0c519db602
hwdef: use new compass param names in defualts.parm
2021-11-30 08:14:43 +09:00
Peter Barker
7abf07f233
hwdef: remove unused HAL_NO_GCS defines
...
This became HAL_GCS_ENABLED, off by default on Periph
2021-11-26 12:25:40 +11:00
Peter Barker
139c460fa5
hwdef: remove unused define NO_DATAFLASH
2021-11-24 18:18:06 +11:00
Peter Barker
ee68072c62
AP_HAL_ChibiOS: chibios_hwdef: use ifndef pattern for AP_FETTEC_ONEWIRE_ENABLED
2021-11-24 12:01:22 +11:00
Peter Barker
5d005df92f
AP_HAL_ChibiOS: rename HAL_AP_FETTEC_ONEWIRE_ENABLED to AP_FETTEC_ONEWIRE_ENABLED
2021-11-24 12:01:22 +11:00
Peter Barker
9a2d9898ba
AP_HAL_ChibiOS: eliminate HAL_LOGGING_DATAFLASH
...
This define didn't add anything over HAL_LOGGING_DATAFLASH_ENABLED - and
predates it.
2021-11-23 11:24:46 +11:00
Andrew Tridgell
0b567e95dc
hwdef: added OTG2 for MatekF765-SE
2021-11-22 22:48:59 +11:00
Andrew Tridgell
fc6a82de1b
AP_HAL_ChibiOS: support up to 9 UARTs
2021-11-22 22:48:59 +11:00
李孟晓
dfe2ade495
CUAV-X7: Add servo voltage detection pin
2021-11-22 16:39:15 +11:00
Peter Barker
e7f1a273e5
AP_HAL_ChibiOS: remove unused pin-related defines
...
Unused
2021-11-20 11:08:48 +11:00
Andrew Tridgell
fbeaa3be6b
hwdef: change MatekH743 to -Os
...
leave space for more features
2021-11-17 19:39:26 +11:00
TunaLobster
11f98f7421
AP_HAL_ChibiOS: fix ADC scaling on IOMCU
2021-11-16 14:12:43 +11:00
Andrew Tridgell
c3442d0143
hwdef: added alternative Durandal 20602 IMU
2021-11-11 08:28:51 +11:00
Jaime
5d117c6ae7
hwdef: CubeOrange Enable Serial2 and Serial3 in bootloader hwdef
2021-11-10 18:10:20 +11:00
bugobliterator
b025c17ec4
AP_HAL_ChibiOS: add get_storage_ptr method
2021-11-10 17:21:35 +11:00
Kirill Shilov
f97182f48a
hwdef: AIRLink board support
2021-11-10 08:47:21 +11:00
Andrew Tridgell
f7bc7b0d9b
HAL_ChibiOS: support more enable pins for late enable
2021-11-10 08:47:21 +11:00
Randy Mackay
9c1ca781f6
AP_HAL_ChibiOS: update for renamed BRD_HEAT_ parameters
2021-11-09 08:02:57 +09:00
Andrew Tridgell
61ffe188d4
HAL_ChibiOS: implement disable_rxtx()
2021-11-07 07:00:35 +11:00
Andrew Tridgell
97aee6f45e
HAL_ChibiOS: fixed regex error for GPIOs
2021-11-07 07:00:35 +11:00
Andrew Tridgell
8a4001817b
HAL_ChibiOS: added support for Pixhawk5X
2021-11-05 14:30:43 +11:00
Andrew Tridgell
5f15432e07
HAL_ChibiOS: allow for NODMA patterns
...
this makes it easy to disable DMA on I2C
2021-11-05 14:30:43 +11:00
Andrew Tridgell
7f2bcf927c
HAL_ChibiOS: allow setting of armed pin
2021-11-05 14:30:43 +11:00
Andrew Tridgell
c77dfae9a4
HAL_ChibiOS: adjust modalai for INA2xx batt mon change
2021-11-05 14:30:43 +11:00
bugobliterator
418ac60373
AP_HAL_ChibiOS: disable watchdog when DISABLE_WATCHDOG is defined
2021-11-05 07:38:43 +11:00
Andrew Tridgell
98849a3998
HAL_ChibiOS: fixed build for EMPTY uarts
...
this fixes NucleoH743 build
2021-11-01 15:48:25 +11:00
QioTek
952a827287
HAL_ChibiOS: fixed orientation of ADI1674X and optimize SPI3 DMA
...
HAL_ChibiOS: fixed orientation of ADI1674X and optimize SPI3 DMA
2021-10-31 08:42:05 +11:00
bugobliterator
57e1fb1a81
HAL_ChibiOS: disable building CrashCatcher for non 2M boards
2021-10-30 19:24:57 +11:00
bugobliterator
91fdf6e875
HAL_ChibiOS: fix issue with writing the last byte
2021-10-30 19:24:57 +11:00
bugobliterator
a28bf358d1
HAL_ChibiOS: skip compiling last_crash_dump if bootloader and GCS disabled
2021-10-30 19:24:57 +11:00
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