summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-01-20 22:44:35 +0000
committerJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-01-20 22:44:35 +0000
commite386d9461c8394ef653c0e87caa1d4b8d2c588ab (patch)
treebcc067a6dbcc725de9103f5c0ca0f8e435e3d1c3 /firmware/drivers
parentcdd236c0369a57a19564b6cbc6085e8f616188f3 (diff)
downloadrockbox-e386d9461c8394ef653c0e87caa1d4b8d2c588ab.tar.gz
rockbox-e386d9461c8394ef653c0e87caa1d4b8d2c588ab.zip
fixed indentation
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5621 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/lcd-recorder.c62
1 files changed, 31 insertions, 31 deletions
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c
index df1acd7017..33120d05c4 100644
--- a/firmware/drivers/lcd-recorder.c
+++ b/firmware/drivers/lcd-recorder.c
@@ -120,26 +120,26 @@ static const unsigned char ones[8] = { 0xff, 0xff, 0xff, 0xff,
120 There is probably is a better way (ie. do only one mask operation) 120 There is probably is a better way (ie. do only one mask operation)
121*/ 121*/
122void lcd_write_command(int cmd) { 122void lcd_write_command(int cmd) {
123 P2 &= 0xF7; 123 P2 &= 0xF7;
124 P2 &= 0xDF;
125 P2 &= 0xFB;
126 P0 = cmd;
127 P2 |= 0x04;
128 P2 |= 0x08;
129 P2 |= 0x20;
130}
131
132void lcd_write_data( const unsigned char* data, int count ) {
133 int i;
134 for (i=0; i < count; i++) {
135 P2 |= 0x08;
136 P2 &= 0xDF; 124 P2 &= 0xDF;
137 P2 &= 0xFB; 125 P2 &= 0xFB;
138 P0 = data[i]; 126 P0 = cmd;
139 P2 |= 0x04; 127 P2 |= 0x04;
140 P2 |= 0x08; 128 P2 |= 0x08;
141 P2 |= 0x20; 129 P2 |= 0x20;
142 } 130}
131
132void lcd_write_data( const unsigned char* data, int count ) {
133 int i;
134 for (i=0; i < count; i++) {
135 P2 |= 0x08;
136 P2 &= 0xDF;
137 P2 &= 0xFB;
138 P0 = data[i];
139 P2 |= 0x04;
140 P2 |= 0x08;
141 P2 |= 0x20;
142 }
143} 143}
144#endif 144#endif
145 145
@@ -169,13 +169,13 @@ void lcd_init(void)
169void lcd_init (void) 169void lcd_init (void)
170{ 170{
171#if CONFIG_CPU == TCC730 171#if CONFIG_CPU == TCC730
172 /* Initialise P0 & some P2 output pins: 172 /* Initialise P0 & some P2 output pins:
173 P0 -> all pins normal cmos output 173 P0 -> all pins normal cmos output
174 P2 -> pins 1 to 5 normal cmos output. */ 174 P2 -> pins 1 to 5 normal cmos output. */
175 P0CON = 0xff; 175 P0CON = 0xff;
176 P2CONL |= 0x5a; 176 P2CONL |= 0x5a;
177 P2CONL &= 0x5b; 177 P2CONL &= 0x5b;
178 P2CONH |= 1; 178 P2CONH |= 1;
179#else 179#else
180 /* Initialize PB0-3 as output pins */ 180 /* Initialize PB0-3 as output pins */
181 PBCR2 &= 0xff00; /* MD = 00 */ 181 PBCR2 &= 0xff00; /* MD = 00 */
@@ -295,15 +295,15 @@ void lcd_set_flip(bool yesno)
295 if (yesno) 295 if (yesno)
296#endif 296#endif
297#if CONFIG_LCD == LCD_GMINI100 297#if CONFIG_LCD == LCD_GMINI100
298 { 298 {
299 lcd_write_command(LCD_SET_SEGMENT_REMAP | 0x01); 299 lcd_write_command(LCD_SET_SEGMENT_REMAP | 0x01);
300 lcd_write_command(LCD_SET_COM_OUTPUT_SCAN_DIRECTION | 0x08); 300 lcd_write_command(LCD_SET_COM_OUTPUT_SCAN_DIRECTION | 0x08);
301 xoffset = 132 - LCD_WIDTH; 301 xoffset = 132 - LCD_WIDTH;
302 } else { 302 } else {
303 lcd_write_command(LCD_SET_SEGMENT_REMAP); 303 lcd_write_command(LCD_SET_SEGMENT_REMAP);
304 lcd_write_command(LCD_SET_COM_OUTPUT_SCAN_DIRECTION | 0x08); 304 lcd_write_command(LCD_SET_COM_OUTPUT_SCAN_DIRECTION | 0x08);
305 xoffset = 0; 305 xoffset = 0;
306 } 306 }
307#else 307#else
308 308
309 { 309 {