diff options
author | Jens Arnold <amiconn@rockbox.org> | 2004-08-03 05:58:46 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2004-08-03 05:58:46 +0000 |
commit | 2b0694c6944f2ea155291b62a00c11b89cd63914 (patch) | |
tree | 7b69164f0a3d5c19c3a6db67b8f7e42a24266821 /firmware/drivers | |
parent | 586ec8274dbe487f3c5567d067965b17e5e228cd (diff) | |
download | rockbox-2b0694c6944f2ea155291b62a00c11b89cd63914.tar.gz rockbox-2b0694c6944f2ea155291b62a00c11b89cd63914.zip |
More const policeing step 3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4982 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/adc.c | 2 | ||||
-rw-r--r-- | firmware/drivers/ata.c | 2 | ||||
-rw-r--r-- | firmware/drivers/lcd-player.c | 6 | ||||
-rw-r--r-- | firmware/drivers/lcd-recorder.c | 8 |
4 files changed, 9 insertions, 9 deletions
diff --git a/firmware/drivers/adc.c b/firmware/drivers/adc.c index 7be9baf5d5..c81d571b04 100644 --- a/firmware/drivers/adc.c +++ b/firmware/drivers/adc.c | |||
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | static int current_channel; | 25 | static int current_channel; |
26 | static unsigned short adcdata[NUM_ADC_CHANNELS]; | 26 | static unsigned short adcdata[NUM_ADC_CHANNELS]; |
27 | static unsigned int adcreg[NUM_ADC_CHANNELS] = | 27 | static const unsigned int adcreg[NUM_ADC_CHANNELS] = |
28 | { | 28 | { |
29 | ADDRAH_ADDR, ADDRBH_ADDR, ADDRCH_ADDR, ADDRDH_ADDR, | 29 | ADDRAH_ADDR, ADDRBH_ADDR, ADDRCH_ADDR, ADDRDH_ADDR, |
30 | ADDRAH_ADDR, ADDRBH_ADDR, ADDRCH_ADDR, ADDRDH_ADDR | 30 | ADDRAH_ADDR, ADDRBH_ADDR, ADDRCH_ADDR, ADDRDH_ADDR |
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 1394ceaf29..663df600ca 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c | |||
@@ -98,7 +98,7 @@ static bool poweroff = false; | |||
98 | static int poweroff_timeout = 2*HZ; | 98 | static int poweroff_timeout = 2*HZ; |
99 | #endif | 99 | #endif |
100 | static char ata_stack[DEFAULT_STACK_SIZE]; | 100 | static char ata_stack[DEFAULT_STACK_SIZE]; |
101 | static char ata_thread_name[] = "ata"; | 101 | static const char ata_thread_name[] = "ata"; |
102 | static struct event_queue ata_queue; | 102 | static struct event_queue ata_queue; |
103 | static bool initialized = false; | 103 | static bool initialized = false; |
104 | static bool delayed_write = false; | 104 | static bool delayed_write = false; |
diff --git a/firmware/drivers/lcd-player.c b/firmware/drivers/lcd-player.c index 3ae2f5dbb9..88aa53a6d3 100644 --- a/firmware/drivers/lcd-player.c +++ b/firmware/drivers/lcd-player.c | |||
@@ -87,7 +87,7 @@ struct cursorinfo { | |||
87 | 87 | ||
88 | static void scroll_thread(void); | 88 | static void scroll_thread(void); |
89 | static char scroll_stack[DEFAULT_STACK_SIZE]; | 89 | static char scroll_stack[DEFAULT_STACK_SIZE]; |
90 | static char scroll_name[] = "scroll"; | 90 | static const char scroll_name[] = "scroll"; |
91 | static char scroll_speed = 8; /* updates per second */ | 91 | static char scroll_speed = 8; /* updates per second */ |
92 | static int scroll_delay = HZ/2; /* delay before starting scroll */ | 92 | static int scroll_delay = HZ/2; /* delay before starting scroll */ |
93 | static int jump_scroll_delay = HZ/4; /* delay between jump scroll jumps */ | 93 | static int jump_scroll_delay = HZ/4; /* delay between jump scroll jumps */ |
@@ -422,7 +422,7 @@ void lcd_double_height(bool on) | |||
422 | lcd_write_command(on?9:8); | 422 | lcd_write_command(on?9:8); |
423 | } | 423 | } |
424 | 424 | ||
425 | static char icon_pos[] = | 425 | static const char icon_pos[] = |
426 | { | 426 | { |
427 | 0, 0, 0, 0, /* Battery */ | 427 | 0, 0, 0, 0, /* Battery */ |
428 | 2, /* USB */ | 428 | 2, /* USB */ |
@@ -441,7 +441,7 @@ static char icon_pos[] = | |||
441 | 10, /* Param */ | 441 | 10, /* Param */ |
442 | }; | 442 | }; |
443 | 443 | ||
444 | static char icon_mask[] = | 444 | static const char icon_mask[] = |
445 | { | 445 | { |
446 | 0x02, 0x08, 0x04, 0x10, /* Battery */ | 446 | 0x02, 0x08, 0x04, 0x10, /* Battery */ |
447 | 0x04, /* USB */ | 447 | 0x04, /* USB */ |
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c index d2949c8758..42cf016f97 100644 --- a/firmware/drivers/lcd-recorder.c +++ b/firmware/drivers/lcd-recorder.c | |||
@@ -93,7 +93,7 @@ static volatile int scrolling_lines=0; /* Bitpattern of which lines are scrollin | |||
93 | 93 | ||
94 | static void scroll_thread(void); | 94 | static void scroll_thread(void); |
95 | static char scroll_stack[DEFAULT_STACK_SIZE]; | 95 | static char scroll_stack[DEFAULT_STACK_SIZE]; |
96 | static char scroll_name[] = "scroll"; | 96 | static const char scroll_name[] = "scroll"; |
97 | static char scroll_speed = 8; /* updates per second */ | 97 | static char scroll_speed = 8; /* updates per second */ |
98 | static int scroll_delay = HZ/2; /* ticks delay before start */ | 98 | static int scroll_delay = HZ/2; /* ticks delay before start */ |
99 | static char scroll_step = 6; /* pixels per scroll step */ | 99 | static char scroll_step = 6; /* pixels per scroll step */ |
@@ -109,9 +109,9 @@ static int xoffset = 0; /* needed for flip */ | |||
109 | unsigned char lcd_framebuffer[LCD_HEIGHT/8][LCD_WIDTH]; | 109 | unsigned char lcd_framebuffer[LCD_HEIGHT/8][LCD_WIDTH]; |
110 | 110 | ||
111 | /* All zeros and ones bitmaps for area filling */ | 111 | /* All zeros and ones bitmaps for area filling */ |
112 | static unsigned char zeros[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; | 112 | static const unsigned char zeros[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; |
113 | static unsigned char ones[8] = { 0xff, 0xff, 0xff, 0xff, | 113 | static const unsigned char ones[8] = { 0xff, 0xff, 0xff, 0xff, |
114 | 0xff, 0xff, 0xff, 0xff}; | 114 | 0xff, 0xff, 0xff, 0xff}; |
115 | 115 | ||
116 | int lcd_default_contrast(void) | 116 | int lcd_default_contrast(void) |
117 | { | 117 | { |