Commit Graph
7334 Commits
Author SHA1 Message Date
Michał Wróbel 485edb579d TELEMETRY_MOD=14051_SWAPPED
TELEMETRY_MOD=14051 (by gerardv @ forum.turnigy9xr.com) makes USART0 available
by reallocating AIL and THR onto pins 14 and 15 of the 14051 multiplexer.

TELEMETRY_MOD=14051_SWAPPED is based on TELEMETRY_MOD=14051, but uses USART1
instead of USART0, freeing USART0 for other purposes (debugging, interfacing
via AVRISP port). USART1 is freed up by reallocating LVert Trim Dn/Up onto
14051's 12 and 1 pins respectively.

Additionally, this commit cleans a few things up:
 * moves AVR ADC-related code to adc_driver.cpp,
 * provides #defines to have a convenient way to access either USART0 or USART1
   registers depending on static (build-time) configuration
 * moves code related to this telemetry mod to board_stock
 * replaces a few magic numbers with enums.

Thanks to Bernard Songis for review and suggestions!
2015-04-25 14:25:34 +02:00
bsongis ba05538920 EEPROM save process unification on ARM boards 2015-04-25 11:09:09 +02:00
bsongis 5ed9bfcee9 Warning fix 2015-04-25 10:58:26 +02:00
bsongis becad53951 Cosmetics 2015-04-25 10:52:01 +02:00
bsongis 27005f57d5 Cosmetics 2015-04-25 09:06:08 +02:00
bsongis 627d3fcfd6 [Sky9x] EEPROM format changed to allow a recovery in case of EEPROM file
system error
2015-04-25 09:01:23 +02:00
bsongis 3cdcb0e203 [Sky9x] EEPROM code moved to driver 2015-04-25 08:16:01 +02:00
bsongis dbd452aefd [Sky9x] EEPROM fixes 2015-04-24 22:32:23 +02:00
Jacek Drewniak 1ec20a71c1 Making pl.h.txt equal to en.h.txt of all IFDEFS and TR()s 2015-04-23 12:08:30 +02:00
Jacek Drewniak dfcca38596 Small fixes 2015-04-21 11:33:00 +02:00
Bertrand Songis df573ac99e Merge pull request #2209 from opentx/bsongis/sky9x_eeprom
EEPROM on Sky9x
2015-04-21 06:40:16 +02:00
Bertrand Songis 78b1c118c1 Merge pull request #2145 from opentx/bsongis/issue_1471_Lua_read_write_SD
#1471 - libio added to Lua. For tests, can be simplified and expanded
2015-04-21 06:39:59 +02:00
Andre Bernet 38452ca4d0 3pos mid pos delay only for 3pos switches 2015-04-20 20:52:51 +04:00
bsongis 74b546a9fa Ignore list updated 2015-04-20 18:21:54 +02:00
bsongis 8425024eb9 eepromCheck called inside eepromOpen 2015-04-20 18:17:57 +02:00
bsongis 2ed15a8388 [Sky9x] EEPROM format change
Addresses remarks from Mike about new EEPROM format
2015-04-20 18:08:04 +02:00
bsongis 5c25d10622 [Sky9x] Translations added 2015-04-19 22:37:55 +02:00
Bertrand Songis 1964ac207c EEPROM on Sky9x 2015-04-19 22:37:55 +02:00
Jacek Drewniak 2a8c566e7e a lot of new translation and fixes 2015-04-19 21:02:13 +02:00
JivaroFAD c6cf0f915e Mega2560 LCD refactoring 2015-04-19 12:13:24 +02:00
bsongis b469bc5906 Problem when gauges telemetry screen empty 2015-04-18 11:02:06 +02:00
bsongis 905e3c7871 Fixes #2203 2015-04-14 19:26:04 +02:00
Bertrand Songis 2e1a47dc2a Merge pull request #2189 from universam1/LCD-ERC12864FSF
Add support for LCD ERC12864FSF
2015-04-12 22:51:39 +02:00
bsongis 6840b88337 [Taranis] Internal conversions fixed 2015-04-08 20:17:59 +02:00
Bertrand Songis 2a8155c61c TTS script updated (english only for now) 2015-04-08 19:24:35 +02:00
bsongis ae26f4c4d5 Cosmetics 2015-04-07 22:38:36 +02:00
universam1 170c589067 Add support for LCD ERC12864FSF
common replacement LCD needs different init data
2015-04-07 11:34:12 +02:00
Damjan Adamic 0f15828093 X9E: turn off top lcd and both backlights when powering off 2015-04-06 18:22:34 +02:00
Damjan Adamic 8f75c8a1e0 X9E power off fixed in case of constantly pressed power button 2015-04-06 18:12:59 +02:00
Bertrand Songis 17b16e4670 [Taranis] Asynchronous screenshots (to ensure the LCD will be fully
refreshed before doing the screenshot)
2015-04-02 23:06:11 +02:00
Andre Bernet 4e4be82875 ft/s unit added 2015-04-02 23:55:55 +04:00
Andre Bernet 7000d3bf82 Enable source popup in Play Value SF 2015-04-02 23:28:53 +04:00
Bertrand Songis ad1506a97b [ARM boards] If I am not mistaken, the imperial conversions should work
automatically for meters/feet in Telemetry
2015-04-01 07:17:08 +02:00
bsongis 8dadb5346b Revert "[ARM boards] Imperial parameter removed"
This reverts commit 79e727a149.
2015-03-31 23:08:37 +02:00
bsongis 9886dede73 [Taranis] Saves around 800bytes RAM (the same space is used for
DSM2/PPM/PXX pulses on external module)
2015-03-31 22:35:13 +02:00
Andre Bernet 4d2b387098 Translation 2015-03-31 22:39:47 +04:00
bsongis 84fc2007f5 Lua f_open in "a" mode added 2015-03-31 20:39:46 +02:00
Andre Bernet ed1db975ea Force PREC0 for °F sensors to avoid breaking the conversion 2015-03-31 22:35:12 +04:00
bsongis 79e727a149 [ARM boards] Imperial parameter removed 2015-03-31 19:47:56 +02:00
Andre Bernet 75999c06d7 Distance unit needs to be configurable 2015-03-31 21:44:53 +04:00
bsongis 004fe01242 Cosmetics 2015-03-31 19:10:14 +02:00
Andre Bernet 10d70e7d00 Merge branch 'next' into bsongis/issue_1471_Lua_read_write_SD 2015-03-31 20:04:39 +04:00
Andre Bernet 82d11abb2e Display trims problem (Fix #2157) 2015-03-31 19:21:11 +04:00
Andre Bernet 8b29aa1e9b Add multiplier to RPM sensor (Fix #1688), fix offset/ratio DSBs 2015-03-31 17:49:43 +04:00
bsongis 4a9aa52f28 One less configure_pins, still a lot to remove :) 2015-03-31 07:53:43 +02:00
bsongis 70f84b5dad [Taranis Plus] Amber backlight was broken 2015-03-30 22:43:48 +02:00
bsongis fe71712b18 [Taranis] Trainer inputs were not working in mixers 2015-03-30 21:48:37 +02:00
Bertrand Songis f68e297185 Merge pull request #2175 from dkisselev/fix-2129
Fix trim switch labels on 9X
2015-03-30 06:49:53 +02:00
bsongis 4e6bc9db2f [ARM boards] Haptic was broken on 'next' 2015-03-30 00:18:26 +02:00
Denis Kisselev b3d48bab49 Clean up trim switch labels across platforms and languages 2015-03-29 14:34:19 -07:00