Commit Graph

392 Commits

Author SHA1 Message Date
Andrew Tridgell
ac5294c974 HAL_ChibiOS: record reason for reset
allows us to tell if reset was due to watchdog
2019-04-20 13:54:18 +10:00
Andrew Tridgell
78ac3e1e2f HAL_ChibiOS: added IWDG watchdog support
this resets the MCU if the main loop stops for 1 second

# Conflicts:
#	libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp
2019-04-20 13:52:31 +10:00
Andrew Tridgell
ae2d4e6edc HAL_ChibiOS: change CUAVv5Nano default PWM count to 11 2019-04-11 16:12:32 +10:00
Andrew Tridgell
021816ecbc HAL_ChibiOS: fixed CUAVv5Nano uarts 2019-04-11 16:12:29 +10:00
Andrew Tridgell
ee9d084757 HAL_ChibiOS: support for CUAVv5Nano board
F765 with no IOMCU
2019-04-11 16:12:27 +10:00
Andrew Tridgell
0360f887a0 HAL_ChibiOS: allocate threads from any heap
this fixes a failure on MatekF405-Wing where it fails to allocate the
SPI thread for the IMU
2019-02-27 12:00:18 +11:00
Andrew Tridgell
f03893c2f8 HAL_ChibiOS: setup APJ board IDs in environment 2019-02-25 10:52:25 +11:00
Andrew Tridgell
2187ee4611 HAL_ChibiOS: fixed mini-pix uart order 2019-02-25 10:52:25 +11:00
Andrew Tridgell
ba53230f70 HAL_ChibiOS: fixed CAN on Pixhawk4 and PH4-mini
the silent pins floating disabled CAN
2019-01-23 13:26:55 +11:00
Andrew Tridgell
98fa9454ed HAL_ChibiOS: disable USART6_TX on fmuv5
this prevents it acting as a pullup on SBUS input for Pixhawk4. Thanks
to David Sidrane for the suggestion.

