Andrew Tridgell
65c3d4ff20
HAL_ChibiOS: enable advanced timers if we have any N PWM channels
2019-11-02 13:46:43 +11:00
Andrew Tridgell
88e78afb19
HAL_ChibiOS: fixed SPI timeout bug
...
thanks to CUAV for noticing
2019-11-01 21:54:43 +11:00
Andrew Tridgell
0eb9a58f17
AP_HAL_ChibiOS: cleanup ifdefs for SLCAN enable
2019-10-07 21:14:24 +11:00
Andrew Tridgell
0ec6210184
HAL_ChibiOS: removed wait on CAN peripheral in H7
...
these wait busy loops can take a very long time, and end up causing
interrupts to be lost elsewhere in the system, causing lost bytes on
UARTs
We should not have while loops waiting on peripharals like this. If we
do need to wait for a flag to clear then it needs to be done in a low
priority thread, or we need to check for completion in a timer
CAN still seems to work with this change, but needs flight testing
2019-10-06 10:58:07 +11:00
Andrew Tridgell
b8a77890b6
HAL_ChibiOS: generate HAL_MEMORY_TOTAL_KB for each board
2019-10-06 10:58:07 +11:00
Andrew Tridgell
bd95331068
HAL_ChibiOS: added Pixhawk1-1M
...
this is for 1M versions of the Pixhawk1. It is smaller than fmuv2 as
it only links the specific sensors needed for Pixhawk1
2019-10-06 10:58:07 +11:00
Andrew Tridgell
2962211ea0
HAL_ChibiOS: changed optimisation of higher end boards to -O2
...
-O3 does not seem to be a win, and takes up a lot more flash
2019-10-01 08:33:13 +10:00
Andrew Tridgell
560a1bf9e0
HAL_ChibiOS: disable DMA for RCIN on Pixracer
...
this frees up DMA for USART1_RX, which gives DMA for input over the
SERIAL5 WiFi port, which is important for applications where a
pixracer is being fed vision data over WiFi
2019-10-01 08:32:56 +10:00
Mark Whitehorn
2034bde367
HAL_ChibiOS: fix FMU fast_channel_mask
...
fix IO fast channel mask
use IOMCU chmask to only set right channels
remove unused variable
2019-10-01 08:32:00 +10:00
Andrew Tridgell
62c3fec45c
HAL_ChibiOS: fixes from LGTM errors
2019-09-22 21:07:54 +10:00
Andrew Tridgell
f6b28f3013
HAL_ChibiOS: fixed delay for OneShot125 channels
...
we were delaying output for OneShot125 by 8x as much as we need to,
which reduced our max loop rate
2019-09-22 21:07:49 +10:00
Andrew Tridgell
eeb6fbe5ee
HAL_ChibiOS: fixed undef for define lines
...
this fixes IMU heater enable for CubeBlack+
2019-09-16 12:55:44 +10:00
Andrew Tridgell
dceee38d69
HAL_ChibiOS: fixed IMU order and board ID for CubeBlack+
2019-09-16 12:55:36 +10:00
bugobliterator
e540248695
HAL_ChibiOS: hwdef: add hwdef for CubeBlack+
2019-09-16 12:55:34 +10:00
Andrew Tridgell
28cca004f2
HAL_ChibiOS: added default params for skyviper-journey
2019-09-12 14:02:36 +10:00
Andrew Tridgell
1dca0a16f5
HAL_ChibiOS: rename skyviper-f412 to skyviper-journey
2019-09-12 14:02:36 +10:00
Andrew Tridgell
b33afde884
HAL_ChibiOS: allow safety button on CUAV_GPS to be used for "stay in bootloader"
...
allows for recovery of bad CAN firmware
2019-09-10 16:22:33 +10:00
Andrew Tridgell
c6a9f067e2
HAL_ChibiOS: enable LEDs on CUAV_GPS
2019-09-10 16:22:33 +10:00
Andrew Tridgell
3dfe15443d
HAL_ChibiOS: fixed orientation of CUAV_GPS compass
2019-09-10 16:22:33 +10:00
Andrew Tridgell
03c1a8bfd9
HAL_ChibiOS: use safety button logic from AP_BoardConfig
2019-09-10 16:22:33 +10:00
Andrew Tridgell
0ea67943b9
HAL_ChibiOS: enable safety button on CUAV_GPS
2019-09-10 16:22:33 +10:00
Andrew Tridgell
186eedf838
HAL_ChibiOS: enable safety LED
2019-09-10 16:22:33 +10:00
Andrew Tridgell
75696997cc
HAL_ChibiOS: added buzzer support to CUAV_GPS
2019-09-10 16:22:33 +10:00
Andrew Tridgell
cbe0af2463
HAL_ChibiOS: setup for LEDs on KakuteF4
...
this makes Kopis1 display LEDs properly
2019-09-10 13:03:28 +10:00
Andrew Tridgell
f441223b55
HAL_ChibiOS: implement updated NeoPixel API
...
allow for N leds per chain, and setting separate colours per led in
each chain
2019-09-10 13:03:28 +10:00
Tom Pittenger
e3416b66dc
AP_HAL_ChibiOS: add Neopixel output type, similar to dshot
2019-09-10 13:03:28 +10:00
Andrew Tridgell
91e8752c17
HAL_ChibiOS: wrap more libc functions
...
this saves a few k of flash as it avoids linking libc versions of some
functions
2019-09-09 13:31:30 +10:00
Andrew Tridgell
3166f84954
HAL_ChibiOS: added vsnprintf wrapper
...
this allows us to use a common snprintf implementation
2019-09-09 13:31:30 +10:00
Andrew Tridgell
83872c23e5
HAL_ChibiOS: fixed AP_Periph build
2019-09-06 08:51:45 +10:00
Andrew Tridgell
fd80220d3e
HAL_ChibiOS: setup PH4-mini RCIN port by default
2019-09-06 08:51:45 +10:00
Andrew Tridgell
54649a0e4f
HAL_ChibiOS: fixed KakuteF4 define for SERIAL2
2019-09-06 08:51:45 +10:00
Andrew Tridgell
06b272705e
HAL_ChibiOS: run RCIN thread at 1kHz
...
this gives fast enough response for SBUS parsing on a UART
2019-09-06 08:51:45 +10:00
Andrew Tridgell
c841b39ea2
HAL_ChibiOS: switch to AP::RC() for AP_RCProtocol
2019-09-06 08:51:45 +10:00
Andrew Tridgell
bf2cf7834d
HAL_ChibiOS: fixed a bug in parity/stop-bit setting on STM32F7 and H7
...
and add get_options() method
2019-09-06 08:51:45 +10:00
Andrew Tridgell
ad2890dc5a
HAL_ChibiOS: added connector pinouts for PH4-mini
2019-09-06 08:51:45 +10:00
Andrew Tridgell
b344946300
HAL_ChibiOS: prevent duplicate sensors in hwdef.dat
...
throw an error on configure if there is a duplicate
2019-09-05 06:37:35 +10:00
Andrew Tridgell
2c5c8106a5
HAL_ChibiOS: removed duplicate barometer from fmuv5
2019-09-04 21:24:01 +10:00
Andrew Tridgell
708ee47c03
HAL_ChibiOS: fixed f103 rm3100
2019-09-04 16:27:47 +10:00
Andrew Tridgell
c2c8702329
HAL_ChibiOS: convert remaining boards to use COMPASS specifier
2019-09-04 16:27:47 +10:00
Andrew Tridgell
3aa01448ff
HAL_ChibiOS: use COMPASS specifier for f103-periph
2019-09-04 16:27:47 +10:00
Andrew Tridgell
316e7cf7e6
HAL_ChibiOS: fixed mini-pix compass and baro probing
...
removed dup baro and fixed compass probe
2019-09-04 16:27:47 +10:00
Andrew Tridgell
beca17c638
HAL_ChibiOS: use GET_I2C_DEVICE() for i2c probing
...
this allows for the driver probing to use a macro to prevent loading
of duplicate i2c devices (AP_Compass does this)
2019-09-04 16:27:47 +10:00
Michael du Breuil
e19f0ef238
AP_HAL_ChibiOS: Remove set_stop_pin from AnalogSource
2019-09-04 09:54:50 +10:00
E Thomas
c09d6908ed
Enabled active buzzer output on OmnibusNanoV6
2019-09-03 09:59:53 +10:00
Andrew Tridgell
72494788f7
HAL_ChibiOS: convert more boards to use BARO specifier
2019-08-28 06:54:11 +10:00
Andrew Tridgell
0667747506
HAL_ChibiOS: convert some more boards to new IMU specifiers
2019-08-28 06:54:11 +10:00
Andrew Tridgell
5ce4ff916e
HAL_ChibiOS: fixed Pixhawk1 gyro orientation
...
this was broken by the recent switch to hwdef.dat for orientations
2019-08-27 19:29:37 +10:00
Andrew Tridgell
0ffe2e75be
HAL_ChibiOS: fixed warnings
2019-08-27 15:40:43 +10:00
Andrew Tridgell
9d760a2956
HAL_ChibiOS: disable re-entrancy in FATFS
...
not needed now we have a semaphore in AP_Filesystem
2019-08-27 15:40:43 +10:00
Andrew Tridgell
bf79b65e07
HAL_ChibiOS: simplify stubs code
2019-08-27 15:40:43 +10:00