summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-02-23 19:02:31 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-02-23 19:02:31 +0000
commitdf194b0fc7365ab6c3f730c6c0213410853bee03 (patch)
treeb9901ed102d8f8a10d4675c255820c122b11ec9f /firmware/drivers
parent82054dc137badce7390045d8a863d5b45b92b38c (diff)
downloadrockbox-df194b0fc7365ab6c3f730c6c0213410853bee03.zip
rockbox-df194b0fc7365ab6c3f730c6c0213410853bee03.tar.gz
rockbox-df194b0fc7365ab6c3f730c6c0213410853bee03.tar.bz2
rockbox-df194b0fc7365ab6c3f730c6c0213410853bee03.tar.xz
Code Police is never wrong. Ugh!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3325 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/lcd-recorder.c20
-rw-r--r--firmware/drivers/lcd.c16
2 files changed, 18 insertions, 18 deletions
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c
index fae4ea2..26112e3 100644
--- a/firmware/drivers/lcd-recorder.c
+++ b/firmware/drivers/lcd-recorder.c
@@ -57,16 +57,16 @@
#define LCD_SET_END_OF_READ_MODIFY_WRITE_MODE ((char)0xEE)
/* LCD command codes */
-#define LCD_CNTL_RESET 0xe2 // Software reset
-#define LCD_CNTL_POWER 0x2f // Power control
-#define LCD_CNTL_CONTRAST 0x81 // Contrast
-#define LCD_CNTL_OUTSCAN 0xc8 // Output scan direction
-#define LCD_CNTL_SEGREMAP 0xa1 // Segment remap
-#define LCD_CNTL_DISPON 0xaf // Display on
-
-#define LCD_CNTL_PAGE 0xb0 // Page address
-#define LCD_CNTL_HIGHCOL 0x10 // Upper column address
-#define LCD_CNTL_LOWCOL 0x00 // Lower column address
+#define LCD_CNTL_RESET 0xe2 /* Software reset */
+#define LCD_CNTL_POWER 0x2f /* Power control */
+#define LCD_CNTL_CONTRAST 0x81 /* Contrast */
+#define LCD_CNTL_OUTSCAN 0xc8 /* Output scan direction */
+#define LCD_CNTL_SEGREMAP 0xa1 /* Segment remap */
+#define LCD_CNTL_DISPON 0xaf /* Display on */
+
+#define LCD_CNTL_PAGE 0xb0 /* Page address */
+#define LCD_CNTL_HIGHCOL 0x10 /* Upper column address */
+#define LCD_CNTL_LOWCOL 0x00 /* Lower column address */
#define SCROLL_SPACING 3
diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c
index 38dbe3c..3f6acee 100644
--- a/firmware/drivers/lcd.c
+++ b/firmware/drivers/lcd.c
@@ -23,15 +23,15 @@
#define LCDR (PBDR_ADDR+1)
#ifdef HAVE_LCD_CHARCELLS
-#define LCD_DS 1 // PB0 = 1 --- 0001 --- LCD-DS
-#define LCD_CS 2 // PB1 = 1 --- 0010 --- /LCD-CS
-#define LCD_SD 4 // PB2 = 1 --- 0100 --- LCD-SD
-#define LCD_SC 8 // PB3 = 1 --- 1000 --- LCD-SC
+#define LCD_DS 1 /* PB0 = 1 --- 0001 --- LCD-DS */
+#define LCD_CS 2 /* PB1 = 1 --- 0010 --- /LCD-CS */
+#define LCD_SD 4 /* PB2 = 1 --- 0100 --- LCD-SD */
+#define LCD_SC 8 /* PB3 = 1 --- 1000 --- LCD-SC */
#else
-#define LCD_SD 1 // PB0 = 1 --- 0001
-#define LCD_SC 2 // PB1 = 1 --- 0010
-#define LCD_RS 4 // PB2 = 1 --- 0100
-#define LCD_CS 8 // PB3 = 1 --- 1000
+#define LCD_SD 1 /* PB0 = 1 --- 0001 */
+#define LCD_SC 2 /* PB1 = 1 --- 0010 */
+#define LCD_RS 4 /* PB2 = 1 --- 0100 */
+#define LCD_CS 8 /* PB3 = 1 --- 1000 */
#define LCD_DS LCD_RS
#endif