1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00
Commit graph

17182 commits

Author SHA1 Message Date
Mark Haslinghuis
2947bae4ea Update documentation for building in Ubuntu
Update documentation for building in Ubuntu

last change
2022-01-08 05:02:55 +01:00
J Blackman
4f8579afc0
Merge pull request #11172 from mluessi/ml_fix_h7_spi
Fix SPI sequencing in spiInternalReadWriteBufPolled for H7
2022-01-07 14:01:05 +11:00
J Blackman
cc45f27fc4
Merge pull request #11183 from daleckystepan/cppcheck-bugfixes
Fix bugs found by cppcheck
2022-01-07 13:59:23 +11:00
ctzsnooze
0b34ae08e9
Merge pull request #11189 from klutvott123/move-telemetry-displayport-init
Move telemetry displayport init and cms device registering
2022-01-07 11:17:51 +11:00
J Blackman
386892e2b5
Merge pull request #11198 from SteveCEvans/sce_rc2 2022-01-07 10:59:16 +11:00
Steve Evans
d492257f41 Fix refresh stats scheduling 2022-01-06 01:18:19 +00:00
Steve Evans
f5ee6cfd08 Ignore time taken to update profile with stick commands 2022-01-06 01:18:19 +00:00
Steve Evans
2c5accb8ba Ignore time task to update EEPROM as otherwise stick commands can upset the RX task 2022-01-06 01:18:18 +00:00
Steve Evans
70e22b61c4 Call spiCalculateDivider() to allow validation as per ledvinap comment 2022-01-06 01:18:18 +00:00
Steve Evans
4aab87539f Implement queuing of SPI request segments
Use union in busSegment_t as per ledvinap feedback
2022-01-06 01:18:18 +00:00
Steve Evans
ea53e32db4 Don't allow bidirectional DSHOT600 on an F411 2022-01-06 01:18:18 +00:00
Steve Evans
573984eb2a Support dynamic priority for all tasks priorities 2022-01-06 01:18:18 +00:00
Steve Evans
44e45ddc84 Implement queuing of SPI request segments 2022-01-06 01:18:17 +00:00
Steve Evans
5ef34f79d5 Allow for HALF/NOMINAL/DOUBLE frequency of MAX7456 SPI clock 2022-01-06 01:18:17 +00:00
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
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
J Blackman
cf78447b01
Merge pull request #11181 from haslinghuis/fix_fedora_documentation
Fix Fedora Development Documentation
2022-01-03 18:24:59 +11:00
Steve Evans
fae1530500 Ignore UART pins which are not defined 2022-01-03 02:36:49 +00:00
Štěpán Dalecký
1ceb80d11f
Merge pull request #11208 from TonyBlit/fix_gps_time
fix for gps time
2022-01-01 14:58:21 +01: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
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
ctzsnooze
7bd62f82d3
Merge pull request #11168 from TonyBlit/fix_gps_coord
fix for gps coordinates not shown on OSD
2021-12-28 14:12:13 +11: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
Mark Haslinghuis
4c6075b52b Fix Fedora Development Documentation 2021-12-28 01:18:09 +01: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
Tony Cabello
dedb2a115b fix for gps coordinates not shown on OSD 2021-12-26 16:32:31 +01:00
Jan Post
5933d96bc3
Merge pull request #10613 from hydra/bf-h7adc-configuration
Allow H7 targets to specify an ADC device and channel
2021-12-23 19:20:23 +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