1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +03:00
Commit graph

14003 commits

Author SHA1 Message Date
Steve Evans
96ac7953ae Adjust GYRO_LOCK_COUNT 2022-01-06 01:18:17 +00:00
Steve Evans
f232d38592 Enable USE_LATE_TASK_STATISTICS on F411 2022-01-06 01:18:17 +00:00
Steve Evans
9bdf9c11e9 Split initialised/non-initialised task data 2022-01-06 01:18:17 +00:00
Steve Evans
2d770f747e Make gyroDataIndex const 2022-01-06 01:18:16 +00:00
Steve Evans
e2f73cd7e5 Add DMA support for ICM-42688-P 2022-01-06 01:18:16 +00:00
Steve Evans
b701b89a7c Fix DSHOT on G4 2022-01-06 01:18:16 +00:00
haslinghuis
4bc7a2c7fa
Merge pull request #11220 from SteveCEvans/uart_pin_swap
Ignore UART pins which are not defined
2022-01-06 02:10:35 +01:00
haslinghuis
c2982eed40
Merge pull request #11223 from hydra/fix-elrs-unit-test
ExpressLRS - Fix compilation of unit test.
2022-01-04 21:25:05 +01:00
AlessandroAU
401d052748 tested and working
increase crsf frame timeout and msp tlm buffer sizes

addresses comments
2022-01-05 02:46:42 +10:00
Dominic Clifton
bec895071f ExpressLRS - Fix compilation of unit test.
Error was:
compiling ../main/rx/expresslrs.c
../main/rx/expresslrs.c:101:24: error: suggest braces around
initialization of subobject [-Werror,-Wmissing-braces]
eprState_t eprState = {0};
2022-01-03 19:48:19 +01:00
haslinghuis
d593f08eff
Merge pull request #11211 from TonyBlit/fix_gps_motion
wrong variable for heading
2022-01-03 14:15:49 +01:00
Steve Evans
fae1530500 Ignore UART pins which are not defined 2022-01-03 02:36:49 +00:00
Tony Cabello
a511eef8aa wrong variable for heading 2022-01-01 10:00:12 +01:00
Tony Cabello
a253fe414e fix for gps time 2021-12-31 17:45:44 +01:00
Mathias Rasmussen
78df1374f1 Use angle brackets with standard library headers 2021-12-29 22:44:41 +01:00
Hans Christian Olaussen
cfa78b7b4f Move telemetry displayport init and cms device registering 2021-12-28 23:24:41 +01:00
haslinghuis
3d9b7cf490
Merge pull request #11169 from SteveCEvans/f411_osd
Reduce number of OSD bytes transferred in polled mode
2021-12-28 22:07:22 +01:00
Štěpán Dalecký
420fb85759 Fix bugs found by cppcheck 2021-12-28 21:32:27 +01:00
haslinghuis
8402d30c0d
Merge pull request #11179 from mluessi/ml_fix_spi_f4_dshot_bitbang
SPI: fix compilation on F4 when DSHOT_BITBANG is not used
2021-12-28 04:24:13 +01:00
Steve Evans
b29ee58e0a Display stats on disarm 2021-12-28 01:48:45 +00:00
Steve Evans
20e41b5f66 Reduce number of OSD bytes transferred in polled mode 2021-12-28 01:06:32 +00:00
Martin Luessi
d464dd7378 SPI: fix compilation on F4 when DSHOT_BITBANG is not used 2021-12-27 12:02:41 -08:00
Martin Luessi
da849318b3 Fix SPI sequencing in spiInternalReadWriteBufPolled for H7 2021-12-26 11:54:03 -08:00
Štěpán Dalecký
579e8005af Reorder box_t to save few hundreds of bytes 2021-12-26 20:00:00 +01:00
Tony Cabello
dedb2a115b fix for gps coordinates not shown on OSD 2021-12-26 16:32:31 +01:00
Dominic Clifton
ea69db0400 Allow H7 targets to specify an ADC device for each channel and a default
ADC device in case of resource re-mapping conflict.

This allows a single ADC device to be used for all channels, which can
free up DMA channels.

For the H7 this makes much more sense because the TEMP and VREF channels
are ALWAYS on ADC3, so using ADC3 for other pins is optimal.

The previous behaviour was to use the first instance for that supported
the pin.  This behavour is only used when the configured default DMA
device does not support the pin.

e.g.

```

possible.

```

The above config would no-longer use ADC1 for anything, as ADC2 and ADC3
can satisfy all the ADC requirements.
2021-12-23 18:42:30 +01:00
Štěpán Dalecký
474fddd08a
Merge pull request #10695 from hydra/bf-stm32h730-cpu-support
Initial STM32H730 CPU Support
2021-12-23 18:35:19 +01:00
Dominic Clifton
a325e2386d STM32H730 - Initial ST32H730 support.
The H730 is a value-line CPU, similar to the H723/H725, but with only
128kb RAM.

The FC firmware code is designed to RUN from external flash in MEMORY
MAPPED mode, via OctoSPI.  Use of ITCM/DTCM advised for core loops, like
PID control.

A bootloader is required to enable memory-mapped mode and jump to the
firmware, similar to how EXST bootloader system works.

