Commit Graph
31 Commits
Author SHA1 Message Date
Bertrand Songis 74b43c478b Cosmetics 2015-06-12 16:26:36 +02:00
Bertrand Songis 2953346b6b Refactoring 2015-06-12 14:17:06 +02:00
Bertrand Songis ed7cb82d3b Compilation fix 2015-06-12 07:17:41 +02:00
Bertrand Songis 5a9882a069 Cosmetics 2015-06-12 07:02:58 +02:00
Bertrand Songis 744b3139b8 Compilation fix 2015-06-12 06:57:41 +02:00
Bertrand Songis fa0e4b9964 Cosmetics 2015-06-11 23:18:37 +02:00
bsongis 8365a8dbaf Constants renamed (so that Taranis hal is now nice) 2015-06-09 21:15:10 +02:00
bsongis 59235fcfcb Indentation fixes 2015-05-21 19:14:00 +02:00
JivaroFAD de13291db1 LCD driver simplification, 8 bytes saved (ST7565) 2015-05-20 18:08:33 +02:00
JivaroFAD 65017fc243 LCD driver update 2015-05-18 23:33:35 +02:00
JivaroFAD 744c797e30 ST7920 support added for 9x and M2560 boards
Merge of olterion ST7920 driver, thanks :)
Draft... please check !
2015-05-17 20:26:41 +02:00
Michał Wróbel e20e66d9bb Fix simu and gtests compilation with TELEMETRY_MOD={14051,14051_SWAPPED} 2015-05-08 23:35:28 +02:00
bsongis 0dd3c710c1 Compilation error fixes 2015-04-26 13:39:15 +02:00
Bertrand Songis 27ee3e3ab4 Merge pull request #2220 from xmxwx/telemetry_mod_14051_swapped
TELEMETRY_MOD=14051_SWAPPED
2015-04-26 11:26:46 +02:00
Michał Wróbel 8e074aaafc Fixes #2221 (LCD contents shifted upwards by 6 pixels on 9XR). 2015-04-25 15:36:24 +02:00
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
JivaroFAD c6cf0f915e Mega2560 LCD refactoring 2015-04-19 12:13:24 +02:00
universam1 170c589067 Add support for LCD ERC12864FSF
common replacement LCD needs different init data
2015-04-07 11:34:12 +02:00
bsongis 01cd86f6f6 [MEGA2560/GRUVIN9X] Overflow in Custom Functions switch (no ON and One) 2015-03-03 20:14:23 +01:00
KenandKen Healy a7179f5b77 Tested fix for PWM_BACKLIGHT on ATmega2561 MCUs
The functionality of timer0 and timer2 are switched between ATmega64/128
and 641/1281/2561. When compiled for ATmega2561, this commit sets up timer0
in the same way as timer2 on ATmega64/128 (phase correct PWM, clk/64 count
rate, inverted if SP22 is defined).

The previous quick fix had a typo in the initialization of TCCR0B (0b111 is
an invalid value for the clock select bits CS2:0). It also did not respect
the SP22 define which indicates the PWM must be inverted. Smartieparts
v2.2 or later programmer boards have an inverted backlight driver. Finally,
it is unnecessary to set DDB7 as it is already set in boardInit() (line
101).
2015-01-08 21:29:01 -05:00
bsongisandKen Healy fe500463fd Quick fix for #1970 - I don't have any 2561 for testing, I let you test
and fix if needed!
2015-01-08 21:29:01 -05:00
Damjan Adamic bb921a0a7f Ported from master to next:
#1489: TRACE() output intercepted and shown in Companion (shortcut F6)
#1270: simple Trainer Simulator (shortcut F5)
#1466: telemetry simulator (shorcut F5)
2015-01-04 20:07:39 +01:00
bsongis 4c2c85fe9f MEGA2560 didn't compile correctly 2014-12-08 20:20:13 +01:00
Damjan Adamic 382e5a0eef Missing stuff 2014-11-30 19:56:33 +01:00
bsongis 4d84ba4c19 LCD refactoring - saves 6 bytes on 9x stock 2014-08-20 22:29:45 +02:00
bsongis b376192b61 Telemetry refactoring 2014-05-15 18:07:52 +02:00
bsongis 6b4dba947a Issue #1065 - FW part done 2014-05-09 17:11:30 +02:00
Andre Bernet db1336522e Cosmetics 2014-04-28 12:54:08 +02:00
Andre Bernet 5c0b8fcb2d Haptic support 2014-04-23 21:58:05 +02:00
Bertrand Songis cae4d1ecf6 Issue #592 - All boards will have this feature available, it costs only
50bytes on stock board (I saved more in this same branch)
2014-02-06 14:43:43 +01:00
Bertrand Songis 942e658c8e Directory transmitter renamed to radio 2013-12-02 07:13:57 +01:00