Siddharth Purohit
a79efaeb1d
AP_HAL_ChibiOS: hwdef: add support for HAL CANIface based bootloader
2020-09-24 12:32:19 +10:00
Siddharth Purohit
882c86c394
AP_HAL_ChibiOS: add app start offset to leave space for params
2020-09-24 12:32:19 +10:00
Siddharth Purohit
1f16aa8360
HAL_ChibiOS: add hwdef for CubeOrange-periph
2020-09-24 12:32:19 +10:00
Siddharth Purohit
62df67a4b8
HAL_ChibiOS: hwdef: modify to use HAL CAN driver instead of ChibiOS's
2020-09-24 12:32:19 +10:00
Hwurzburg
d5722b15e9
AP_ChibiOS: fix configuration number in OmnibusF7V2 hwdef
2020-09-23 07:35:22 +10:00
Hwurzburg
de8002ab5e
AP_HAL_ChbiOS: ALT config to enable UART3 in place of I2C
2020-09-22 09:48:02 +10:00
Hwurzburg
c64f286333
AP_ChibOS: add UART7_RX to OMNIBUSF7V2
2020-09-17 10:47:18 +10:00
bugobliterator
575a56a6b6
hwdef: CubeOrange: do power reset on peripherals and sensor at boot
2020-09-16 18:08:08 +10:00
bugobliterator
a2ee82d8d9
hwdef: use inv2 sensor checks in CubeOrange
2020-09-16 18:08:08 +10:00
Andy Piper
570fd59c39
AP_HAL_ChibiOS: disable OSD parameters on F7 1Mb boards with SD cards
2020-09-10 18:10:32 +10:00
Andrew Tridgell
1ffbbb2896
HAL_ChibiOS: added FLASH_TOTAL to environment
2020-09-10 07:41:25 +10:00
Andy Piper
bbaaf7d66f
AP_HAL_ChibiOS: disable features on KakuteF7 and OmnibusF7v2 to mirror KakuteF7Mini
2020-09-09 20:36:42 +10:00
Andrew Tridgell
90e488d29d
HAL_ChibiOS: set airspeed type in f303-MatekGPS fw
2020-09-09 12:04:49 +10:00
Andrew Tridgell
e95a44e73c
HAL_ChibiOS: run f303-MatekGPS at 10Hz
2020-09-09 06:35:50 +10:00
Andrew Tridgell
844db20db0
HAL_ChibiOS: use a default node ID for f303-MatekGPS
2020-09-09 06:35:50 +10:00
Andrew Tridgell
9c7568eb5f
HAL_ChibiOS: enable MSP output for f303-MatekGPS
2020-09-09 06:35:50 +10:00
chobits
f4320c935c
AP_HAL_ChibiOS: fix kakutef7/mini motor glitch when using dshot
2020-09-08 18:57:30 +10:00
vierfuffzig
63fdac0048
AP_HAL_ChibiOS: add USART3 as alt config on OmnibusNanoV6
2020-09-07 15:34:01 +10:00
Andrew Tridgell
3a252a042b
HAL_ChibiOS: fixed fast sampling on F32Lightning
...
this SPI bus on this board can't handle 8MHz
2020-09-02 06:42:44 +10:00
Andrew Tridgell
491e82159c
HAL_ChibiOS: add HAL_WITH_SPI_xx defines for SPI devices
...
this allows us to avoid building drivers for SPI devices we don't
have, such as OSD
2020-09-02 05:56:46 +10:00
vierfuffzig
56e44c46ca
AP_HAL_ChibiOS: disable IMU fast sampling on F35 / WingFC10
...
fast sampling introduces random IMU glitches, bisect search identifies 9c2caf5b12
disabling fast sampling fixes IMU back to expected behaviour. see:
https://github.com/ArduPilot/ardupilot/issues/15090
https://discuss.ardupilot.org/t/shaking-horizon-and-jittering-servos/60420
for reference
2020-08-31 19:50:09 +10:00
Andrew Tridgell
36442dc9b0
HAL_ChibiOS: added Matek CAN GPS
...
supports GPS, baro, mag and airspeed
2020-08-25 09:59:15 +10:00
Andrew Tridgell
4c4c3d467b
HAL_ChibiOS: added f103-Airspeed sensor
...
for Matek CAN airspeed sensor
2020-08-25 09:59:15 +10:00
Siddharth Purohit
8dcb973dad
HAL_ChibiOS: fix SWD config in f3 boards
2020-08-20 19:08:14 +10:00
Siddharth Purohit
cdf8e369f1
AP_HAL_ChibiOS: create UAVCAN agnostic CANIface driver
...
HAL_ChibiOS
2020-08-19 17:31:09 +10:00
Andy Piper
baf92a17f9
AP_HAL_ChibiOS: disable AP_Mount on "mini" boards
2020-08-04 09:18:14 +10:00
Andrew Tridgell
d283dd7d00
HAL_ChibiOS: define polarity of 3.3/5v selection for PWM
2020-07-21 08:47:27 +10:00
Andrew Tridgell
99ac8e2fbe
HAL_ChibiOS: enable BRD_PWM_VOLT_SEL parameter for mRoPixracerPro
2020-07-21 08:47:27 +10:00
Henry Wurzburg
d78c5371db
AP_HAL_ChibiOS: remove fmuv4 and update Pixracer
2020-07-13 15:24:54 +10:00
Andrew Tridgell
9f1e641637
HAL_ChibiOS: added new STM32Cube configs
2020-07-10 13:33:51 +10:00
Andrew Tridgell
84bd59a7bb
HAL_ChibiOS: support H7 with no crystal
2020-07-10 13:33:51 +10:00
Andrew Tridgell
cfbfb27004
HAL_ChibiOS: support no-crystal F3 setups
2020-07-10 13:33:51 +10:00
Peter Barker
cadb1012df
AP_HAL_ChibiOS: reenable full features on KakuteF7Mini
2020-07-02 18:38:46 +10:00
Andrew Tridgell
ce8591ddbc
HAL_ChibiOS: re-enable full features on KakuteF7 and OMNIBUSF7V2
...
we now have enough space with recent changes for these boards
2020-07-02 18:38:46 +10:00
Andy Piper
c707303336
AP_HAL_ChibiOS: hold buzzer ping low in bootloader for omnibusf4pro
2020-06-30 17:58:35 +10:00
Andy Piper
48e0da8444
AP_HAL_ChibiOS: pull buzzer pin low in Kakute F7 bootloader to prevent startup scream
2020-06-30 17:58:35 +10:00
Andrew Tridgell
20b2396646
HAL_ChibiOS: fixed bug in undef of pins
...
revert pin to initial state on undef
2020-06-30 14:28:30 +10:00
Randy Mackay
f9a866d09a
AP_HAL_ChibiOS: luminousbee4 serial5 to mavlink2
2020-06-30 09:42:49 +10:00
Randy Mackay
3e0bb4110a
AP_HAL_ChibiOS: fmuv4 serial5 to mavlink2
2020-06-30 09:42:49 +10:00
Randy Mackay
ced448b706
AP_HAL_ChibiOS: DrotekP3Pro serial5 to mavlink2
2020-06-30 09:42:49 +10:00
MATEKSYS
903b44da7d
HAL_ChibiOS: Add DPS310 for MatekF405-WING,F765-WING and H743
2020-06-22 19:35:01 +10:00
Andrew Tridgell
6fa623d074
HAL_ChibiOS: added Holybro Pix32v5
2020-06-12 21:23:16 +10:00
MATEKSYS
14e01e21b7
HAL_ChibiOS: MatekH743: move baro to I2C2 bus
2020-06-11 17:31:59 +10:00
Andrew Tridgell
c1403a2e2b
HAL_ChibiOS: fixed default CubeOrange pin for 2nd current sensor
2020-06-10 17:32:11 +10:00
Andrew Tridgell
6a1f43d5df
HAL_ChibiOS: fixed build with our old compiler
...
gcc 4.9 doesn't like static_assert() in C code
2020-06-07 14:11:48 +10:00
duccan
cdcdd5ce27
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-07 07:49:37 +10:00
duccan
0d96c7f7a5
AP_HAL_ChibiOS: Added support for Bitcraze Crazyflie 2.1
2020-06-07 07:49:37 +10:00
James Jacobsson
8a87322d93
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-04 10:06:22 +10:00
Phillip Kocmoud
0d5a0f392c
hwdef.dat update x2.1-777
2020-06-04 09:51:27 +10:00
Andrew Tridgell
571fbf8f71
HAL_ChibiOS: update power VALID pins
2020-06-04 09:51:27 +10:00
CUAVcaijie
220e6999c7
HAL_ChibiOS:Adapt to CUAV Nora V1.2 hardware
2020-05-28 19:13:49 +10:00
pkocmoud
7809dc849c
HAL_ChibiOS: Added support for mRo Pixracer Pro flight controller
2020-05-27 21:22:56 +10:00
Henry Wurzburg
9c72525bbf
AP_HAL_ChibiOS: Add unused LED output as GPIO in OmnibusF4Pro def
2020-05-26 10:51:32 +10:00
Henry Wurzburg
12d5602926
AP_HAL_ChibiOS: Add ability to use UART3 and UART4 in bd alt config 4
2020-05-11 14:18:35 +10:00
Andrew Tridgell
259cb0aafd
HAL_ChibiOS: removed EKF2 define, not needed any more
2020-05-10 15:09:54 +10:00
Andrew Tridgell
61d036acf3
HAL_ChibiOS: added build time check for right system clock
...
this helps prevent cases where we underclock a chip due to mistake in
headers or hwdef.dat
2020-05-10 15:09:28 +10:00
Andrew Tridgell
69676cd614
HAL_ChibiOS: support 24MHz f3 MCUs
2020-05-10 15:09:28 +10:00
Henry Wurzburg
3f735e7e54
HAL_ChibiOS: Make full UART4 available as bd config option
2020-05-10 08:00:57 +10:00
Henry Wurzburg
225a305cb9
AP_HAL_ChibiOS:Remove alt config since its not useful (no TX available)
2020-05-10 08:00:21 +10:00
Peter Barker
967f8bf726
AP_HAL_ChibiOS: correct description of where stdout goes
2020-05-05 07:57:57 +10:00
pkocmoud
defb7dc43f
hwdef: add mRo M10070 Location One CAN GPS
2020-04-30 11:31:43 +10:00
Andrew Tridgell
3ec2ef787d
HAL_ChibiOS: fixed build warning
2020-04-29 12:20:19 +10:00
Andrew Tridgell
ce68e0fbb5
HAL_ChibiOS: fixed bootloader build
2020-04-29 07:36:55 +10:00
Andrew Tridgell
18e88e0ea3
HAL_ChibiOS: implement stack overflow hook
...
this needs C bindings to allow call from low level RTOS thread
switching code
2020-04-29 07:36:55 +10:00
Andrew Tridgell
a5965d5a9e
HAL_Chibios: removed unnecessary debug defines
2020-04-29 07:36:55 +10:00
Andrew Tridgell
2c26807736
HAL_ChibiOS: embed hwdef.dat in ROMFS for all boards
2020-04-29 07:36:55 +10:00
Andrew Tridgell
6bacf021c8
HAL_ChibiOS: disable thread_info in AP_Periph and bootloader
2020-04-29 07:36:55 +10:00
Andrew Tridgell
f0c9f4003e
HAL_ChibiOS: implement thread_info()
2020-04-29 07:36:55 +10:00
Andrew Tridgell
ea71b72c87
HAL_ChibiOS: fixed issue with I2C4 on H743
...
when both I2C4 and SPI4 are active on a H743 I found that some BDMA
completion interrupts were lost, which resulted in SPI transfer
timeouts. Close inspection of the ChibiOS BDMA, I2Cv3 and SPIv3
drivers did not reveal any issues, but I found that the issue only
happened when the first 4 BDMA streams were used. This change splits
the 4 streams across the first and 2nd half of the BDMA controller,
and that fixes the problem.
This works as there are only 2 peripherals (I2C4 and SPI6) that want
to use BDMA with our current setup. If we ever wish to enable ADC3
(which also uses BDMA) we will need to revisit this issue
2020-04-28 17:42:15 +10:00
Andrew Tridgell
32cdfddf12
HAL_ChibiOS: convert all hwdef from UART_ORDER to SERIAL_ORDER
...
much easier to understand
2020-04-28 10:32:23 +10:00
Andrew Tridgell
a52070d226
HAL_ChibiOS: use SERIAL_ORDER instead of UART_ORDER
...
SERIAL_ORDER is much easier for developers to understand as it maps
directly to the SERIALn_ parameters
2020-04-28 10:32:23 +10:00
Andrew Tridgell
0994655f5b
HAL_ChibiOS: fixed build warnings for bootloader builds
2020-04-28 10:32:23 +10:00
Andrew Tridgell
9557a5c22c
HAL_ChibiOS: added more STM32CubeMX configs
2020-04-28 10:32:23 +10:00
Andrew Tridgell
a9df9fe0c0
HAL_ChibiOS: removed clock tree settings in most hwdef.dat
...
these are better set automatically in the headers. This simplifies the
task of doing a new port
2020-04-28 10:32:23 +10:00
Andrew Tridgell
a638196334
HAL_ChibiOS: skyviper-f412-rev1 uses a custom clock tree
2020-04-28 10:32:23 +10:00
Andrew Tridgell
e8b2b52bae
HAL_ChibiOS: removed STM32_VDD from hwdef.dat
...
use default
2020-04-28 10:32:23 +10:00
Andrew Tridgell
d9efac2993
HAL_ChibiOS: only allow PLL override in clock selection part of header
2020-04-28 10:32:23 +10:00
Andrew Tridgell
fe765b8845
HAL_ChibiOS: switched CUAV_GPS to use same clocks as other F4
2020-04-28 10:32:23 +10:00
Andrew Tridgell
82c45f6cdb
HAL_ChibiOS: default STM32_VDD to 3.3V
2020-04-28 10:32:23 +10:00
Andrew Tridgell
29f538dec9
HAL_ChibiOS: use common header for STM32 clock config
...
avoid the need for clock config lines in most hwdef.dat files
2020-04-28 10:32:23 +10:00
Andrew Tridgell
3d5475a1d9
HAL_ChibiOS: fixed skyviper-journey build
2020-04-28 10:32:23 +10:00
Ivannikov Kirill
3ab1b29397
AP_HAL_ChibiOS: error if system clock not 1mhz on 16 CH_CFG_ST_RESOLUTION. prevent variable overflow
...
if CH_CFG_ST_FREQUENCY not match 1000000U on 16 bit CH_CFG_ST_RESOLUTION
we try to multiply now *= 1000000U/CH_CFG_ST_FREQUENCY; it may overflow 16 bit value.
2020-04-26 19:58:54 +10:00
Andrew Tridgell
d9e2a644ea
HAL_ChibiOS: fixed Durandal buzzer in bootloader
...
need to pull low to avoid buzzer running in bootloader
2020-04-24 19:46:22 +10:00
Andrew Tridgell
43ac58c63b
HAL_ChibiOS: added STM32CubeMX configs for H7 processor crystal varients
...
useful for checking clock config changes
2020-04-24 16:55:03 +10:00
Andrew Tridgell
db642717be
HAL_ChibiOS: fixed clock for FDCAN to be below 80MHz
...
we were running at 100MHz, which is out of spec
2020-04-24 16:55:03 +10:00
Andrew Tridgell
4ec1717361
HAL_ChibiOS: enable IMU temp control on CUAV-X7
2020-04-23 09:05:52 +10:00
Andrew Tridgell
56b0dddb7c
HAL_ChibiOS: set IMU temp on CUAV-X7
2020-04-23 07:28:13 +10:00
Andrew Tridgell
5892e6421e
HAL_ChibiOS: enable DRDY on ADIS16470 on CUAV-X7
2020-04-23 07:28:13 +10:00
Andrew Tridgell
ffe773ff6f
HAL_ChibiOS: use DRDY pin for ADIS16470 on mRoNexus
2020-04-23 07:28:13 +10:00
Andrew Tridgell
8e977183fe
HAL_ChibiOS: added mRoNexus
2020-04-23 07:28:13 +10:00
Andrew Tridgell
6be519fb0d
HAL_ChibiOS: added alt-config for UART4 on omnibusf4pro
2020-04-21 18:42:12 +10:00
Andy Piper
f3b240533f
AP_HAL_ChibiOS: eliminate EKF2 from fmuv2 build
2020-04-18 20:18:30 +10:00
Andrew Tridgell
cac455ff2d
HAL_ChibiOS: added another uart to omnibusf4v6
...
for RC telemetry such as Hott telem
2020-04-17 11:23:06 +10:00
vierfuffzig
7c7b199bbd
AP_HAL_ChibiOS: add I2C / USART3 ALT_CONFIG for omnibusf4pro
2020-04-16 08:42:24 +10:00
Andrew Tridgell
74f33d57c5
HAL_ChibiOS: avoid unnecessary H7 flash writes
2020-04-14 10:02:51 +10:00
Andrew Tridgell
4b236e52b2
HAL_ChibiOS: added MatekH743 port
2020-04-14 10:02:51 +10:00
Andrew Tridgell
2165fd66f1
HAL_ChibiOS: define FLASH_RESERVE_END_KB
2020-04-14 10:02:51 +10:00
Henry Wurzburg
e5319397b4
AP_HAL_ChibiOS: eliminate EKF2 from F4 builds not using HAL_MINIMIZE_FEATURES
2020-04-14 09:19:28 +10:00
Andrew Tridgell
db4f1a1473
HAL_ChibiOS: enable ADIS16470 on SPI1
2020-04-13 15:26:02 +10:00
CUAVcaijie
942b2fd29f
HAL_ChibiOS: Added support for CUAV X7 flight controller
2020-04-13 15:26:02 +10:00
bugobliterator
a31f2e5d90
hwdef: add validation checks for CubeOrange
2020-04-10 07:04:21 +10:00
bugobliterator
ef91f1634b
HAL_ChibiOS: add support for adding board validation test
2020-04-10 07:04:21 +10:00
Andrew Tridgell
376116c99b
HAL_ChibiOS: fixed skyviper-journey build
2020-04-04 10:47:15 +11:00
Henry Wurzburg
a637073dad
AP_HAL_Chibios: add tenth PWM output to MatekF405-Wing
2020-03-30 11:23:14 +11:00
Andrew Tridgell
e0957c2bcc
HAL_ChibiOS: include hwdef.dat in ROMFS
...
this allows download via ftp
2020-03-28 15:28:03 +11:00
Andrew Tridgell
ea57b7b3cd
HAL_ChibiOS: embed ROMFS files from hwdef directory
...
this allows for a scripts/ directory under hwdef board directory to
embed lua scripts
2020-03-28 15:28:03 +11:00
Andrew Tridgell
822460ce7d
HAL_ChibiOS: fixed strdup() on ChibiOS
2020-03-28 15:28:03 +11:00
bugobliterator
8215537f99
HAL_ChibiOS: deprecate realloc for ChibiOS build, so as to return error when used
2020-03-24 10:32:14 +11:00
Andrew Tridgell
5a4b648cf5
HAL_ChibiOS: disable flash fallback for boards with FRAM
...
this saves on flash and prevents confusing results when fram fails
2020-03-14 13:47:25 +11:00
Andy Piper
104dd7cd75
AP_HAL_ChibiOS: remove board subtype for OmnibusNanoV6
2020-03-14 10:20:46 +11:00
Andrew Tridgell
986ad0dc27
HAL_ChibiOS: removed unnecessary subtype defines
2020-03-14 08:35:32 +11:00
Andrew Tridgell
c3f2117590
HAL_ChibiOS: fixed R9Pilot board ID
2020-03-14 07:05:22 +11:00
Andrew Tridgell
d35fff5186
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-03-11 09:53:06 +11:00
Peter Barker
d0edfd2c0d
AP_HAL_ChibiOS: VRUBrain-v51: reduce AP_MAX_EMBEDDED_PARAM to 1024
...
Stops us overflowing on Copter and Plane builds
2020-03-10 10:50:18 +11:00
Andrew Tridgell
16f34778fc
HAL_ChibiOS: added f103-HWESC target
2020-03-04 16:21:06 +11:00
Andrew Tridgell
bca1bd2c72
HAL_ChibiOS: added f303-HWESC firmware
2020-03-04 16:21:06 +11:00
Peter Barker
1a123e5f8d
AP_HAL_ChibiOS: avoid referencing flash sector/page 22 on 1MB boards
2020-03-03 10:13:53 +11:00
Andrew Tridgell
ccc7d48c20
HAL_ChibiOS: reserve plenty of DMA memory for luminousbee4
2020-02-27 13:12:26 +11:00
Andrew Tridgell
5bfd607300
HAL_ChibiOS: added luminousbee4 flight controller
2020-02-27 13:12:26 +11:00
Andrew Tridgell
41b74ec014
HAL_ChibiOS: use DNA by default for all AP_Periph builds
...
this makes multiple sensors of the same type on the bus easier
2020-02-22 12:28:16 +11:00
Andrew Tridgell
6139860a64
HAL_ChibiOS: use default USB IDs for fmuv3
2020-02-22 12:17:05 +11:00
Andy Piper
3d0cf7e12a
AP_HAL_ChibiOS: hardware M4-Cortex and M7-Cortex (and H7) implementation of HAL FFT abstraction
...
implements an FFT engine based on the betaflight feature using ARM hardware accelerated CMSIS library
make the FFT feature optional
add dynamic gyro windows
add quinns and candans estimators and record in DSP state
disable DSP for boards with limited flash
calculate power spectrum rather than amplitude
start/analyse version of analysis to support threading
allocate memory in a specific region
constrain window size by CPU class
control inclusion of DSP based on board size
2020-02-22 11:15:37 +11:00
pkocmoud
8c764bb568
hwdef: switch to (0) DNA as the default NODEID
2020-02-17 12:48:37 +11:00
pkocmoud
8f6d2aab7a
hwdef: add mRo M10025 KITCAN
2020-02-17 12:48:37 +11:00
Andrew Tridgell
bebfef369f
HAL_ChibiOS: fixed power flags for CUAV-Nora
2020-02-12 21:17:49 +11:00
CUAVcaijie
561808ba3c
HAL_ChibiOS: Added support for CUAV Nora flight controller
2020-02-12 21:17:49 +11:00
Andrew Tridgell
9e0edba31d
HAL_ChibiOS: raised timer clocks to 200MHz
...
this gives more flexibility in setting up timers for DShot
2020-02-12 18:12:39 +11:00
Matt Lawrence
e6f32f4572
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-02-11 11:00:01 +11:00
Andrew Tridgell
12f31e328f
HAL_ChibiOS: fixed dshot docs for Pixhawk4
2020-02-08 14:15:37 +11:00
Randy Mackay
76c982ced8
AP_HAL_CHibiOS: update Pixhawk4 README to 16 pwm outputs
...
also correct Main PWM ouput's number of groups
2020-02-08 14:14:32 +11:00
Andrew Tridgell
bdef7d7158
HAL_ChibiOS: fixed default fast sampling on CubeOrange and Durandal
2020-02-05 12:48:51 +11:00
Andrew Tridgell
e0cd790505
HAL_ChibiOS: fixed spektrum RC input on Pixracer
...
RCININT is inverted compared to RCIN, so need to enable SBUS_INV pin
2020-02-05 10:45:36 +11:00
giacomo892
529f067914
HAL_ChibiOS: save more flash on SuccexF4
2020-02-02 06:02:59 +11:00
giacomo892
23a42b1914
HAL_ChibiOS: disable parachute and sprayer on SuccexF4
2020-02-02 06:02:59 +11:00
Andrew Tridgell
8b2629bfc1
HAL_ChibiOS: save 7k flash for boards close to flash limit
2020-02-01 06:58:43 +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
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
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
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
56985f8c33
HAL_ChibiOS: added checking on bouncebuffer allocation
...
fail operations if DMA bouncebuffer alloc fails
2020-01-18 07:13:11 +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
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
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
e9dded98ce
HAL_ChibiOS: enable UART6 for use as RC input on MatekF765-Wing
2020-01-02 09:52:57 +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
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
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
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
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
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
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
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
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
Andrew Tridgell
fc8d9e8af5
HAL_ChibiOS: added RTC_BOOT_FWOK value for RTC reboot register
...
this is used in CAN firmware to know if the main app firmware has run
for long enough to be considered good
2019-10-26 15:32:10 +11:00
Andrew Tridgell
6f9fda5094
HAL_ChibiOS: removed CAN_APP_VERSION_MAJOR from hwdef.dat
2019-10-25 13:52:43 +11:00
Andrew Tridgell
1bf037297d
HAL_ChibiOS: set correct APJ_BOARD_ID for ZubaxGNSS
2019-10-25 09:35:27 +11:00
Andrew Tridgell
49e669aa1f
HAL_ChibiOS: support uncompressed bootloader on f103-periph
...
this allows update with very low memory
2019-10-24 22:03:43 +11:00
Andrew Tridgell
cffb434de8
HAL_ChibiOS: tweak stack on f103-periph
2019-10-24 22:03:43 +11:00
Andrew Tridgell
a3b61a1b02
HAL_ChibiOS: enable ROMFS for ZubaxGNSS and f103-periph
...
this allows for bootloader update
2019-10-24 22:03:43 +11:00
Andrew Tridgell
a224342b18
HAL_ChibiOS: enable ROMFS for CUAV_GPS
2019-10-24 22:03:43 +11:00
Andrew Tridgell
f69be70772
HAL_ChibiOS: save some memory in f103-periph build
2019-10-22 17:51:24 +11:00
Andrew Tridgell
0a4576728e
HAL_ChibiOS: support a app->bootloader comms region in SRAM
...
this allows for UAVCAN update without a 2nd BeginFirmwareUpdate call
2019-10-21 19:12:01 +11:00
Andrew Tridgell
5605ad6c59
HAL_ChibiOS: enable MissionPlanner compatible app descriptor
2019-10-21 19:12:01 +11:00
Andrew Tridgell
7973a25c40
HAL_ChibiOS: fixed stack on ZubaxGNSS
2019-10-21 19:12:01 +11:00
Andrew Tridgell
910129eafc
HAL_ChibiOS: enable watchdog in AP_Periph firmwares
2019-10-21 19:12:01 +11:00
Andrew Tridgell
5efaea2d92
HAL_ChibiOS: fixed flash storage in ZubaxGNSS
2019-10-21 19:12:01 +11:00
Andrew Tridgell
e376884377
HAL_ChibiOS: fixed Zubax bootloader debug
2019-10-21 19:12:01 +11:00
Andrew Tridgell
e6cb35090c
HAL_ChibiOS: fixed page size for STM31F105 flash
2019-10-21 19:12:01 +11:00
Andrew Tridgell
0ef2a60682
HAL_ChibiOS: support ZubaxGNSS as a AP_Periph target
2019-10-21 19:12:01 +11:00
Andrew Tridgell
44f895ab16
HAL_ChibiOS: fixed for ZubaxGNSS build
2019-10-21 19:12:01 +11:00
Andrew Tridgell
8c796ecd2c
HAL_ChibiOS: support f103-RangeFinder
2019-10-21 19:12:01 +11:00
Andrew Tridgell
3cd7dd9f12
HAL_ChibiOS: disable GPS and MAG in base f103 build
...
enable in f103-GPS
2019-10-21 19:12:01 +11:00
Andrew Tridgell
3ca478747c
HAL_ChibiOS: enable airspeed in f103-ADSB
2019-10-21 19:12:01 +11:00
Andrew Tridgell
fa6b6140e3
HAL_ChibiOS: split out f103-GPS from base f103-periph
...
this makes it easier to create more peripheral variants
2019-10-21 19:12:01 +11:00
Andrew Tridgell
e90bd27435
HAL_ChibiOS: fixed I2C on F103
...
we need to use open-drain, and the sign of the constant matters
2019-10-20 20:31:02 +11:00
Andrew Tridgell
6f11926dbd
HAL_ChibiOS: enable NCP5623 LED in f103-GPS
2019-10-20 20:31:02 +11:00
Andrew Tridgell
b9885034b1
HAL_ChibiOS: added a f103-ADSB firmware
...
for presenting a ping ADSB device as UAVCAN
2019-10-16 13:13:24 +11:00
Andrew Tridgell
85271a8747
HAL_ChibiOS: split out f103-GPS from base f103-periph
...
this makes it easier to create more peripheral variants
2019-10-16 13:13:24 +11:00
Andrew Tridgell
b7ae12a9d3
HAL_ChibiOS: reduce max compasses to 1 on AP_Periph
2019-10-16 08:58:52 +11:00
Andrew Tridgell
97dc76732c
HAL_ChibiOS: drop mRoControlZeroF7 DPS310 clock to 5MHz
2019-10-15 10:22:15 +11:00
Henry Wurzburg
c515f4b317
AP_HAL_ChibiOS/hwdef: update KakuteF4 readme
2019-10-14 10:04:30 +11:00
Andy Piper
28b866cc8f
AP_HAL_ChibiOS: hardware definitions for Kakute F7 Mini
2019-10-12 21:53:55 +11:00
Andrew Tridgell
47f2f1764d
HAL_ChibiOS: generate HAL_MEMORY_TOTAL_KB for each board
2019-10-01 09:29:55 +10:00
Andrew Tridgell
e3a965272c
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-01 09:08:25 +10:00
Andrew Tridgell
748cf39116
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-09-30 07:58:40 +10:00
Andrew Tridgell
e820219202
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-09-28 08:57:26 +10:00
Andrew Tridgell
850892c3d9
HAL_ChibiOS: fixes from LGTM errors
2019-09-22 18:35:15 +10:00
Andrew Tridgell
3c058851b2
HAL_ChibiOS: fixed undef for define lines
...
this fixes IMU heater enable for CubeBlack+
2019-09-16 12:53:44 +10:00
Andrew Tridgell
255e769171
HAL_ChibiOS: fixed IMU order and board ID for CubeBlack+
2019-09-16 12:53:44 +10:00
bugobliterator
e82da992c9
HAL_ChibiOS: hwdef: add hwdef for CubeBlack+
2019-09-16 12:53:44 +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