1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-14 20:10:18 +03:00
Commit graph

172 commits

Author SHA1 Message Date
Michael Keller
00e0248988
Merge pull request #7264 from joelucid/dshot_telemetry
Dshot telemetry
2019-01-08 01:04:22 +13:00
Thorsten Laux
816da6cbf5 Dshot erpm telemetry on the signal line 2019-01-03 14:42:52 +01:00
jflyper
4b77b05730 Use DMA_CODE_CHANNEL instead of channel value 2019-01-01 23:47:10 +09:00
Michael Keller
be797d1027
Merge pull request #6837 from jflyper/bfdev-poc-dma-channel-spec
Introduce per peripheral dma channel spec option
2018-12-30 16:53:00 +13:00
jflyper
fe182bb2fb Introduce dma_reqmap 2018-12-30 09:40:37 +09:00
Michael Keller
78ab31f31f
Merge pull request #7255 from fgiudice98/master
Increased Vbat precision
2018-12-29 20:10:25 +13:00
fgiudice98
9d5fb85474 Increased vbat precision 2018-12-25 12:00:45 +01:00
Bruce Luckcuck
9be40351c5 Fix CLI allowed range display for VAR_UINT32 type 2018-12-24 11:30:49 -05:00
jflyper
cfaabac125
Merge pull request #7232 from mikeller/fix_print_resource
Fixed NULL dereference in 'printResource'.
2018-12-21 14:34:21 +09:00
Michael Keller
dcf5652773
Merge pull request #7242 from mikeller/fix_gyro_cs_pin_count
Fixed gyro CS pin count in CLI.
2018-12-20 01:41:28 +13:00
mikeller
cb1bb48587 Fixed gyro CS pin count in CLI. 2018-12-19 01:34:27 +13:00
Bruce Luckcuck
b8085b170e MSC on-board flash: Persist RTC across reboot and use as file timestamp
Adds support to persist the RTC (if set) across the reboot if entering mass storage mode for on-board flash. The value is then used as the timestamp for the files exposed in the virtual FAT32 filesystem. The files will then have reasonable creation dates when copied to the host computer.

If the RTC is not set (or supported), then the default timestamp of 2018-01-01 will be used (unchanged from previous).

Included some improvements to the RTC functions and exposed the `tz_offsetMinutes` in the `timeConfig` PG. Support already existed for timezone offsets but the parameter wasn't exposed to the user and couldn't be set.

Move timezone offset up a layer as a parameter to systemResetToMsc()
Adds support for specifying a custom timezone offset from both the CLI and MSP calls to enter mass storage mode.

Added an option timezone offset minutes to the CLI `msc` command. If no parameter is specified then the default as specified by `timezone_offset_minutes` will be used. So to reboot into mass storage mode and force the file timestamps to be in UTC, use `msc 0`.

Added reboot message `MSP_REBOOT_MSC_UTC` to support rebooting into mass storage mode and forcing the timestamps to use UTC time (0 offset). The Configurator will need to be modified to use this message for operating systems that expect UTC times for FAT file systems (like Linux).
2018-12-17 19:40:51 -05:00
mikeller
266a7085d9 Fixed casts. 2018-12-18 02:18:08 +13:00
mikeller
60950dd032 Fixed NULL dereference in 'printResource'. 2018-12-18 01:38:01 +13:00
phobos-
6651baa7d8 Implemented SPI SPEKTRUM protocol 2018-12-16 11:15:35 +01:00
jflyper
9ea1428d11 Introduce per device pin pre-init 2018-12-13 11:15:26 +09:00
Michael Keller
3736a2486d
Merge pull request #7116 from jflyper/bfdev-status-command-refactor
[CLI] Refactor status command to print things in more sensible order
2018-12-02 10:41:07 +13:00
jflyper
d4ac21cdc7 Refactor status command to print things in more sensible order 2018-12-01 22:21:58 +09:00
mikeller
c927a65024 Fixed define dependency of gyro device parameter group, gyro EXTI CLI support. 2018-11-27 22:20:04 +13:00
Michael Keller
02c7ac8c93
Merge pull request #7124 from mikeller/rename_use_flash
Renamed USE_FLASH to USE_FLASH_CHIP for clarity.
2018-11-26 21:51:27 +13:00
phobos-
c88a5a3a22 Refactored SPI RX led blink and bind plug functionality to rx_spi_common 2018-11-25 10:37:18 +01:00
mikeller
c8e484df94 Renamed USE_FLASH to USE_FLASH_CHIP for clarity. 2018-11-25 13:47:31 +13:00
jflyper
569f0bae62 Implement configurable system clock generation
PLL-HSE working

PLL-HSI working

Move SystemCoreClockUpdate in SystemInit to end

Switching from HSI-PLL to HSE-PLL (and back) is working

It works during various levels of overclocking.

Renamed CLI variable hse_mhz to system_hse_mhz

Restored the original position of the spectrum bind code

The internal logic of the spectrum bind code will prevent binding
process to fire if executed after soft reset.

Remove stale call to delay

Add a comment about call to spektrumBind placement

Declared SystemXXXSource functions, handled sign-ness warning.

