1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00
Commit graph

15632 commits

Author SHA1 Message Date
Bruce Luckcuck
aaa2f9682d Use full erase when possible for FLASHFS erase
If there is only a single partition, its type is FLASHFS, and it uses the entire geometry, then perform a full rather than a sector-based erase.

The full erase is significantly faster than erasing by individual sectors.
2019-05-25 12:23:59 -04:00
mikeller
c076c6b3c2 Converted Unified Target configurations to use alternate functions. 2019-05-25 23:52:31 +12:00
mikeller
b64b136780 Changed 'timer' output to list timers based on alternate function. 2019-05-25 23:52:31 +12:00
mikeller
4a80313bed Updated message for no-response bot. 2019-05-25 23:49:43 +12:00
Michael Keller
063f647027
TARGET Update: add IIC Baro, SoftSerial, 1G Flash support for EXF722DUAL board. (#8333)
TARGET Update: add IIC Baro, SoftSerial, 1G Flash support for EXF722DUAL board.
2019-05-25 23:07:49 +12:00
Michael Keller
5b72f88e55
Fix copy of profiles with last index (#8331)
Fix copy of profiles with last index
2019-05-25 23:06:34 +12:00
Michael Keller
99c1ac066c
Merge pull request #8328 from solarhacksaw/fix_airbotf7_adc_pins
fix adc pins
2019-05-25 23:05:41 +12:00
Michael Keller
bed023b783
Merge pull request #8323 from etracer65/fix_gps_rescue_menu_define
Fix compile errors if USE_GPS_RESCUE is not defined
2019-05-25 23:05:28 +12:00
Michael Keller
28afbdb295
Fix and remove USE_RTC6705_CLK_HACK (#8322)
Fix and remove USE_RTC6705_CLK_HACK
2019-05-25 23:03:32 +12:00
Michael Keller
bbc01e7b78
SPRacingF3NEO - Add BARO support. (#8321)
SPRacingF3NEO - Add BARO support.
2019-05-25 23:02:26 +12:00
Michael Keller
cf32bea79d
Fix VTX chan to 0 via SetFreqByMHz (#8338)
Fix VTX chan to 0 via SetFreqByMHz
2019-05-25 22:56:07 +12:00
Michael Keller
5ed426bf7b
Add switchable gyro to cms options (#8100)
Add switchable gyro to cms options
2019-05-25 22:44:22 +12:00
Michael Keller
339621ced3
Move the Altitude alignment left in the OSD (#8339)
Move the Altitude alignment left in the OSD
2019-05-25 22:30:19 +12:00
Michael Keller
075b72095d
Require reboot for CMS failsafe submenu changes to be consistent with the Configurator (#8335)
Require reboot for CMS failsafe submenu changes to be consistent with the Configurator
2019-05-25 12:37:27 +12:00
Michael Keller
4e78ad02c9
Merge pull request #8329 from mikeller/fix_build_without_rc_smoothing
Fixed build for targets without RC smoothing.
2019-05-25 12:34:49 +12:00
Michael Keller
5a851d7121
Add unit test for sumd serial rx implementation (#8324)
Add unit test for sumd serial rx implementation
2019-05-25 12:34:30 +12:00
Michael Keller
09d6d12504
[VTX] SmartAudio conversion to VTX table and V2.1 implementation (#8276)
[VTX] SmartAudio conversion to VTX table and V2.1 implementation
2019-05-25 12:30:29 +12:00
Michael Keller
ef79a36fd7
Add OSD profile names feature (#8272)
Add OSD profile names feature
2019-05-25 12:29:41 +12:00
Miguel Angel Mulero Martinez
f27a93b767 Move the Altitude alignment left in the OSD 2019-05-24 09:51:51 +02:00
E Thomas
c9589fbe4d Fixed VTX chan to 0 via SetFreqByMHz 2019-05-23 22:26:04 -04:00
Bruce Luckcuck
862ee63e14 Require reboot for CMS failsafe submenu changes to be consistent with the Configurator
Includes failsafe and GPS Rescue settings.
2019-05-23 08:06:30 -04:00
Michael Keller
e54ef4815a
Add gps rescue altitude mode to CMS (#8318)
Add gps rescue altitude mode to CMS
2019-05-23 23:28:09 +12:00
Michael Keller
255bedfbab
New target NUCLEOH743 (#8319)
New target NUCLEOH743
2019-05-23 23:08:55 +12:00
LinJieqiang
278dce82a4 TARGET: add IIC Baro, SoftSerial, 1G Flash support for EXF722DUAL board.
x
2019-05-23 17:11:23 +08:00
Asizon
22e9c32b84 Added REBOOT_REQUIRED flag 2019-05-23 00:49:42 +02:00
Asizon
8e987eeaaf Add switchable gyro to cms options
Applied only to MULTI_GYRO

Added forgotten definition
2019-05-23 00:47:06 +02:00
Nicola De Pasquale
6b79eecc43 add gps rescue altitude mode to CMS
ground speed is expressed in cm/s

requested changes

added new line

add newline
2019-05-22 14:44:29 +02:00
pkruger
b8a9e46a8d
Merge branch 'master' into 8107-osd-profile-names 2019-05-22 21:58:36 +10:00
Miguel Angel Mulero Martinez
7801b848d4 Fix copy of profiles with last index 2019-05-22 13:56:37 +02:00
Michael Keller
e7e65ae00e
Add CMS menu entry level control of forced reboot on changes (#8316)
Add CMS menu entry level control of forced reboot on changes
2019-05-22 22:57:44 +12:00
Michael Keller
dac378b678
USE_RX_RSSI_DBM Split from pr 8042 (#8309)
USE_RX_RSSI_DBM Split from pr 8042
2019-05-22 22:57:20 +12:00
functionpointer
e976ea13a7 SmartAudio conversion to VTX table and V2.1 implementation 2019-05-22 12:35:43 +02:00
mikeller
2d184359a0 Fixed build for targets without RC smoothing. 2019-05-22 21:02:24 +12:00
Solar Hacksaw
f35559dbc6 fix adc pins 2019-05-21 19:42:22 -07:00
laz2wiringpi
15c25520e3 add missing code
cleanup space(s)
comment 
move define define in post  add to pre
2019-05-21 16:40:21 -04:00
Johannes Kasberger
5684144cd4 add unittest for sumd serial rx implementation 2019-05-21 21:13:03 +02:00
Bruce Luckcuck
2005e364d8 Fix compile errors if USE_GPS_RESCUE is not defined 2019-05-21 14:00:47 -04:00
Dominic Clifton
2466f43abd Remove USE_RTC6705_CLK_HACK.
For hardware SPI the GPIO pin is in Alternate Function mode, so setting
the bit in BSRR (via IOHi) won't have any affect on the IO level.
2019-05-21 18:50:03 +02:00
Dominic Clifton
165a760f1a Fix USE_RTC6705_CLK_HACK resource checking.
vtxCLKPin is only used by RTC6705 SoftSPI driver.

On targets using hardware RTC6705 that defined USE_RTC6705_CLK_HACK this
was enabled this prevented the VTX from initialising.

SPRacingF3NEO/SPRacingF4NEO.
2019-05-21 18:50:03 +02:00
jflyper
29dc861c8e NUCLEOH743 target 2019-05-22 01:29:38 +09:00
Dominic Clifton
f6214a4c35 SPRacingF3NEO - Fix compilation, some baro code is included but the defines and src definitions were missing. 2019-05-21 15:11:56 +02:00
Michael Keller
1541466dac
[H7] H743 system and build files (#8308)
[H7] H743 system and build files
2019-05-22 00:55:36 +12:00
pkruger
9ae53d94d0
Merge branch 'master' into 8107-osd-profile-names 2019-05-21 21:22:50 +10:00
laz2wiringpi
c1510c9f27 USE_RX_RSSI_DBM Split from pr 8042
rssi dbm osd negitive values
rename max to min
2019-05-20 22:19:04 -04:00
Michael Keller
c330a905ea
Link Quality multiple sources without Aux DUP of 8232 (#8247)
Link Quality multiple sources without Aux DUP of  8232
2019-05-21 12:33:32 +12:00
laz2wiringpi
e9a406f447 Link Quality without Aux
fix indent , move unused
remove premature optimisation
Use prior code for osd element calc
unit test add crsf for scaleCrsfLq
unittest typo
rx 0-100
elements simplify osdElementLinkQuality refactor
share  one 16 bit var
2019-05-20 18:10:37 -04:00
jflyper
dacb709e38 [H7] System and build files
Basic system files

- Initial system files

- Additional RCC clock enables for testing

- Coding style tidy (target/system_stm32h7xx.c) and enable MCO for testing

- Clock generator changes for SPI support

- Setup MPU for "D2 SRAM as write-through by MPU, call it DMA_RAM"

- Drop USB clock enabling from driver/system_stm32h7xx.c

- stm32h7_hal_conf.h for persistent object storage

Basic build files

STM32H7.mk changes

- STM32H7.mk for USE_UART and USE_SERIAL_RX

- Modify STM32H7.mk for inclusion of SPI driver

- STM32H7.mk change for D2 SRAM as write-through by MPU, call it DMA_RAM

- STM32H7.mk for DMA facility

- STM32H7.mk for [TIMER] For "Initial cut without Dshot"

- STM32H7.mk change for [LED_STRIP] Add LED_STRIP

- STM32H7.mk for [ADC] Initial cut without internal sensors

- STM32H7.mk for Enable I2C (HAL)

- STM32H7.mk for "Enable HAL-based DShot (no burst yet)"

- STM32H7.mk change for transponder

- STM32H750 - Add platform support.

- STM32H750 - Add H750 MCU ID.

- STM32H743 - Add MCU ID.

STM32H7.mk change for "Burst Dshot First working version"

Fix boot loader request

STM32H750 - Add PERSISTENT memory support.

STM32H743 - Add PERSISTENT memory support.

Use PERSISTENT memory for bootloader request.

Using DTCM RAM did not work on H750.

Change flash latency from 4WS to 2WS

STM32H750 - Fix reset of RCC_CR to reset value.

Note: The comment above the code didn't match code.

STM32H750 - Remove duplicate startup code, see SystemClock_Config.

STM32H7.mk changes for Port RTC backup register based persistent storage for H7

Make use of persistent object facility

Force reboot after possible boot loader activity

Enable CRS

stm32h7xx_hal_conf.h for H7 - QuadSPI support

stm32h7xx_hal_conf.h for STM32H7 - SDCard/SDIO using HAL Driver

stm32h7xx_hal_conf.h : Fix systick to be 0x00 instead of ST's default 0x0F.
This fixes the ability to use HAL_Delay() from an ISR, as required by
the ST's USB Library.
Specifically, systick handler must be a higher priority than the USB
FS/HS Interrupt handler priorities.

stm32h7xx_hal_conf.h for Add PID-Audio support

source.mk for H7 - QuadSPI support

drivers/system_stm32h7xx.c for H7 - QuadSPI support

STM32H7.mk for H7 - QuadSPI support

STM32H7.mk change for CDC-HID support

common_pre.h updates

- Scheduler parameters to same as F4 & F7

- Enable some important default features

- STM32H7 - Enable ITCM RAM.
Requires voltage scaling fix from commit
6e684c609310024141c43de484a5e78103140e3c

STM32H750 - Disable caches before reboot.

Prior to this when EEPROM_IN_RAM was used the persistent data section
would have corruption immediately after a reboot, prior to even the
Reset_Handler code having been executed.

drivers/system_stm32h7xx.c Touch-up after 2019-02-02 rebase

STM32H7 - Write protect ITCM ram.

Remove local defs for RESET_xxx symbols

STM32H750 - EXST firmware reboots to FLASH bootloader, rather than ROM bootloader.

STM32H750 - Disable some MCO/clock testing code as the pins interfere with new targets.

STM32H750 - Don't disable data caches after bootloader.

Observed that disabling dcache after cold boot with BOOT pin high causes
segfault.

drivers/system_stm32h7xx.c for STM32H7 - SDCard/SDIO using HAL Driver

drivers/system_stm32h7xx.c change for Move SDMMC clock init into SDIO driver

drivers/system_stm32h7xx.c: Cleanup some Clock/MCO/GPIO initialisation code.

drivers/system_stm32h7xx.c for Reset if systick is stuck.

STM32H7 - Fix missing CPU voltage scaling.

It appears this was the cause of other seemingly random issues:

* Crash soon after enabling USB.
* Flash write failures.
* Random un-explainable crashes.

Change RCC_HSE_BYPASS to RCC_HSE_ON

Even Nucleo-H743 seems to work without setting HSE_BYPASS.

STM32H7xx - Move memory section initialisation earlier into the init sequence.

Allows startup-code/libs/etc to be moved into different memory regions.

Don't touch vector table in EXST targets

STM32H750_EXST - fix boot loop

target/system_stm32h7xx.c for STM32H7 - SDCard/SDIO using HAL Driver

target/system_stm32h7xx.c change for Fix SD card clock speed selection

STM32H750_EXST - Reset MPU regions on boot.

* Failure to reset regions will result in mem-fault if bootloader has
configured a similar region.

STM32H750 - Fix missing include of platform.h in system_stm32h7xx.c

This caused the SDMMC peripheral clock to be un-configured (at reset
state) when USE_SDCARD_SDIO was defined.

Change MPU region number for DMA_RAM from 0 to 1

Avoid conflict with ITCM-RAM write protection.

STM32H7xx - HSERDY slow/stuck workarounds.

STM32H7xx - Fix region MPU number for SDIO.

* It was overwriting the previous region causing LED strip and
transponder issues.

Target/system_stmh7xx.c for Reset if systick is stuck.

startup/system_stm32h7xx.c change for non-caching DMA_RAM

H750 - Use SIZE optimization by default due to limited flash space.

STM32H7.mk for STM32H7 - SDCard/SDIO using HAL Driver

STM32H7.mk updates

- Decrease HSE_STARTUP_TIMEOUT to 1 second
* default is 5 seconds, which is too long when HSE gets stuck.

- Add PID-Audio support

Temporary override LINKER_DIR
2019-05-21 02:26:31 +09:00
Dominic Clifton
7b79e496e0 Delete unused code as requested. 2019-05-20 19:19:32 +02:00
jflyper
b749d56d9e Ammend BMP085 driver for configurability of EOC and XCLR pin 2019-05-20 19:13:50 +02:00
Dominic Clifton
eea9242d7b Baro fixes, cleanups and improvements.
* Add BARO debug mode.
* BMP085 - Fix EOC and XCLR initialisation.
* BMP085 - update previously dead code.
* BMP280 - Move t_fine out of the calibration data, since their usage is mixed.
* BMP280 - Move static_assert closer to definition.
2019-05-20 19:13:11 +02:00