This also enables the extra 3 PWMs for PH4-mini
2019-01-18 09:45:46 +11:00
Michael du Breuil
0a7fc2fd12 AP_HAL_ChibiOS: Fix FMUv2 LED lighting up 2019-01-11 17:46:20 +11:00
Andrew Tridgell
4732266017 HAL_ChibiOS: fixes for DrotekP3Pro 2019-01-11 13:15:33 +11:00
Kevin Lopez Alvarez
f350b3ce57 HAL_ChibiOS: add MCU tables for STM32F469 2019-01-11 13:15:23 +11:00
Kevin Lopez Alvarez
3ae1b0d3c3 HAL_ChibiOS: add DrotekP3Pro hardware definitions 2019-01-11 13:15:20 +11:00
Siddharth Purohit
8a64876eb2 HAL_ChibiOS: add CubePurple/PH2Slim board config 2019-01-10 21:35:04 +11:00
Andrew Tridgell
cf85f25adc HAL_ChibiOS: log stdout to USB on mindpx-v2 2018-12-31 08:15:08 +11:00
Andrew Tridgell
4d89a2757c HAL_ChibiOS: fixed card inserted test for SDC 2018-12-31 08:15:02 +11:00
Andrew Tridgell
680caeb349 HAL_ChibiOS: switched fmuv5 firmware to ChibiOS IO fw
so users installing fmuv5 on a Pixhawk4 get the SBUS fixes
2018-12-31 08:14:15 +11:00
Andrew Tridgell
5cac150a91 HAL_ChibiOS: fixed safety switch and LEDs on PH4-mini
fixes #10127
2018-12-31 08:14:10 +11:00
Andrew Tridgell
fe0030947e HAL_ChibiOS: detect stuck I2C bus and clear with SCL
This detects the I2C bus becoming stuck with SDA low after a timeout
and clears the bus by toggling SCL. Many thanks to @jhw84 for the
suggestion
2018-12-14 16:26:53 +11:00
Andrew Tridgell
067de3849c HAL_ChibiOS: added palReadLineMode() function
used to change and restore line modes
2018-12-14 16:26:50 +11:00
Andrew Tridgell
80b9cf09de HAL_ChibiOS: setup PH4 for right voltage scaling 2018-12-09 07:42:59 +11:00
Andrew Tridgell
bbfe147d50 HAL_ChibiOS: use ChibiOS IO firmware for Pixhawk4 2018-11-28 14:49:11 +11:00
Andrew Tridgell
50ad91f00f HAL_ChibiOS: allow ROMFS to override a file
this allows a hwdef.dat with an include to change an embedded file
specified in the include
2018-11-28 09:28:54 +11:00
Andrew Tridgell
633ba4ef20 HAL_ChibiOS: updated to latest hw definitions from master 2018-11-06 08:44:07 +11:00
Andrew Tridgell
ea52df3da4 HAL_ChibiOS: fixed LED mapping for fmuv4 2018-10-10 12:55:29 +11:00
s0up
b53dfbc3d2 HAL_ChibiOS: Add speedybee hardware definition 2018-09-07 08:34:40 +10:00
Andrew Tridgell
3ae4cfbf22 HAL_ChibiOS: enable terrain on Pixracer, minpx-v2 and mini-pix 2018-08-24 19:44:08 +10:00
Andrew Tridgell
765e00faf1 HAL_ChibiOS: reduce memory used by serial buffers
this does not appear to affect log download speed. It saves about 27k
of memory
2018-08-16 17:01:01 +10:00
Alexander Malishev
0da7a7cbda HAL_ChibiOS: restore default dataflash buffer size
This fix log corruption in copter
2018-08-15 10:16:16 +10:00
Andrew Tridgell
4f6a20ce9d HAL_ChibiOS: updated F745 and OmnibusNanoV6 2018-08-06 19:28:13 +10:00
Andrew Tridgell
6e6a47c0fd HAL_ChibiOS: added a DMA reserve heap
this ensures we keep some DMA-capable memory aside for when it is
needed
2018-08-06 16:01:36 +10:00
Andrew Tridgell
a5c0e5c4c1 HAL_ChibiOS: probe all external compasses on mini-pix 2018-07-30 18:11:42 +10:00
Andrew Tridgell
033061121a HAL_ChibiOS: added RC input for OMNIBUSF7V2 2018-07-30 10:49:24 +10:00
Timothy Knab
e02950b06b HAL_ChibiOS: Updated OMNIBUSF7V2
Compasses on the I2C bus are now detected properly and GPS on UART3 works.
2018-07-30 10:49:22 +10:00
Andrew Tridgell
40a0decbc2 HAL_ChibiOS: override COMPASS_AUTO_ROT on several boards 2018-07-28 15:36:37 +10:00
Andrew Tridgell
9667e1766f HAL_ChibiOS: added Pixhawk1 build target
this is more obvious to users than fmuv3
2018-07-27 10:04:09 +10:00
Alexander Malishev
06434a48c3 HAL_ChibiOS: fix DTCM size in stm32f745 mcu 2018-07-26 17:53:09 +10:00
Andrew Tridgell
154302cb6d HAL_ChibiOS: rename f4by-ch to F4BY 2018-07-19 12:39:58 +10:00
Alexander Malishev
f2ac91ca24 AP_Bootloader: add f4by bootloader 2018-07-19 12:39:57 +10:00
Andrew Tridgell
caa553e727 HAL_ChibiOS: fixed internal i2c mask for Pixracer 2018-07-18 12:04:01 +10:00
Alexander Malishev
4342dae065 HAL_ChibiOS: define BOARD_RSSI_ANA_PIN to simpify tuning 2018-07-16 08:29:49 +10:00
Alexander Malishev
e04f438ce3 HAL_ChibiOS: fix analog pins on MatekF405 2018-07-16 08:29:49 +10:00
Alexander Malishev
89f7d652e0 HAL_ChibiOS: removed wrong led pin 2018-07-16 08:29:49 +10:00
Andrew Tridgell
9ab55f6838 HAL_ChibiOS: probe for external compasses on several boards
boards that have no internal compass will now probe for all external
compass types
2018-07-14 17:51:50 +10:00
Andrew Tridgell
7eabee04a3 HAL_ChibiOS: enable OSD on KakuteF7 2018-07-13 14:53:53 +10:00
Andrew Tridgell
b96f24c80e HAL_ChibiOS: added KakuteF7
thanks to Huibean for the fixes!
2018-07-13 14:53:53 +10:00
Andrew Tridgell
f2d602690e HAL_ChibiOS: fixed build error with some compilers 2018-07-13 08:50:46 +10:00
Andrew Tridgell
0201893f7c HAL_ChibiOS: fixed peripheral power-up on fmuv5
we need to do the powerup before we initialise the UARTs
2018-07-13 07:34:30 +10:00
Andrew Tridgell
409e857f6b HAL_ChibiOS: use pullup on CTS line
this makes life less difficult for SiK radios which go into bootloader
mode on low CTS
2018-07-13 07:34:30 +10:00