Cleaned up commented out sections

USB clock generation for F446

Default HSE value for backward compatibility

Cleaned up more unused stuff

Handle non-F4 targets

Added comment about PLL_M selection

Removed fake gyro/acc from test target
2018-11-23 15:36:10 +13:00
Michael Keller
233a68c9c1
Merge pull request #6163 from RicoKirstein/pll_osd_clock
added the USEMCO2ASOSDCLOCK define for the F7 cpus.
2018-11-22 20:58:25 +13:00
Michael Keller
68eaf9e1aa
Merge pull request #7068 from mikeller/eliminate_adjustment_range_dependency
Removed issue with sparse 'defaultAdjustmentConfigs' in adjustment ranges.
2018-11-13 12:49:38 +13:00
mikeller
bc09e929b5 Removed issue with sparse 'defaultAdjustmentConfigs' in adjustment ranges. 2018-11-13 01:29:02 +13:00
Michael Keller
3259abfbc0
Merge pull request #7061 from pulquero/support_uint32_set_vars
Support for setting uint32 vars.
2018-11-12 01:10:55 +13:00
Mark Hale
0ace402ea3 Support for setting uint32 vars.
Signed-off-by: Mark Hale <mark.hale@physics.org>
2018-11-09 18:10:27 +00:00
Bruce Luckcuck
13a365dd35 Fix missing string terminator for CLI map command defaults output 2018-10-31 16:16:38 -04:00
mikeller
b10737a9fd Added option to reset serial passthrough on drop of DTR. 2018-10-29 22:16:44 +13:00
jflyper
9f47d130b9 Adds the MCO driver facility for F7 targets
MCO2 output as run time configurable option
Add sanity check for MCO2 pin
changed output mode to AF from OUTPUT in mco driver
MCO for F4 is not implemented yet
Reinstate original OMNIBUSF7 target.h
Add config variable mco2_on_pc9
Make MCO2 pin hardcoded with mco2_on_pin control variable
fixed mco2 clock config corruption
removed unused pin definitions
2018-10-26 19:51:19 +02:00
mikeller
a03f30efa0 Converted 'SKIP_' defines to 'USE_'. 2018-10-25 00:38:05 +13:00
jflyper
00dab4288f More strict application of USE_UART and USE_INVERTER 2018-10-08 15:06:42 +09:00
Michael Keller
cc820d99de
Merge pull request #6865 from chibaron/add_sfhss
Add SFHSS-SPI-RX
2018-10-08 01:01:13 +13:00
jflyper
57a6060005 Prevent sdcard_getMetadata from being called when card is not inserted or not ready 2018-10-05 03:41:53 +09:00
Michael Keller
29015af2e2
Merge pull request #6872 from AlienWiiBF/GYRO_GENERIC
Update Gyro driver for generic target
2018-10-03 23:44:01 +13:00
chibaron
f04f2f7cbb Fix unit test 2018-10-03 14:29:11 +09:00
MJ666
9e36354c45 Update Gyro driver for generic target 2018-10-03 00:26:55 +02:00
Chris
bc95da4259 Fixes SD_DET for SDIO 2018-10-02 21:56:16 +02:00
chibaron
9a452f4a1e Change SFHSS bind parameter rxSfhssSpiConfig to rxFrSkySpiConfig 2018-10-03 00:32:18 +09:00
chibaron
95d3200c92 fix coding style 2018-10-02 01:51:25 +09:00
chibaron
cb5fc4fd63 Add SFHSS-SPI-RX 2018-10-01 23:27:40 +09:00
jflyper
00840ce40f Prepare SD card SPI and SDIO variants for consolidation 2018-10-01 19:44:04 +09:00
jflyper
0ff2d864b4 Fix origins for timer channel list
Selection is zero origin
Channel number is one origin for user I/O
2018-09-25 14:28:13 +09:00
Michael Keller
adddd0976c
Merge pull request #6788 from jflyper/bfdev-usb-refactor-for-generic-target
Refactor USB toward generic target
2018-09-22 04:54:21 +12:00
Michael Keller
d32887c1e9
Merge pull request #6797 from mikeller/make_cli_errors_consistent
Made CLI error messages consistent.
2018-09-20 23:17:41 +12:00
Michael Keller
b43c6ca73b
Merge pull request #6796 from etracer65/adjustment_range_optimize
Optimize in-flight adjustments to only process configured ranges
2018-09-20 20:51:21 +12:00
Michael Keller
811775748b Made CLI error messages consistent. 2018-09-19 10:35:13 +12:00
Bruce Luckcuck
044648ca12 Optimize in-flight adjustments to only process configured ranges
Previously the logic would process all possible ranges defined by MAX_ADJUSTMENT_RANGE_COUNT even if some (or even all) ranges were not configured.  This change first builds a list of configured ranges and only processes thos entries.

Reduces CPU load by skipping unnecessary processing and minimizes the impact of increasing the number of available ranges.
2018-09-18 10:31:58 -04:00
Michael Keller
3a62d40372
Merge pull request #6697 from etracer65/cli_lookup_index_validation
Add CLI validation of parameters and print a corrupted value message
2018-09-18 23:39:18 +12:00