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
Andrew Tridgell
c5df48faa7
HAL_ChibiOS: break out make_line() for PAL_LINE defines
2020-01-02 09:52:57 +11:00
Andrew Tridgell
66dd5925cf
HAL_ChibiOS: added support for alternative pin configs
2020-01-02 09:52:57 +11:00
Andrew Tridgell
06a9baeb9b
HAL_ChibiOS: adjust fmuv3 SPI priority
...
fixes an issue with SPI4 assignment
2020-01-02 09:52:57 +11:00
Andrew Tridgell
a30e637484
HAL_ChibiOS: fixed bug in UART pin assignment
...
this fixes an issue with the setting of pullup/pulldown on UARTs. It
also adds enforcement of DMA assignment for DMA required peripherals
2020-01-02 09:52:57 +11:00
Andrew Tridgell
8ffd1050eb
HAL_ChibiOS: fixed build on STM32F3
2020-01-02 09:52:57 +11:00
Andrew Tridgell
b1ca7380be
HAL_ChibiOS: re-implement half-duplex using HDSEL switching
...
this makes half-duplex more reliable on UARTs with pullups or level
shifters
2020-01-02 09:52:57 +11:00
Andrew Tridgell
faf34970e1
HAL_ChibiOS: automatically control pullup/pulldown on inverted UARTs
...
this makes setup of sport telemetry much easier
2020-01-02 09:52:57 +11:00
Andrew Tridgell
58e915155d
HAL_ChibiOS: fixed panic to output error every 500ms
2020-01-02 09:52:57 +11:00
Andrew Tridgell
8fdbb88827
HAL_ChibiOS: implement erase() method on Storage in HAL_ChibiOS
2020-01-02 09:52:57 +11:00
Andrew Tridgell
e9dded98ce
HAL_ChibiOS: enable UART6 for use as RC input on MatekF765-Wing
2020-01-02 09:52:57 +11:00
Andrew Tridgell
6447cc2519
HAL_ChibiOS: support receiver RSSI
2020-01-02 09:52:57 +11:00
Andrew Tridgell
f68b9bafd8
HAL_ChibiOS: fixed H7 I2C timing
...
we were running the clock at too low speed. This affected the SSD1306 display
2019-12-30 16:10:44 +11:00
Andy Piper
6f979d5f7f
AP_HAL_ChibiOS: define OSD_ENABLED as 1 rather than ENABLED
2019-12-30 13:02:04 +11:00
CUAVcaijie
ccd54409f3
HAL_ChibiOS: Adding SPI devices for CUAV_GPS
2019-12-26 15:51:44 +11:00
CUAVcaijie
2df2e5c275
HAL_ChibiOS: Fix DMA of SPI1 TX on STM32F412
2019-12-26 15:50:18 +11:00
Andrew Tridgell
4b4642dd4d
HAL_ChibiOS: allow handling of much higher receiver baudrates with DMA
...
this uses two DMA RX bouncebuffers to minimise the time with DMA
disabled so that we can handle much higher baudrates
2019-12-26 10:42:48 +11:00
Andrew Tridgell
58292821b3
HAL_ChibiOS: fix DMA on UARTs for F303
2019-12-26 10:42:48 +11:00
Andrew Tridgell
652d137594
HAL_ChibiOS: fixed DMA channels for f3 USART2
2019-12-26 10:42:48 +11:00
Andrew Tridgell
6eb86c6cdb
HAL_ChibiOS: removed PB1 and PB0 TIM1 complementary channels for F76x
...
these do not work, possibly a datasheet bug
2019-12-23 21:46:57 +11:00
Andrew Tridgell
c8c6c80aef
HAL_ChibiOS: switch MatekF765 to timer 12
...
fixes PWM 5 and 6
2019-12-23 21:46:57 +11:00
Andrew Tridgell
ccd1ce406c
HAL_ChibiOS: scale uart rx buffer size with baudrate
...
this ensures we have enough buffer space for a RTK GPS, as well as for
high speed comms with a companion computer
2019-12-23 09:54:36 +11:00
Andrew Tridgell
1248519b11
HAL_ChibiOS: account for empty uarts in uart count
...
this fixes uart count on MatekF405-Wing
2019-12-22 08:27:17 +11:00
Andrew Tridgell
6f6fbb5b48
HAL_ChibiOS: make pwm pin pulldown
2019-12-20 16:50:48 +11:00
Andrew Tridgell
f732a482fe
HAL_ChibiOS: support wider range of clock frequencies
2019-12-20 16:50:48 +11:00
Andrew Tridgell
a9946b41e9
HAL_ChibiOS: added f103-Trigger board
2019-12-20 16:50:48 +11:00
Andrew Tridgell
a87e3e41f0
HAL_ChibiOS: make Pixhawk4 GPS2 connection clearer
2019-12-20 12:34:26 +11:00
Andrew Tridgell
d422825715
HAL_ChibiOS: removed per-board AP_FEATURE_RTSCTS and AP_FEATURE_SBUS_OUT
...
not needed any more
2019-12-18 17:18:44 +11:00
Andrew Tridgell
fc867b1596
HAL_ChibiOS: automatically set AP_FEATURE_SBUS_OUT
2019-12-18 17:18:44 +11:00
Andrew Tridgell
b3459c024c
HAL_ChibiOS: automatically set AP_FEATURE_RTSCTS
2019-12-18 17:18:44 +11:00
Andrew Tridgell
b99d6e075c
HAL_ChibiOS: change CUAVv5Nano volt scale to 18.000
2019-12-18 15:50:34 +11:00
Andrew Tridgell
f17178ace0
HAL_ChibiOS: fixed build of SPI clock test
2019-12-13 09:30:48 +11:00
Andrew Tridgell
95b527dac8
HAL_ChibiOS: save 3k of flash on MatekF405-Wing
...
disable SMBUS and fuel battery monitors
2019-12-09 21:35:00 +11:00
Andrew Tridgell
4f429e6c5a
HAL_ChibiOS: fixed handling of 16bit timer wrap
...
this fixes #12948
2019-12-09 12:43:39 +11:00
Andrew Tridgell
d4d44990e1
HAL_ChibiOS: added assert for systime_t size
2019-12-09 12:43:39 +11:00
Henry Wurzburg
ccc7968f91
HWDEF: Speedybeef4 change I2C internal mask to 0 to allow probing ext baros
2019-12-09 12:03:33 +11:00
Andy Piper
16d2dd4e2d
AP_HAL_ChibiOS: specify Durdanal IMUs so that ordering is correct
2019-12-08 17:23:20 +11:00
Andrew Tridgell
0a81c48d9c
HAL_ChibiOS: lower gains on CubyOrange and Yellow heater
...
this should reduce the chance of baro oscillation due to rapid change
in heater temperature
2019-11-28 21:35:29 +11:00
Phillip Kocmoud
73c56220ff
HAL_ChibiOS: update mRoControlZeroF7 I2C mask
2019-11-27 16:08:19 +11:00
Andrew Tridgell
0317b66139
HAL_ChibiOS: update mRoX21-777 I2C mask
...
all external
2019-11-27 14:25:18 +11:00
Andrew Tridgell
0c4a4ccb74
HAL_ChibiOS: optionally print information on a HardFault
2019-11-27 14:12:04 +11:00
Andrew Tridgell
ef993f380f
HAL_ChibiOS: use system_halt_hook()
2019-11-27 14:12:04 +11:00
Andrew Tridgell
c1575654e2
HAL_ChibiOS: added optional debug code for hardfaults and panics
...
this implements a soft-serial print function that can be used to get
debug out on a GPIO pin in a panic
2019-11-27 14:12:04 +11:00
Michael du Breuil
21f6695acd
AP_HAL_ChibiOS: Add defaults.parm for CubeOrange and CubeYellow
2019-11-20 20:52:36 +11:00
Stephen Dade
e1e7c6ea8a
AP_HAL: Ensure scheduler does not log if there is no logger
2019-11-20 11:46:34 +11:00
Andrew Tridgell
4636a4c458
HAL_ChibiOS: support LEDs with a wider range of frequencies
...
this fixed LEDs on FMUv5 boards on first 4 aux channels. We need to
round up not round down in the resulting bitrate
2019-11-18 15:54:36 -08:00
Andrew Tridgell
4745c9f78d
HAL_ChibiOS: setup define for number of serial ports
2019-11-19 07:13:20 +08:00
Andrew Tridgell
0751756e91
HAL_ChibiOS: retain OPENDRAIN if set on a pin
...
this allows OPENDRAIN when set on a pin to be retained when set with a
pinMode(). This fixes a partially lit B/E LED on the Pixhawk4
2019-11-17 11:45:38 +11:00
Andrew Tridgell
fdd2e93f7e
HAL_ChibiOS: disable debug port on f103 to save memory
2019-11-09 17:11:32 +11:00
Andrew Tridgell
a90a2e20dc
HAL_ChibiOS: enable CAN callbacks
...
this allows for much more reliable CAN comms in AP_Periph
2019-11-09 17:11:32 +11:00
Matt Lawrence
7a63bda027
Frame_params: Updated solo params for Copter 4
2019-11-08 07:28:17 +08:00
Andrew Tridgell
1db4afb844
HAL_ChibiOS: enable MatekF765 LED pin
...
- use tonealarm for buzzer
- add more baro options
2019-11-04 08:14:27 +11:00
Andrew Tridgell
64aae4f67e
HAL_ChibiOS: removed heater control
2019-11-02 16:31:04 +11:00
Andrew Tridgell
d8445928d1
HAL_ChibiOS: fixed SPI timeout bug
...
thanks to CUAV for noticing
2019-11-01 22:11:17 +11:00
Andrew Tridgell
6c0c09e690
Revert "HAL_ChibiOS: lower speed of mpu9250"
...
This reverts commit a4e51f3942
.
This commit led to more errors on the first IMU on a normal
CubeBlack. I don't yet know why this happens, but I'm removing this in
master for now as it affects primary IMU
2019-11-01 11:20:32 +11:00
Andrew Tridgell
22f0e8a065
HAL_ChibiOS: added RM3100 in f303-GPS
2019-11-01 10:53:53 +11:00
Andrew Tridgell
207dffba88
HAL_ChibiOS: moved compass support for f103-GPS
...
not needed for other builds
2019-11-01 10:53:53 +11:00
Andrew Tridgell
1d44718016
HAL_ChibiOS: added f303-periph and f303-GPS firmware
2019-11-01 10:53:53 +11:00
Andrew Tridgell
bc1de7a208
HAL_ChibiOS: support STM32F3xx MCUs
2019-11-01 10:53:53 +11:00
Siddharth Purohit
8c413d3c09
HAL_ChibiOS: fix writing into a NULL pointer CANFD interrupt
2019-10-30 22:15:04 +11:00
Andrew Tridgell
8f14ea9e80
HAL_ChibiOS: enable advanced timers if we have any N PWM channels
2019-10-29 13:09:14 +11:00
Andrew Tridgell
ff30ba87bc
HAL_ChibiOS: fixed build of sparky2
...
running out of flash
2019-10-29 12:15:12 +11:00
Andrew Tridgell
fcf9356e2c
HAL_ChibiOS: fixed build of f103 rangefinder
2019-10-29 08:07:29 +11:00
Andrew Tridgell
a4e51f3942
HAL_ChibiOS: lower speed of mpu9250
...
it isn't handling the full speed well, getting some SPI transfer
errors
2019-10-28 21:06:41 +11:00
Andrew Tridgell
b5af1edf0d
HAL_ChibiOS: moved app_descriptor to start of flash
...
this prevents the bootloader from finding it's own image as a false
posititve in searching for the app_descriptor
2019-10-28 15:53:16 +11:00
Andrew Tridgell
3800d7c084
HAL_ChibiOS: added crazyflie2 bootloader
2019-10-28 09:27:31 +11:00
Andrew Tridgell
d1bc0f236d
HAL_ChibiOS: added pragma once for watchdog header
2019-10-26 15:32:10 +11:00