Andy Piper
b6022ca5d4
AP_HAL_ChibiOS: add support for alternate alarm PWM group
...
account for inverted alarms and build on boards without PWM
enable alarm based on pwm
shutdown alarm channel if using a different one
2022-02-23 18:35:43 +11:00
Andy Piper
f840315aa4
AP_HAL_ChibiOS: clock H750 at 480Mhz when using 8Mhz, 16Mhz and 24Mhz crystals
2022-02-23 18:19:56 +11:00
Andrew Tridgell
96518c9eda
HAL_ChibiOS: added CPU defines to hwdef
...
needed for checks like defined(STM32F1)
2022-02-22 12:13:19 +11:00
Andrew Tridgell
6039b8012a
HAL_ChibiOS: define HAL_USE_SDMMC
2022-02-22 12:13:19 +11:00
Andrew Tridgell
638e20a0b9
HAL_ChibiOS: bring in hal.h where it is needed
2022-02-22 12:13:19 +11:00
Andrew Tridgell
25cc8203d8
HAL_ChibiOS: added CHIBIOS_BOARD_NAME define
2022-02-22 12:13:19 +11:00
Andrew Tridgell
fd8d28e23c
HAL_ChibiOS: reduced time in critical sections for CAN processing
2022-02-19 18:24:56 +11:00
Andrew Tridgell
7e18d85f7e
hwdef: added compat board ID for FreeFly RTK GPS
2022-02-17 14:37:41 +11:00
Andrew Tridgell
f2308e96a9
HAL_ChibiOS: added stm32_was_software_reset()
2022-02-17 14:37:41 +11:00
Andrew Tridgell
a641eb3a30
HAL_ChibiOS: support ALT_BOARD_ID
...
allow for compat with px4 board ID for the same board
2022-02-17 14:37:41 +11:00
Andy Piper
83ac78e969
AP_HAL_ChibiOS: add support for @SYS/timers.txt
...
move out prescaler calculation and use closest prescaler everywhere
include timer id in PWM groups
2022-02-16 15:28:04 +11:00
Nathan Costa
9f7aa715b1
AP_HAL_ChibiOS: add support for CAN/I2C switch
2022-02-16 13:25:58 +11:00
Andy Piper
7b15245efe
AP_HAL_ChibiOS: update SPRacingH7 Extreme hwdef and add README
...
add SPRacingH7 board layout
2022-02-15 11:32:52 +11:00
Andrew Tridgell
33ebc83a68
AP_HAL_ChibiOS: disable CAN filtering except on AP_Periph
...
this saves flash space and makes CAN forwarding for any bus without
reconfigure/reboot easy. CAN filtering is not useful in the main
flight controller firmware as we want to see nearly all packets
2022-02-12 16:36:05 +11:00
Andrew Tridgell
124c9d5d9b
HAL_ChibiOS: support mavcan message forwarding
2022-02-12 16:36:05 +11:00
Andy Piper
89ba955419
AP_HAL_ChibiOS: only change SD card on external flash boards
2022-02-09 12:47:55 +00:00
Andy Piper
48c21299f8
AP_HAL_ChibiOS: hwdef for SPRacingH7
...
hwdef for DevEBoxH7v2
pin definitions for STM32H750
add QSPI to DevEBox bootloader
add external flash to DevEBox
rename EXTERNAL_PROG_FLASH_MB to EXT_FLASH_SIZE_MB
Add support for EXT_FLASH_RESERVE_START_KB and EXT_FLASH_RESERVE_END_KB
Disable HAL_ENABLE_SAVE_PERSISTENT_PARAMS when there is no bootloader flash available
relax storage health status with SD card backend
don't check SD card health unless USE_POSIX
binary sections rearranged on external ram
manage RAMFUNC through ldscript and optimize function placement in external flash
inline timer functions
optimize placement of ChibiOS and functions in ITCM and AXI RAM
fix chibios features on bootloader build with external flash
change H750 memory layout
increase line storage for SD card based parameters
comment external flash linker script
move vtables into DTCM
update ram map for H757
enable crashdump support with external flash
correct bootloader pins and generator on SPRacingH7/DevEBoxH7v2
setup external flash reserve regions
allow different RAM_MAP for external flash on H750 and H757
2022-02-09 12:47:55 +00:00
MallikarjunSE
a4b5bf1f4f
hwdef: Update hwdef to have only mag and airspeed
2022-02-09 18:27:56 +11:00
Andrew Tridgell
ef7e611aff
HAL_ChibiOS: added cubemx file for F745-8MHz
2022-02-09 09:35:26 +11:00
Walter Dunckel
f2347e7845
AP_HAL_ChibiOS: add missing EOL in output
...
without it a double define line was giving compiler an error
2022-02-09 09:14:25 +11:00
Peter Barker
6e684b3496
hwdef: disable blheli on skyviper
2022-02-08 20:39:44 +11:00
Peter Barker
09c040891e
hwdef: cap number of Compass, Baro and INS instances
...
saves flash as we don't have to have the parameter structures
2022-02-08 20:39:44 +11:00
Peter Barker
7f584ad2c8
hwdef: SkyViper gets COMPASS_MAX_SENSORS 1
2022-02-08 20:39:44 +11:00
Andy Piper
0e18bd450d
AP_HAL_ChibiOS: fix bi-directional dshot on omnibusf4pro
2022-02-08 12:12:28 +11:00
Peter Barker
b88bfa962b
AP_HAL_ChibiOS: add and use AP_MOTORS_FRAME_DEFAULT_ENABLED
2022-02-08 11:06:24 +11:00
Joshua Henderson
3df82b26de
hwdef: MatekF045-CAN remove unused define, set BATT_Default 0
2022-02-08 10:41:02 +11:00
Joshua Henderson
ecacd513c2
hwdef: f405-MatekGPS add debug pin info, set default arspd, batt 0
...
and remove ADSB from build
2022-02-08 10:41:02 +11:00
Joshua Henderson
8505017d26
hwdef: Add f405-MatekAirspeed
2022-02-08 10:41:02 +11:00
Andy Piper
ab25fc659a
AP_HAL_ChibiOS: correct prescaler algorithm
...
remove redundant PWM reset
2022-02-07 12:56:30 +11:00
murata
a6ea55735f
AP_HAL_ChibiOS: Remove meaningless semicolons
2022-02-07 08:27:34 +09:00
Sam Chamberlin
d73a45aa64
hwdef: add ARK_GPS
2022-02-03 18:36:02 +11:00
Joshua Henderson
204c26c53b
hwdef: f103-RangeFinder, use AP_PERIPH_RANGEFINDER_PORT_DEFAULT
2022-02-02 18:45:59 +11:00
Joshua Henderson
ed208687b4
hwdef: Pixracer-periph, use AP_PERIPH_RANGEFINDER_PORT_DEFAULT
2022-02-02 18:45:59 +11:00
Andrew Tridgell
c2c94631e8
HAL_ChibiOS: added STM32CubeMX files for new F412 configs
2022-02-02 07:42:23 +11:00
Andrew Tridgell
e07057d24f
HAL_ChibiOS: support SDIO 48MHz clock on F412
2022-02-02 07:42:23 +11:00
TulleU
7907fd5729
AP_HAL_ChibiOS: revo-mini-i2c probe for external compasses
...
allow for probing of external compasses on i2c
2022-02-01 17:36:14 +11:00
Hwurzburg
0ea7044796
AP_HAL_ChibiOS: update option names in BATTMonitor in prep for expansion
2022-02-01 12:35:03 +11:00
Peter Barker
0eacc0348e
AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define
...
this doesn't actually allow you to specify a default, despite the name
and a couple of hwdefs trying to use it that way.
This would have stopped being useful when we did the
compass-prority-table stuff - or before.
2022-02-01 12:10:38 +11:00
Peter Barker
a4d2194f80
hwdef: SkyViper-v2450: enable only UBLOX and MAV GPS backends
2022-02-01 11:22:02 +11:00
mathieulohier
bcc60d0945
hwdef: modalai_fc_v1 update documentation
2022-02-01 11:02:23 +11:00
Andrew Tridgell
563528dfc0
HAL_ChibiOS: update CubeMX files
2022-01-29 18:57:33 +11:00
Andrew Tridgell
00e32b52bf
hwdef: removed unnecessary PLL overrides
...
now we've properly filled in the F4 clocks we can use normal PLL
settings
2022-01-29 18:57:33 +11:00
Andrew Tridgell
040ff007ea
HAL_ChibiOS: fixed some F4 clocks, and support no crystal on F4
...
this fixes up some of the F4 varients that were running at the wrong
clock, and also gives support for running F4s with no crystal
2022-01-29 18:57:33 +11:00
Andrew Tridgell
a8b98bfcc4
HAL_ChibiOS: required EXPECTED_CLOCK in all MCU files
...
this ensures we validate the clock setup at compile time
2022-01-29 18:57:33 +11:00
Andrew Tridgell
1224ff48b3
hwdef: fixed VCC monitoring on AIRLink
2022-01-29 15:09:46 +11:00
Peter Barker
da79a5ea78
hwdef: skyviper-v2450: exclude many build features
2022-01-27 20:58:24 +11:00
Kirill Shilov
477fb4c408
hwdef: AIRLink added default parameters files
2022-01-27 17:42:11 +11:00
Andrew Tridgell
d71ec5bb4d
HAL_ChibiOS: don't init RCOut twice
...
this triggered a watchdog if the dshot timer was already active, which caused
the neoled driver to prevent boot of the Matek F405 GPS
2022-01-27 08:26:47 +11:00
Andrew Tridgell
585ee5b2e4
hwdef: fixed rainbow effect on startup in CUAV_GPS
2022-01-27 08:26:47 +11:00
Andrew Tridgell
e35514b551
HAL_ChibiOS: fixed neopixel control
...
fixes frequency setup for neopixel, separating out DShot setup. Also
allows for neopixel without other DMA controlled output types for LEDs
in AP_Periph
2022-01-27 08:26:47 +11:00
Peter Barker
51a9efe817
AP_HAL_ChibiOS: rename AP_AHRS::get_position to get_location
2022-01-25 10:47:22 +11:00
Hwurzburg
c5a444e4a3
hwdef: correct Pixhawk5 3.3V analog in scale factor
2022-01-25 09:37:34 +11:00
ot0tot
13050b325b
Tools: add JHEMCU GSF405A bootloader and ID
2022-01-19 18:31:05 +11:00
ot0tot
1a08a1e1a1
hwdef: add support for JHEMCU GSF405A
2022-01-19 18:31:05 +11:00
Peter Barker
185ccaee92
AP_HAL_ChibiOS: disable UART stats based on GCS being enabled
...
We may need to revisit this if we are able to transfer these files over
some other mechanism into the future
2022-01-18 11:09:03 +11:00
Hwurzburg
176de8aa86
AP_HAL_ChibOS: update hwdef,defaults.readme for KakuteH7
2022-01-18 11:05:38 +11:00
Andrew Tridgell
d22e3a1f52
hwdef: fixed flash double reserve
...
fixes #19765 , an alternative to #19768
the advantage of this approach is it is less error prone, as the
actual position and size of the storage sectors is calculated
2022-01-13 06:44:46 +11:00
Peter Barker
4c72d0f562
AP_HAL_ChibiOS: disable UART statistics on Hitec-Airspeed
2022-01-12 18:30:49 +11:00
Peter Barker
875f9a9497
AP_HAL_ChibiOS: add HAL_UART_STATS_ENABLED to disable stats gathering
2022-01-12 18:30:49 +11:00
Andy Piper
368a0c74a1
AP_HAL_ChibiOS: fix UART operation on original OmnibusNanoV6
2022-01-12 18:17:08 +11:00
Peter Barker
2af5c51ac7
AP_HAL_ChibiOS: save flash on the BeastF7v2
...
Note that many of these entries are already excluded by BeastF7 which
this hwdef inherits from
2022-01-11 13:25:13 +11:00
Andrew Tridgell
1ecb129afa
hwdef: fixed 3 incorrect storage sizes
...
can't do 16384 in 16k sector flash storage
2022-01-11 11:33:30 +11:00
Andrew Tridgell
d4eb2919ef
hwdef: fixed HAL_STORAGE_SIZE for MatekF405-TE
2022-01-11 11:33:30 +11:00
Andrew Tridgell
59b2a30c11
HAL_ChibiOS: added check for valid HAL_STORAGE_SIZE
2022-01-11 11:33:30 +11:00
Andrew Tridgell
de273fb76d
hwdef: fixed f405-MatekGPS storage location and CAN
...
this allows for CAN firmware update using f405-MatekGPS bootloader by
fixing a typo, then moves storage to allow the bootloader with can to
fit on the board
this will allow CAN update of peripheral firmware for Matek GPS and
airspeed sensors
2022-01-11 11:33:30 +11:00
Andrew Tridgell
1236474cfb
HAL_ChibiOS: give an error if STORAGE_FLASH_PAGE overflash flash
...
when storage is between the bootloader and main program flash then the
flash size available to the bootloader needs to stop at the sector for
the storage flash.
Similarly, if storage is at the end of flash, then total flash size
needs to be limit
this ensures we don't try to build a firmware that encroaches on
program space
2022-01-11 11:33:30 +11:00
Andy Piper
a533fadf1b
AP_HAL_ChibiOS: support KakuteH7Mini
2022-01-11 10:58:55 +11:00
Peter Barker
03e9307bdd
AP_HAL_ChibiOS: add MANUFACTURER and BRAND_NAME to PixRacer Pro
2022-01-07 22:46:52 +11:00
Peter Barker
81d205465c
hwdef: remove OpticalFlow from builds in several low-flash boards
2022-01-06 13:35:51 +11:00
李孟晓
94b14ae60b
hwdef: CUAV-Nora: Add servo voltage detection pin
2022-01-06 12:39:45 +11:00
phil tokumaru
bfded82da5
AP_HAL_ChibiOS: STM32F777xx.py: correct pincount for J and K
2022-01-06 09:15:14 +11:00
Andy Piper
c357c1e521
AP_HAL_ChibiOS: hwdef for BeastF7 v2
...
Fix undef of alt pins
2022-01-05 18:50:41 +11:00
MallikarjunSE
adff48c3ea
hwdef: remove Notify LEDs from Sierra-F405
...
NTF_LED_BRIGHT 2, NTF_LED_LEN 8 used to cause board to get stuck in bootloader on reboot.
2022-01-05 09:22:45 +11:00
Peter Barker
f44335371f
hwdef: set AP_OPTICALFLOW_ENABLED 0 for SkyViper-v2450
2022-01-04 11:01:40 +11:00
Andy Piper
f9e14ffa30
AP_HAL_ChibiOS: add support BeastF7v2
2021-12-31 09:25:29 +11:00
MallikarjunSE
3ff9b76b08
AP_HAL_ChibiOS: Sierra-F405 support
2021-12-29 10:13:54 +11:00
MallikarjunSE
eb8cfea507
AP_HAL_ChibiOS: Sierra-F412 support
2021-12-29 10:12:40 +11:00
Andrew Tridgell
61ecf0c443
HAL_ChibiOS: cleanup SDMMC enable defines
...
ensure both are set
2021-12-28 16:04:57 +11:00
Andrew Tridgell
146f394d64
HAL_ChibiOS: include fatfs format code
2021-12-28 16:04:57 +11:00
Andrew Tridgell
281f041abb
hwdef: fixed debug pins on two boards bootloaders
2021-12-28 10:31:25 +11:00
Andrew Tridgell
6a2303f72d
hwdef: enable telem3 (SERIAL5) TX on Pix32v5
...
this is now safe as we disable the TX/RX pins on ports with
SERIALn_PROTOCOL = -1
as this board defaults to protocol -1 for SERIAL5, we can enable this
if the user wishes to use telem3
2021-12-28 10:13:58 +11:00
Nikolay March
cceae1acf3
hwdef: Redefine DMA priority PH4-mini
...
BUG.
Without redefining priority there is no DMA on any RX of serial ports.
Now it is.
Without DMA, you cannot normally use the serial port for the CRSF protocol.
2021-12-27 11:25:51 +11:00
mateksys
be601acd89
AP_HAL_ChibiOS: add MatekF405-TE hwdef
2021-12-22 18:47:37 +11:00
Andy Piper
2fab99d647
AP_HAL_ChibiOS: remove redundant harmonics from DSP
2021-12-22 18:13:38 +11:00
Brad Stinson
cd39110b68
hwdef: add support for PixC4-Jetson
...
add support for building IOMCU with F103 and 8MHz clock
2021-12-21 13:05:34 +11:00
Jaaaky
f1f31c1aef
AP_HAL_ChibiOS: Fix multi #include's
2021-12-21 10:38:46 +11:00
bugobliterator
62945e1d85
AP_HAL_ChibiOS: use common directory reference wrt hwdef scripts
2021-12-20 12:47:25 +11:00
Peter Barker
a281c3ef91
AP_HAL_ChibiOS: remove stray 'No Crash Detected' diagnostic
2021-12-19 10:48:44 +11:00
Peter Barker
bdeec0868e
AP_HAL_ChibiOS: turn wind-compensation off in hwdef defaults
2021-12-19 10:45:16 +11:00
bugobliterator
f0073e472b
HAL_ChibiOS: set SWD pins pulled up and low by default
2021-12-17 22:51:18 -08:00
Shiv Tyagi
b2073e4e1c
AP_HAL_ChibiOS: remove stray define HAL_PERIPH_ENABLE_BATTERY_MPPT_PACKETDIGITAL
...
We have removed the class AP_BattMonitor_MPPT_PacketDigital, hence this should be removed too
2021-12-17 20:24:25 +09:00
Stephen Dade
fb5ac63a63
AP_HAL_ChibiOS: Fix get_options() to use uint16_t
2021-12-15 14:14:07 +11:00
Peter Barker
7cbe48d1f6
hwdef: fix CubeOrange-periph-heavy build
2021-12-14 14:11:35 +11:00
Andrew Tridgell
ee7464140a
HAL_ChibiOS: avoid re-writing hwdef.h if unchanged
...
this makes dependency handling faster
2021-12-14 09:37:17 +11:00
Andrew Tridgell
0e5beb423e
HAL_ChibiOS: sort shared dma mask
...
this prevents an unnecessary change in hwdef.h on reconfigure
2021-12-14 09:37:17 +11:00
Andrew Tridgell
c9b35ccfc8
hwdef: enable ESC telem on CarbonixL496
2021-12-10 08:11:24 -08:00
Andrew Tridgell
67649fe17d
hwdef: added CarbonixL496 AP_Periph node
2021-12-07 10:23:54 +11:00
Andrew Tridgell
c5fc2fa709
HAL_ChibiOS: enable DShot on L4 MCUs for AP_Periph
2021-12-07 10:23:54 +11:00
Andrew Tridgell
fbadc24fca
HAL_ChibiOS: support 12MHz crystal on L4xx MCUs
2021-12-07 10:23:54 +11:00
Andrew Tridgell
2c2369bf03
AP_HAL_ChibiOS: revert compass parameter changes
2021-12-04 16:51:53 +11:00