Commit Graph

195 Commits

Author SHA1 Message Date
Michael Keller 022d2708c8
Merge pull request #7623 from betaflight/bf-allow-per-file-compilation-without-optimization
Allow files to compiled without optimization.
2019-03-07 03:29:31 +13:00
Dominic Clifton e35d8a25d3 Allow files to compiled without optimization.
This is required when trying to see what the optimizer is doing to the
assembly or in aiding debugging CPU IMPRECISE bus fault errors.
2019-03-06 10:34:39 +01:00
Thorsten Laux cec679ac60 incorporte review feedback 2019-03-03 11:33:14 +01:00
Bruce Luckcuck 30672a37c5 Refactor OSD element display code
Remove the giant `select` block that contained all the code to generate the elements and transition them to individual functions called only when the element is active. Simplifies the code and results in a performance improvement as it's not necessary to fall through the large `select` statement for every element that will be drawn. The individual functions and the element to function mapping are moved to a new `osd_elements.c` file.

Moved the OSD related code files to a new `osd/` directory.

Also pre-analyze the active elements and only process those that are active. This also saves processing as it's not necessary to loop through all 50 or so elements when only a couple are active.

Various other cleanup and removal of stale or unnecessary code.

In the default configuration the element drawing phase of the OSD task is reduced from ~51us to ~35us - resulting in about a 30% decrease in processing time.
2019-02-21 14:03:25 -05:00
blckmn 1bedb1b911 Moved hal config headers etc to ./src/main/startup 2019-02-20 18:24:16 +11:00
jflyper 96fc6dc934 CLI parser for vtxtable 2019-02-06 15:24:02 +09:00
mikeller 38e1ce04df Reorganised interfaces, putting them where they are used. 2019-01-27 13:38:22 +13:00
Michael Keller af64f93a9a
Merge pull request #7367 from etracer65/cms_save_exit_popup
CMS exit/save popup menu
2019-01-12 17:51:23 +13:00
Bruce Luckcuck 5b5581fa2a CMS exit/save popup menu
Adds a new exit/save menu that can be displayed at any time using the yaw-right stick command. Yaw-left still functions as "back".

Allows the user to save their settings even while nested deep in multiple menus. Previously the user was required to back up all the way to the top level menu to save or exit.
2019-01-10 18:59:50 -05:00
Bruce Luckcuck 330d93eb5b Add CMS failsafe setup menu
Located under the Features top-level menu. Allows configuring the failsafe procedure (like selecting GPS-RESCUE if applicable).