Config storage is not part of this commit and is a problem when using a
single flash chip in memory mapped mode because the CPU can't run
read/write routines from the flash chip while writing to the flash chip.
Until flash read/write routines are updated the solution requires either
a second flash chip on an SPI interface, or the use of an SD card for
config storage.

Additional commits will support read/write of config to the code/data
storage flash chip to enable cheap and space efficient single-flash-chip
FC solutions.

Squashed commits:
STM32H730 - Workaround issue with 2GB `.elf` files being created.
STM32H730 - Reduce firmware size to 1MB.
STM32H730 - Add USB HS configuration.
STM32H730 - Add ADC internal tag mappings.
STM32H730 - Update all ADC mappings based on the referenced ST
documentation.  Add the VBAT channels.
STM32H730 - Fix DMA continuous requests.
STM32H730 - Fix ADC_INTERNAL confusion.
STM32H730/G4 - Disambiguate use of ADC_CHANNEL_INTERNAL_FIRST_ID.
STM32H730 - Fix documentation reference.
STM32H730 - Add DMA request mapping for ADC3.
STM32H730 - Explicitly set the ADC clock.
STM32H730 - Configure PLL2 speeds correctly.

* Tested with Ultrafast 64GB SanDisk SDXC card.

STM32H730 - Use 50Mhz clock for SDXC cards.

* Tested with SanDisk Ultra 64GB.  100Mhz clock gave CRC errors.

STM32H730 - Ensure USB has a lower NVIC priority than the SDMMC card
reads.

If it's higher, 0, then the SDMMC's DMA IRQ handler doesn't get called
when handing USB MSC storage reads.

STM32H730 - Support CPU name in CLI.

STM32H730 - Rebuild when linker scripts changes.
2021-12-23 15:02:23 +01:00
Dominic Clifton
0b7fcb7df4 STM32H7 - Use FAST_CODE on all HOT ISRs to avoid flash access on targets where
FAST_CODE functions are placed in RAM.
2021-12-23 15:02:12 +01:00
Dominic Clifton
37412289dd STM32H7 - Cleanup clock configuration and add frequency calculation
comments.
2021-12-23 12:36:02 +01:00
Dominic Clifton
9a70c8b176 STM32H7 - Add support for compiling H725 and A3x. 2021-12-23 12:36:02 +01:00
Dominic Clifton
121ebe7fe3 STM32H7 - Add support for GPIO Port I to def_generated source. Rebuild
io_def_generated.h
2021-12-23 12:36:02 +01:00
Dominic Clifton
faa1fdc3d6 STM32H7 - Cleanup HAL configuration. No settings changed, just updates
based on latest hal config template file.
2021-12-23 12:36:02 +01:00
Dominic Clifton
8b897bdcd7 STM32H7 - Update HAL configuration and enable OSPI module. 2021-12-23 12:36:02 +01:00
Štěpán Dalecký
bfff89c112
Merge pull request #11141 from ctzsnooze/disable-EXTI-for-Nox-until-bugfix-found 2021-12-23 11:12:44 +01:00
Jan Post
a708578c5e
Merge pull request #11149 from daleckystepan/get_rid_of_double_math_512kb
Get rid of double math on <512kB targets
2021-12-23 09:04:54 +01:00
g3gg0
ca6c495f46 add SK6812 RGBW 4-channel LEDs, which are compatible to WS2812 except for the fourth color channel 2021-12-23 01:12:02 +01:00
J Blackman
5e931169f2
Merge pull request #11134 from daleckystepan/disable_olc_on_low_flash 2021-12-23 10:53:28 +11:00
Štěpán Dalecký
12dc2eb3fb Get rid of double math on <512kB targets 2021-12-23 00:15:57 +01:00
haslinghuis
4f0d4b81b1
Merge pull request #10788 from phobos-/express-lrs
ExpressLRS over SPI - sx1280 and sx1276 support
2021-12-22 23:46:03 +01:00
haslinghuis
509303ee2e
Merge pull request #11011 from SteveCEvans/dshot_defaults
Dshot dshot_bitbang=AUTO behaviour change for non-F4
2021-12-22 23:32:24 +01:00
Štěpán Dalecký
f2f4f817f8 Disable OLC on low flash target to save around 5kB 2021-12-22 23:28:58 +01:00
haslinghuis
9e2002b969
Merge pull request #11096 from mathiasvr/float-math
Fix use of floating point math functions
2021-12-22 23:26:00 +01:00
haslinghuis
d293e45f57
Merge pull request #11143 from KarateBrot/noiseFloor
Enhance SDFT noise floor
2021-12-22 09:15:26 +01:00
ctzsnooze
32bc45ba29 disable GYRO_EXTI when Gyro and OSD share the same bus 2021-12-22 17:28:25 +11:00
ctzsnooze
790a904cfd
Merge pull request #11098 from mathiasvr/static-opt
Optimize rescueAttainPosition()
2021-12-22 15:34:27 +11:00
Steve Evans
877adf4634 Calculate moving sum delta time in 10ths us 2021-12-21 18:49:42 +00:00
phobos-
e00a3abc59 ExpressLrs v2.0.0 support 2021-12-21 17:59:47 +01:00
KarateBrot
705e93431d Enhance SDFT noise floor 2021-12-21 07:51:29 +01:00
Mathias Rasmussen
87c259a26e Fix use of floating point math functions 2021-12-21 04:18:59 +01:00