summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-04-12 13:59:56 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-04-12 13:59:56 +0000
commit98161567e4c4a0d68c3af70759eb2b8c2ce6cac0 (patch)
treed8fcd936326f1c6b25045e1e3c1e554886a45231
parent8c8ad67c1f13612151f74c7ad60703ec87e49211 (diff)
downloadrockbox-98161567e4c4a0d68c3af70759eb2b8c2ce6cac0.zip
rockbox-98161567e4c4a0d68c3af70759eb2b8c2ce6cac0.tar.gz
rockbox-98161567e4c4a0d68c3af70759eb2b8c2ce6cac0.tar.bz2
rockbox-98161567e4c4a0d68c3af70759eb2b8c2ce6cac0.tar.xz
removed C++ comments, added emacs-stuff in the bottom
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@88 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/lcd.c51
1 files changed, 28 insertions, 23 deletions
diff --git a/firmware/lcd.c b/firmware/lcd.c
index e8716a9..1bf0ad9 100644
--- a/firmware/lcd.c
+++ b/firmware/lcd.c
@@ -160,14 +160,14 @@ void lcd_puthex (unsigned int value,int digits)
*/
unsigned char display[DISP_X][DISP_Y/8];
-//
-// ASCII character generation tables
-//
-// This contains only the printable characters (0x20-0x7f).
-// Each element in this table is a character pattern bitmap.
-//
-#define ASCII_MIN 0x20 // First char in table
-#define ASCII_MAX 0x7f // Last char in table
+/*
+ * ASCII character generation tables
+ *
+ * This contains only the printable characters (0x20-0x7f).
+ * Each element in this table is a character pattern bitmap.
+ */
+#define ASCII_MIN 0x20 /* First char in table */
+#define ASCII_MAX 0x7f /* Last char in table */
extern const unsigned char char_gen_6x8[][5][1];
extern const unsigned char char_gen_8x12[][7][2];
@@ -191,21 +191,21 @@ static int lcd_size; /* Current font width */
*/
void lcd_init (void)
{
- // Initialize PB0-3 as output pins
- PBCR2 &= 0xff00; // MD = 00
- PBIOR |= 0x000f; // IOR = 1
-
- // Initialize LCD
- lcd_write (TRUE, LCD_CNTL_RESET);
- lcd_write (TRUE, LCD_CNTL_POWER);
- lcd_write (TRUE, LCD_CNTL_SEGREMAP);
- lcd_write (TRUE, LCD_CNTL_OUTSCAN);
- lcd_write (TRUE, LCD_CNTL_CONTRAST);
- lcd_write (TRUE, 0x30); // Contrast parameter
- lcd_write (TRUE, LCD_CNTL_DISPON);
-
- lcd_clear_display();
- lcd_update();
+ /* Initialize PB0-3 as output pins */
+ PBCR2 &= 0xff00; /* MD = 00 */
+ PBIOR |= 0x000f; /* IOR = 1 */
+
+ /* Initialize LCD */
+ lcd_write (TRUE, LCD_CNTL_RESET);
+ lcd_write (TRUE, LCD_CNTL_POWER);
+ lcd_write (TRUE, LCD_CNTL_SEGREMAP);
+ lcd_write (TRUE, LCD_CNTL_OUTSCAN);
+ lcd_write (TRUE, LCD_CNTL_CONTRAST);
+ lcd_write (TRUE, 0x30); /* Contrast parameter */
+ lcd_write (TRUE, LCD_CNTL_DISPON);
+
+ lcd_clear_display();
+ lcd_update();
}
/*
@@ -417,3 +417,8 @@ void lcd_invertrect (int x, int y, int nx, int ny)
/* no LCD defined, no code to use */
#endif
+/* -----------------------------------------------------------------
+ * local variables:
+ * eval: (load-file "rockbox-mode.el")
+ * end:
+ */