Peter Barker
338a4d6b38
hwdef: remove HAL_BOARD_LOG_DIRECTORY and HAL_BOARD_TERRAIN_DIRECTORY defaults
...
these are now defaulted in chibios_hwdef.py
2023-07-19 17:25:18 +09:00
Andy Piper
4a8ce32f90
AP_HAL_ChibiOS: remove USART3 to match fmuv5 and save some flash
...
remove UART7 on fmuv3 to save enough flash to fit in 16k
2023-03-29 20:49:40 +11:00
Andrew Tridgell
32578b796b
hwdef: fixed polarity of VDD_5V_PERIPH_EN on several boards
...
we can tell these are incorrect as they init to LOW, and previously we
didn't have handling of VDD_5V_PERIPH_EN, so we know that LOW is
enabled or the boards would not have worked
this fixes GPS on Pixhawk1
2023-03-17 17:40:51 +11:00
Peter Barker
b52f54d480
AP_HAL_ChibiOS: add defines for all battery backends
2023-03-10 08:48:24 +11:00
Peter Barker
af3edf0089
AP_HAL_ChibiOS: add and use AP_BATTMON_SMBUS_SOLO_ENABLED
2023-01-25 22:42:55 +11:00
Peter Barker
6ea352b087
AP_Notify: rename HAL_OREO_LED_ENABLED to AP_NOTIFY_OREOLED_ENABLED
2022-11-22 10:23:35 +11:00
Andrew Tridgell
861bd06034
hwdef: added warning messages about flash size
2022-10-06 10:58:46 +11:00
Peter Barker
29c2c40c41
hwdef: enable both OreoLED and Solo gimbal on fmuv3
...
for users running fmuv3 on their Solo
2022-03-29 08:24:59 +09:00
Andrew Tridgell
68146d541c
HAL_ChibiOS: removed boilerplate lines from bootloaders
2021-10-26 15:56:53 +11:00
Peter Barker
70aef84997
AP_HAL_ChibiOS: remove definitions of BOARD_PWM_COUNT_DEFAULT
...
No longer used
2021-08-20 10:51:19 +10:00
Andrew Tridgell
bbcce717dc
HAL_ChibiOS: stop defaulting relay pins to 54 and 55
...
this just leads to confusion
2021-07-22 07:48:12 +10:00
Andrew Tridgell
91dce554d1
HAL_ChibiOS: removed unnecessary USB product IDs from boards
2021-05-27 09:30:30 +09:00
Andrew Tridgell
571fbf8f71
HAL_ChibiOS: update power VALID pins
2020-06-04 09:51:27 +10:00
Andrew Tridgell
a5965d5a9e
HAL_Chibios: removed unnecessary debug defines
2020-04-29 07:36:55 +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
e8b2b52bae
HAL_ChibiOS: removed STM32_VDD from hwdef.dat
...
use default
2020-04-28 10:32:23 +10: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
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
Andrew Tridgell
6139860a64
HAL_ChibiOS: use default USB IDs for fmuv3
2020-02-22 12:17:05 +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
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
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
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
bugobliterator
cba98096e9
HAL_ChibiOS: move to using hardcoded heater PWM polarity in iofirmware
2019-07-25 17:05:41 +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
Andrew Tridgell
6333494d99
HAL_ChibiOS: disable peripheral power on boot on fmuv3
...
then enable after 100ms, and let settle for 20ms. This is to fix an
issue with peripheral power on consistency with all fmuv3 boards
Thanks to Philip for the suggestion
2019-05-11 18:45:18 +10:00
Andrew Tridgell
2b0a30a2c5
HAL_ChibiOS: ensure we don't overflow bootloader area
...
this modifies the ld script to use the maximum size available for the
bootloader, so we can't accidentially grow the bootloader beyond its
max size
2019-05-06 12:36:41 +10:00
Andrew Tridgell
59652ad147
HAL_ChibiOS: added more IMU devices for Hex Cube boards
2019-03-11 12:40:21 +11:00
Michael du Breuil
3aee083540
AP_HAL_ChibiOS: Fix FMUv2 LED lighting up
2019-01-11 17:45:43 +11:00
Mark Whitehorn
86b7adf68f
AP_HAL_Chibios: fix fmuv3/hwdef.dat printf/STDOUT description and clean up
2018-08-03 13:08:37 +10:00
Lucas De Marchi
20778f73f1
AP_HAL_ChibiOS: define HAL_HAVE_SAFETY_SWITCH accordingly
2018-08-02 13:15:02 -07:00
Andrew Tridgell
721f5d86b1
HAL_ChibiOS: fixed mRoX21 IMU setup
2018-07-12 12:33:32 +10:00
Randy Mackay
af6c5ebda1
AP_HAL_ChibiOS: reduce default BRD_PWM_COUNT to 4 for fmv3
...
also default relay pins to use aux out 5 and 6
2018-07-10 05:30:05 +10:00
Andrew Tridgell
ca3beb88b7
HAL_ChibiOS: allow for telem1 and telem2 for bootloader on fmuv3
2018-06-29 08:17:38 +10:00
Andrew Tridgell
54dc67e2a9
HAL_ChibiOS: default bootloader product string to XX-BL
2018-06-28 11:35:13 +10:00
Andrew Tridgell
277836ccc7
HAL_ChibiOS: added bootloader definition for fmuv3
...
including UART support on 2 UARTs
2018-06-25 21:22:31 +10:00
Andrew Tridgell
d1caa86e12
HAL_ChibiOS: adjust DMA priorities for fmuv3
2018-06-06 07:15:41 +10:00
Michael du Breuil
3a62bca7d0
AP_HAL_ChibiOS: Make redefined pins an error, fix FMUv3
2018-05-25 09:57:18 +10:00
Andrew Tridgell
3749480dd8
HAL_ChibiOS: create ap_romfs_embedded.h
...
use ROMFS keywork for romfs files
2018-04-17 08:44:44 +10:00
Andrew Tridgell
b4aeffbaed
HAL_ChibiOS: added power status flags reporting
2018-04-09 15:32:04 +10:00
Andrew Tridgell
9b22e0b7cc
HAL_ChibiOS: fixed SPI rates on fmuv3
...
this fixes a SPI bandwidth issue on PH2.1 with 3 IMUs active
2018-04-07 09:10:29 +10:00
Andrew Tridgell
67bae2669b
HAL_ChibiOS: enable serial5 on fmuv3
2018-04-07 09:10:29 +10:00
Andrew Tridgell
93111dc0b1
HAL_ChibiOS: ensure that IO UART gets DMA
2018-04-07 09:10:29 +10:00
Andrew Tridgell
961a97a8c9
HAL_ChibiOS: expand docs on STDOUT_SERIAL
2018-03-02 21:46:23 +11:00
Andrew Tridgell
0cd6c9e5fb
HAL_ChibiOS: added commented block on enable debug for builds
2018-03-02 21:39:38 +11:00
Andrew Tridgell
74ed19f460
HAL_ChibiOS: moved more board setup into hwdef.dat
2018-03-02 12:52:50 +11:00
Andrew Tridgell
ebbd15ea17
HAL_ChibiOS: auto-enable CAN when pins are defined
2018-03-02 12:52:50 +11:00
Andrew Tridgell
11cfa5fd01
HAL_ChibiOS: correct LSM9DS0 bus IDs to match HAL_PX4
2018-02-19 15:49:32 +11:00
Andrew Tridgell
4d0c3b6581
HAL_ChibiOS: added pixartPC15 SPI device for SPI01
2018-02-14 18:27:00 +11:00
Andrew Tridgell
427e00dd41
HAL_ChibiOS: switched to system timer for AP_HAL::micros()
...
this uses the ChibiOS system timer instead of a separate GPT timer for
the core ChibiOS timer. The advantage is it saves us a timer, plus it
changes ChibiOS to use a 1MHz clock on its timer, which gives us
higher resolution for delays.
This has a remarkable effect on timing jitter, reducing it greatly
2018-02-14 18:27:00 +11:00