Bounded with `#ifdef USE_CMS_FAILSAFE_MENU` so it can be disabled for space critical targets.
2019-01-10 15:22:36 -05:00
Thorsten Laux 8d4ed72e13 rpm telemetry based notch filter 2019-01-07 13:36:01 +01:00
jflyper fe182bb2fb Introduce dma_reqmap 2018-12-30 09:40:37 +09:00
jflyper c0d51a5f55 Convert F7s to use RTC backup register based persistent memory 2018-12-03 23:56:41 +09:00
jflyper 99fde1a0ff Use RTC backup register for persistent storage 2018-12-03 09:45:36 +09:00
phobos- c88a5a3a22 Refactored SPI RX led blink and bind plug functionality to rx_spi_common 2018-11-25 10:37:18 +01: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
jflyper 00840ce40f Prepare SD card SPI and SDIO variants for consolidation 2018-10-01 19:44:04 +09:00
Blaine eb5af3a161 Add support for the ST LIS3MDL 3-Axis Magnetometer per #6437 2018-09-16 19:56:13 -07:00
Andrej Podzimek 17b66067bb Adding a reusable mapping function between alt and base targets. 2018-09-11 06:06:50 +02:00
Andrey Mironov 7a331d03f4 Added preliminary support for STM32F765xx 2018-09-07 22:47:20 +03:00
mikeller 0bce8549ee Renamed 'fc/fc_' files to remove the double 'fc'. 2018-08-26 14:07:06 +12:00
Michael Keller 072a9dbdd5
Merge pull request #6410 from wind0r/update_gcc
update gcc
2018-08-17 00:23:10 +12:00
Michael Keller fdb4e20ed0
Merge pull request #6224 from Scavanger/CMS-for-Hott-Textmode
CMS for HoTT-Textmode.
2018-08-16 23:57:15 +12:00
Michael Keller 283e55e45d Removed SPRACINGF3OSD support. 2018-08-08 08:32:20 +12:00
Andrey Mironov 5542578d98 Added KISSFCV2F7 back to supported targets 2018-07-23 23:41:41 +03:00
mikeller 3663fcb285 Removed KISSFCV2F7 from build because of ITCM_RAM overflow. 2018-07-22 11:49:43 +12:00
Steffen Windoffer 1924700e28 update gcc 2018-07-21 11:46:10 +02:00
Michael Keller 362d42fcaf
Merge pull request #6365 from mikeller/add_msc_msp
Added MSP for reboot to MSC.
2018-07-17 19:29:25 +12:00
mikeller df55fc99ec Added MSP for reboot to MSC. 2018-07-17 18:34:06 +12:00
Anders Hoglund 0185018973 Build target groups populated dynamically. 2018-07-16 18:10:03 +02:00
Andi Kanzler 31830dc10c Bring the CMS to the HoTT-Textmode. 2018-07-01 01:05:43 +02:00
azolyoung 53458d4cf1 Change rcsplit protocol to async 2018-06-23 11:55:15 +08:00
mikeller 444e5c43a5 Fixed USB HID channel mapping in Windows. 2018-06-13 01:34:36 +12:00
mikeller 935d61694d Re-enabled building of KISSFCV2F7. 2018-06-09 11:11:46 +12:00
mikeller 1a2c129306 Fixed build for SPRACINGF3OSD. 2018-05-31 23:25:03 +12:00
mikeller a101a58b68 Added ability to set and check board info. 2018-05-31 23:25:03 +12:00
Michael Keller 69a80a3bb0
Merge pull request #5965 from loopur/mybranch
Add barometer sensor QMP6988
2018-05-25 15:54:47 +12:00
jflyper c60eecbff0 Drop software SPI RX support 2018-05-23 20:59:52 +09:00
Michael Keller 61328c3996
Merge pull request #5926 from mikeller/cleanup_sdk_tool_version_check
Cleaned up SDK version check.
2018-05-23 22:06:18 +12:00
mikeller 57854eefc4 Cleaned up SDK version check. 2018-05-21 13:44:04 +12:00
s0up ac6b8088c9 add gps rescue mode 2018-05-20 16:28:17 -07:00
Loopur d36858a220 Add baro sensor of QMP6988 2018-05-18 18:37:28 +08:00
Loopur 495cfb4d07 Add barometer sensor QMP6988 2018-05-18 16:26:07 +08:00
jflyper 6c044829cc Mark unused acc/gyro support toward retirement. 2018-05-16 14:31:39 +09:00
mikeller 7a03ead75e Made SIMULATOR_BUILD a makefile driven option. 2018-05-14 19:13:37 +12:00
s0up de5fa47c4c navigation feature / reference removal 2018-05-09 10:28:36 -07:00
jflyper 5edd0c746f Move serial.c from SPEED_OPTIMZED to SIZE_OPTIMIZED 2018-05-08 17:09:24 +09:00
blckmn aad6efdf03 Timer clean up in preparation for configurable timers 2018-05-06 06:55:17 +10:00
blckmn 48e62ab8d6 Simplified source.mk slightly to ensure some common, and pg files are always included in build. 2018-05-05 14:37:38 +10:00
Michael Keller f7d5568d52
Merge pull request #5819 from jflyper/bfdev-introduce-nomk-extension-for-no-build
Use ".nomk" to designate "No build" target
2018-05-05 13:10:50 +12:00