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
Andrew Tridgell
d1565a96c5
HAL_ChibiOS: wrap cacheBuffer functions
...
needed to avoid problem with end() method in UARTDriver shadowing with
F7 implementation of cache macros
2019-08-27 15:40:43 +10:00
Andrew Tridgell
b867ef35c0
HAL_ChibiOS: use AP_Filesystem API
2019-08-27 15:40:43 +10:00
Andrew Tridgell
b30f3697d2
HAL_ChibiOS: fixed build without ISR limit
2019-08-27 10:29:56 +10:00
Andrew Tridgell
97c56c068e
HAL_ChibiOS: update board IDs for AP_Periph firmwares
2019-08-27 10:29:56 +10:00
Andrew Tridgell
63f39c2bd6
HAL_ChibiOS: fixed build of iomcu firmware
2019-08-27 10:29:56 +10:00
Andrew Tridgell
64921b64f5
HAL_ChibiOS: enable sensors in peripheral firmwares
2019-08-27 10:29:56 +10:00
Andrew Tridgell
fa76d1fbe6
HAL_ChibiOS: disable watchdog save in bootloader
2019-08-27 10:29:56 +10:00
Andrew Tridgell
5cbe85ee19
HAL_ChibiOS: allow for ADC and clock overrides
2019-08-27 10:29:56 +10:00
Andrew Tridgell
dc89d10ccf
HAL_ChibiOS: added hwdef.dat for CUAV_GPS
2019-08-27 10:29:56 +10:00
Andrew Tridgell
c8806acaf5
HAL_ChibiOS: use AP_PERIPH env var
2019-08-27 10:29:56 +10:00
Andrew Tridgell
cbc83d68cd
HAL_ChibiOS: allow for CAN enable override on F4
2019-08-27 10:29:56 +10:00
Andrew Tridgell
fb68fa8bc9
HAL_ChibiOS: fixed typo for 512k F4 parts
2019-08-27 10:29:56 +10:00
Andrew Tridgell
e51a1a88df
HAL_ChibiOS: initial hwdef-bl.dat for CUAV CAN GPS
2019-08-27 10:29:56 +10:00
Andrew Tridgell
66ab585a24
HAL_ChibiOS: setup defaults for CAN app versions
2019-08-27 10:29:56 +10:00
Andrew Tridgell
d711bed405
HAL_ChibiOS: set default node ID of 117
...
this allows for flight controllers without DNA support
2019-08-27 10:29:56 +10:00
Andrew Tridgell
ababe1e81d
HAL_ChibiOS: disable UART support in f103-periph bootloader
2019-08-27 10:29:56 +10:00
Andrew Tridgell
2facfe0baa
HAL_ChibiOS: support empty UART_ORDER
...
for CAN bootloader without uart support
2019-08-27 10:29:56 +10:00
Andrew Tridgell
9a7b52fd15
HAL_ChibiOS: added hwdef.dat for f103-periph
2019-08-27 10:29:56 +10:00
Andrew Tridgell
16bdaaa1af
HAL_ChibiOS: added support for STM31F10x for AP_Periph
2019-08-27 10:29:56 +10:00
Stone white
ec911710c9
hwdef: Enable Spektrum 3.3V VDD Power on fmuv5
2019-08-26 17:27:02 +10:00
Michael du Breuil
56e35e0712
AP_HAL_ChibiOS: Remove almost redundant code duplication from the HAL
2019-08-26 17:24:09 +10:00
Andrew Tridgell
ffe0f338d3
HAL_ChibiOS: enable utime() API
2019-08-26 15:41:44 +10:00
Henry Wurzburg
00c111651a
ChiBios: Omnibusf4pro hwdef tweak to allow active or passive buzzer
2019-08-26 12:22:53 +10:00
Andrew Tridgell
aeb58cede1
HAL_ChibiOS: I2C timeout should be send+recv, not MAX(send,recv)
...
MAX() is right for SPI, not I2C
2019-08-26 09:13:39 +10:00
Andrew Tridgell
578e5dfdaa
HAL_ChibiOS: add up i2c ISR count
2019-08-26 09:13:39 +10:00
Andrew Tridgell
f8cfbb8062
HAL_ChibiOS: added ISR limit on I2C
...
this will prevent any possibility of an I2C interrupt storm. This is
designed to address the most likely cause of #11642
2019-08-25 17:12:16 +10:00
Andrew Tridgell
8080efbc6a
HAL_ChibiOS: allow for blocking unbuffered uarts
...
this is used by AP_IOMCU to avoid a race condition where the mutex is
busy on write() causing a zero-length write and delayed output
2019-08-17 17:36:41 +10:00
Andrew Tridgell
afc8a70ce4
HAL_ChibiOS: fixed a bug in wait_timeout() on UARTs
...
wait_timeout() could return true on a read of less bytes than are
expected.
2019-08-17 17:36:41 +10:00
Peter Barker
35c2406b17
AP_HAL_ChibiOS: add missing override keywords
...
This was causing CubeOrange not to build
2019-08-17 13:25:05 +10:00
Peter Barker
54b200a777
AP_HAL_ChibiOS: add missing uavcan-related override keywords
2019-08-14 16:33:29 +10:00
Andrew Tridgell
5e40921b42
HAL_ChibiOS: fixed reboot hold in bootloader
...
thanks to Tom for noticing this
2019-08-12 22:21:13 -07:00
Henry Wurzburg
b6518b6b46
AP_HAL_ChiibOS: change omnibusf4 board type to be unique
2019-08-06 11:20:11 +10:00
Andrew Tridgell
4fca69c5e9
HAL_ChibiOS: renamed Pixhawk6 to Durandal
...
new name for FC from Holybro
2019-08-01 14:11:06 +10:00
Andrew Tridgell
adcf9c4fa4
HAL_ChibiOS: added commented out baro on SPI5 for fmuv5
...
useful for SPI debugging
2019-07-29 10:09:08 +10:00
Andrew Tridgell
98f578394f
HAL_ChibiOS: default OTG2 protocol to mavlink2 on most boards
...
For boards that haven't yet had a driver update in MissionPlanner to
cope with the 2nd OTG interface this change makes both interfaces work
as MAVLink
This also fixes an issue with connecting under a windows VM within
vmware
2019-07-26 21:58:57 +10:00
bugobliterator
cba98096e9
HAL_ChibiOS: move to using hardcoded heater PWM polarity in iofirmware
2019-07-25 17:05:41 +10:00
Andrew Tridgell
e57228646e
HAL_ChibiOS: added unused CS pins for fmuv5
...
these are needed to ensure SPI works correctly if the unused pins are
later attached to a device
2019-07-19 16:58:10 +10:00
Andrew Tridgell
12dd33ac2b
HAL_ChibiOS: added logging of hardware fault information in watchdog
...
this may help trackdown software bugs that trigger hard faults
2019-07-19 16:02:41 +10:00
Andrew Tridgell
2d5e4dcfa2
HAL_ChibiOS: fixed SemLine data in WDOG msg
...
semline was being overwritten in the setup() call
2019-07-15 08:08:54 +10:00
vierfuffzig
bed92e8ca8
AP_HAL_ChibiOS: fix buzzer pin define on OMNIBUSF7V2
2019-07-13 17:26:43 +10:00
Andrew Tridgell
2f79639e36
HAL_ChibiOS: added support for MatekF765-Wing
2019-07-13 15:23:45 +10:00
reubenfinch
cabd6aec8f
AP_HAL_ChibiOS: Correct the README.md for fmuv5 boards
...
the IST8310 magnetometer uses I2C, not SPI
2019-07-12 10:59:48 +01:00
Andrew Tridgell
2f0a4ff1ab
HAL_ChibiOS: fixed build on boards with less than max uarts
2019-07-12 17:01:21 +10:00
Andrew Tridgell
1919268801
HAL_ChibiOS: added OTG2 on all F7 and H7 boards with CAN
...
allows for SLCAN on 2nd port
2019-07-12 17:01:21 +10:00
Andrew Tridgell
02014776e8
HAL_ChibiOS: auto-set HAL_HAVE_DUAL_USB_CDC
2019-07-12 17:01:21 +10:00
Andrew Tridgell
0075b96f3a
HAL_ChibiOS: added uartH
2019-07-12 17:01:21 +10:00
Siddharth Purohit
dcf17e5bc2
HAL_ChibiOS: hwdef: add support for dual cdc on CubeYellow and CubeOrange
2019-07-12 17:01:21 +10:00
Siddharth Purohit
2f0d1336e6
HAL_ChibiOS: add support for dual usd cdc
2019-07-12 17:01:21 +10:00
anbello
b65f5bf632
ChibiOS: hwdef revo-mini correct IMU rotation
2019-07-12 14:01:06 +10:00
Andrew Tridgell
d2fe47d2e0
HAL_ChibiOS: dither heater pins to prevent magnetic impact
2019-07-12 12:46:27 +10:00
Andrew Tridgell
b12cc57c64
HAL_ChibiOS: switched on fast sampling on IMU3 by default on hex cubes
...
as some people are flying with EK2_IMU_MASK=7 this reduces the risk of
aliasing on IMU3
2019-07-11 10:24:45 +10:00
Andrew Tridgell
3b0bd67afb
HAL_ChibiOS: enable CAN on Pixhawk6
2019-07-08 12:19:20 +10:00
Siddharth Purohit
2f153a3577
HAL_ChibiOS: remove singleton interface from slcan_router
2019-07-08 12:18:29 +10:00
Siddharth Purohit
67c925865c
HAL_ChibiOS: add support for CAN on STM32H7 boards
2019-07-08 12:18:29 +10:00
Peter Barker
a61028c55d
AP_HAL_ChibiOS: disable scripting if USE_FATFS=no
2019-07-08 09:55:46 +10:00
Andrew Tridgell
898150e460
HAL_ChibiOS: cope with calling delay_microseconds_boost() multiple times
...
needed for updated IMU wait code
2019-07-07 19:03:01 +10:00
Atxheli
7f3cb09da2
correct comment placement for second led
2019-07-04 08:36:33 +10:00
Hwurzburg
a9783de61c
correct include paths, uncomment alarm pin, fix conflict with rssi
2019-07-04 08:36:33 +10:00
Hwurzburg
3e3d7b8e7f
Change to "include" style for new board, fix to allow LED to be used as status indicator
2019-07-04 08:36:33 +10:00
Hwurzburg
10838387c5
Split Omnibus F4 pro and non-pro into two boards to allow pro boards to have 8 pwm outputs
2019-07-04 08:36:33 +10:00
Alexey Kozin
e5988f7153
AP_HAL_ChibiOS: fix voltage sensor connected to fmu adc
2019-07-02 06:42:11 +10:00
bugobliterator
7d4a758059
hwdef: fix default battery monitor pins for CubeOrange
2019-06-28 14:18:11 +10:00
Michael du Breuil
a34ac14ec5
AP_HAL_ChibiOS: Make BOARD_FLASH_SIZE available at configure time
2019-06-18 00:06:32 -07:00
Peter Barker
1f4de871da
AP_HAL_ChibiOS: return RC protocol being decoded
2019-06-18 11:35:38 +10:00
vierfuffzig
7780e8ed00
AP_HAL_ChibiOS: add support for AIO and OSD board types
...
this allows init on board variant without onboard baro
2019-06-18 10:10:22 +10:00
Andrew Tridgell
51e187342b
HAL_ChibiOS: move the power control changes to be only CubeBlack
...
This aims to fix #11455 . I have been unable to reproduce the issue,
which leaves me thinking it is either a bootloader difference or a hw
difference between pixhawk1 clones and real pixhawk1 boards
2019-06-09 16:56:14 +10:00
Siddharth Purohit
a926effee5
hwdef: iomcu set pin mode to input for autodetecting heater control level
2019-06-08 14:31:01 +10:00
Lucas De Marchi
e66de36016
HAL_ChibiOS: fix I2C transaction without stop condition
...
Start using i2cSoftStop() instead of i2cStop() so the peripheral
continues to be enabled and with non-gated clock. This allows time for
the I2C peripheral to continue the ack or stop.
2019-06-06 09:27:47 -07:00
Andrew Tridgell
73bc277470
HAL_ChibiOS: fixed KakuteF7 build
...
low on flash
2019-06-06 12:19:13 +10:00
Andrew Tridgell
2acaada884
HAL_ChibiOS: fixed OMNIBUSF7V2 build
...
ran out of flash for plane
2019-06-06 12:19:13 +10:00
Andrew Tridgell
bfdf857b34
HAL_ChibiOS: fixed airbotf4 build
2019-06-06 12:19:13 +10:00
Andrew Tridgell
614a059819
HAL_ChibiOS: convert more boards to using new sensor config system
2019-06-05 18:54:40 +10:00
Andrew Tridgell
ff603a1f0b
HAL_ChibiOS: convert mini-pix
2019-05-30 15:39:57 +10:00
Andrew Tridgell
4548aa162b
HAL_ChibiOS: convert mindpx-v2
2019-05-30 15:39:57 +10:00
Andrew Tridgell
91aa49ba6f
HAL_ChibiOS: convert matek boards
2019-05-30 15:39:57 +10:00
Andrew Tridgell
fca03bef8d
HAL_ChibiOS: convert F4BY
2019-05-30 15:39:57 +10:00