summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-07-27 19:40:06 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-07-27 19:40:06 +0000
commit3cb353eb0d4b9f77dc8780d6bdf79630f1d30136 (patch)
tree88acbdac4a31c8ffb32ef1efd5f155f02cfd55fc
parente1a97288fc490558b0e55bb417aa8f8ac7c38c14 (diff)
downloadrockbox-3cb353eb0d4b9f77dc8780d6bdf79630f1d30136.zip
rockbox-3cb353eb0d4b9f77dc8780d6bdf79630f1d30136.tar.gz
rockbox-3cb353eb0d4b9f77dc8780d6bdf79630f1d30136.tar.bz2
rockbox-3cb353eb0d4b9f77dc8780d6bdf79630f1d30136.tar.xz
Removed some debugging code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1463 a1c6a512-1295-4272-9138-f99709370657
-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 5244068..18a0778 100644
--- a/firmware/drivers/lcd.c
+++ b/firmware/drivers/lcd.c
@@ -566,17 +566,6 @@ void lcd_init (void)
PBCR2 &= 0xff00; /* MD = 00 */
PBIOR |= 0x000f; /* IOR = 1 */
- /* We are using timer 2 */
-
- TSTR &= ~0x04; /* Stop the timer */
- TSNC &= ~0x04; /* No synchronization */
- TMDR &= ~0x04; /* Operate normally */
-
- TCNT2 = 0; /* Start counting at 0 */
- TCR2 = 0x03; /* sysclock/8 */
-
- TSTR |= 0x04; /* Start timer 2 */
-
lcd_clear_display();
lcd_update();
create_thread(scroll_thread, scroll_stack,
@@ -590,15 +579,6 @@ void lcd_init (void)
void lcd_update (void)
{
int x, y;
-#ifdef DEBUG
- int t1;
- int t;
- int i, d;
- int tk1, tk2;
-
- TCNT2 = 0;
- tk1 = current_tick;
-#endif
/* Copy display bitmap to hardware */
for (y = 0; y < LCD_HEIGHT/8; y++)
{
@@ -609,14 +589,6 @@ void lcd_update (void)
for (x = 0; x < LCD_WIDTH; x++)
lcd_write (false, display[x][y]);
}
-#ifdef DEBUG
- tk2 = current_tick;
- t1 = TCNT2;
- t = (t1 * 10) / (FREQ/8000);
- i = t / 10;
- d = t % 10;
- DEBUGF("TCNT2: %d, (%d.%d ms), %d\n", t1, i, d, tk2-tk1);
-#endif
}
#endif /* SIMULATOR */