summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/lcd.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c
index 5244068d91..18a07785bf 100644
--- a/firmware/drivers/lcd.c
+++ b/firmware/drivers/lcd.c
@@ -566,17 +566,6 @@ void lcd_init (void)
566 PBCR2 &= 0xff00; /* MD = 00 */ 566 PBCR2 &= 0xff00; /* MD = 00 */
567 PBIOR |= 0x000f; /* IOR = 1 */ 567 PBIOR |= 0x000f; /* IOR = 1 */
568 568
569 /* We are using timer 2 */
570
571 TSTR &= ~0x04; /* Stop the timer */
572 TSNC &= ~0x04; /* No synchronization */
573 TMDR &= ~0x04; /* Operate normally */
574
575 TCNT2 = 0; /* Start counting at 0 */
576 TCR2 = 0x03; /* sysclock/8 */
577
578 TSTR |= 0x04; /* Start timer 2 */
579
580 lcd_clear_display(); 569 lcd_clear_display();
581 lcd_update(); 570 lcd_update();
582 create_thread(scroll_thread, scroll_stack, 571 create_thread(scroll_thread, scroll_stack,
@@ -590,15 +579,6 @@ void lcd_init (void)
590void lcd_update (void) 579void lcd_update (void)
591{ 580{
592 int x, y; 581 int x, y;
593#ifdef DEBUG
594 int t1;
595 int t;
596 int i, d;
597 int tk1, tk2;
598
599 TCNT2 = 0;
600 tk1 = current_tick;
601#endif
602 /* Copy display bitmap to hardware */ 582 /* Copy display bitmap to hardware */
603 for (y = 0; y < LCD_HEIGHT/8; y++) 583 for (y = 0; y < LCD_HEIGHT/8; y++)
604 { 584 {
@@ -609,14 +589,6 @@ void lcd_update (void)
609 for (x = 0; x < LCD_WIDTH; x++) 589 for (x = 0; x < LCD_WIDTH; x++)
610 lcd_write (false, display[x][y]); 590 lcd_write (false, display[x][y]);
611 } 591 }
612#ifdef DEBUG
613 tk2 = current_tick;
614 t1 = TCNT2;
615 t = (t1 * 10) / (FREQ/8000);
616 i = t / 10;
617 d = t % 10;
618 DEBUGF("TCNT2: %d, (%d.%d ms), %d\n", t1, i, d, tk2-tk1);
619#endif
620} 592}
621 593
622#endif /* SIMULATOR */ 594#endif /* SIMULATOR */