Commit Graph

1205 Commits

Author SHA1 Message Date
Phillip Kocmoud
44fb4b5e67 hwdef:PixracerPro - Fix analog volt pin assignments 2020-11-25 17:42:32 +09:00
Andrew Tridgell
cbfc505003 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-08 08:25:00 +11:00
Andrew Tridgell
627c7c7df0 HAL_ChibiOS: enable telem3 on Durandal
the RCIN issue is not there in the final production boards
2020-10-02 20:14:37 +10:00
Andrew Tridgell
82de5b9429 HAL_ChibiOS: fixed fast sampling on F32Lightning
this SPI bus on this board can't handle 8MHz
2020-10-02 10:15:07 +10:00
chobits
ce8b57e402 AP_HAL_ChibiOS: fix kakutef7/mini motor glitch when using dshot 2020-10-02 08:52:26 +09:00
Andrew Tridgell
b6ab48c3a0 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:42:54 +10:00
MATEKSYS
95fbbe587b HAL_ChibiOS: Add DPS310 for MatekF405-WING,F765-WING and H743 2020-09-03 09:49:30 +10:00
Andrew Tridgell
0e7a911aae HAL_ChibiOS: enable HAL storage erase 2020-06-30 21:02:59 +09:00
Andrew Tridgell
685e412d14 HAL_ChibiOS: increase monitor thread stack to 768 bytes
attempt to fix issue #14582
2020-06-15 17:57:18 +10:00
Andrew Tridgell
7d4e6e6fe8 HAL_ChibiOS: fixed default CubeOrange pin for 2nd current sensor 2020-06-13 08:02:03 +09:00
Andrew Tridgell
68270d2028 HAL_ChibiOS: added Holybro Pix32v5 2020-06-12 21:24:37 +10:00
MATEKSYS
e95bfc5e5f HAL_ChibiOS: MatekH743: move baro to I2C2 bus 2020-06-11 17:32:57 +10:00
Andrew Tridgell
6c1be255bd HAL_ChibiOS: fixed build with our old compiler
gcc 4.9 doesn't like static_assert() in C code
2020-06-10 17:34:45 +10:00
duccan
bde8ed37c3 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-10 17:34:37 +10:00
duccan
981d1d0f4c AP_HAL_ChibiOS: Added support for Bitcraze Crazyflie 2.1 2020-06-10 17:34:32 +10:00
James Jacobsson
d7ef792933 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-10 17:34:23 +10:00
CUAVcaijie
cb4a2b7382 HAL_ChibiOS:Adapt to CUAV Nora V1.2 hardware 2020-06-10 17:34:07 +10:00
pkocmoud
8f40d5b588 HAL_ChibiOS: Added support for mRo Pixracer Pro flight controller 2020-06-10 17:34:03 +10:00
Andrew Tridgell
0816779fae HAL_ChibiOS: disable ROMFS hwdef.dat for 4.0 release
will be in 4.1
2020-05-21 16:10:10 +10:00
bugobliterator
234d9f1ba4 HAL_ChibiOS: use FIFO mode instead of Queue mode in FDCAN driver 2020-05-21 15:33:07 +10:00
Andrew Tridgell
875184f774 HAL_ChibiOS: fixed CubeSolo hwdef.dat 2020-05-11 17:34:17 +10:00
Andrew Tridgell
31f7b32fab HAL_ChibiOS: resync for 4.0 update 2020-05-11 15:55:16 +10:00
Andrew Tridgell
64557413b8 HAL_ChibiOS: switch non-composite USB ID
use newly allocated 0x1209/0x5740
2020-05-11 13:50:46 +10:00
Andrew Tridgell
10416f92c4 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-05-11 13:48:28 +10:00
Andrew Tridgell
8088923162 HAL_ChibiOS: improve error messages for flashing bootloader
send progress as statustext messages
2020-05-11 13:45:07 +10:00
Andrew Tridgell
2215fbd7a4 HAL_ChibiOS: suppress SPI timeout error for expected delay 2020-05-11 13:38:21 +10:00
Andrew Tridgell
8c49690acf HAL_ChibiOS: implement in_expected_delay() 2020-05-11 13:38:18 +10:00
Andrew Tridgell
b0e7251832 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-11 13:35:54 +10:00
Andrew Tridgell
ede5cabbf5 HAL_ChibiOS: save 3k of flash on MatekF405-Wing
disable SMBUS and fuel battery monitors
2020-05-06 15:46:13 +09:00
bugobliterator
9073f0ffb4 HAL_ChibiOS: deprecate realloc for ChibiOS build, so as to return error when used 2020-05-06 15:00:51 +09:00
bugobliterator
a9ea7ca3dc AP_HAL_ChibiOS: implement standard realloc method 2020-05-06 14:59:45 +09:00
Andrew Tridgell
fe8398fe0d HAL_ChibiOS: use default USB IDs for fmuv3 2020-05-06 14:20:50 +09:00
Matt Lawrence
e23e798eb9 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-05-06 14:07:00 +09:00
Peter Hall
7dacfcc198 AP_HAL_ChibiOS: add support for ProfiLEDs 2020-04-21 08:03:01 +09:00
Andrew Tridgell
59bf162572 HAL_ChibiOS: reserve plenty of DMA memory for luminousbee4 2020-04-21 08:03:01 +09:00
Andrew Tridgell
b219ee453c HAL_ChibiOS: allow more than 32 WS2812 LEDs on a pin 2020-04-21 08:03:01 +09:00
Andrew Tridgell
e26860bd09 HAL_ChibiOS: added luminousbee4 flight controller 2020-04-21 08:03:01 +09:00
Peter Barker
b9804be01c AP_HAL_ChibiOS: make a static-const hal a reference to the external symbol 2020-03-03 20:35:57 +09:00
Andrew Tridgell
43c8efd820 HAL_ChibiOS: switched to new USB VID for dual-CDC boards 2020-02-20 13:03:57 +11:00
Andrew Tridgell
2ed21b3be1 HAL_ChibiOS: fixed default fast sampling on CubeOrange and Durandal 2020-02-20 13:03:09 +11:00
Andrew Tridgell
6d8482bc2e HAL_ChibiOS: produce more accurate clocks for DShot and PWM 2020-02-20 13:02:09 +11:00
Andrew Tridgell
ca1053a28c HAL_ChibiOS: raised timer clocks to 200MHz
this gives more flexibility in setting up timers for DShot
2020-02-20 13:01:00 +11:00
Andrew Tridgell
7eb106ea07 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-20 09:39:27 +09:00
Randy Mackay
95ec629923 AP_HAL: add RCOutput::get_output_mode_banner 2020-02-20 09:36:48 +09:00
Andrew Tridgell
77865e9f78 HAL_ChibiOS: fixed spektrum RC input on Pixracer
RCININT is inverted compared to RCIN, so need to enable SBUS_INV pin
2020-02-05 11:13:30 +09:00
Henry Wurzburg
f7cbdb4520 HWDEF: Speedybeef4 change I2C internal mask to 0 to allow probing ext baros 2020-02-05 11:13:30 +09:00
Andrew Tridgell
6489623499 HAL_ChibiOS: fixed skyviper-v2450 build 2020-02-02 08:14:20 +11:00
Andrew Tridgell
aff77c86d6 HAL_ChibiOS: fixed bitmask error on storage erase 2020-01-31 19:55:01 +09:00
Andrew Tridgell
b5435d6a24 HAL_ChibiOS: use recursive mutex for RCInput 2020-01-31 19:35:53 +09:00
Andrew Tridgell
50a6d63101 HAL_ChibiOS: implement pulse_input_enable()
and cleanup use of mutexes in RC input
2020-01-31 19:35:53 +09:00