diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2008-12-06 16:39:49 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2008-12-06 16:39:49 +0000 |
commit | 3648e8705402ce5a0af2125987f12c884b540eea (patch) | |
tree | 5b360c83821b80704a81eeebc6e25b2224f8e7a7 | |
parent | 8956f2b7f52c0de2588fddc95ff2a81ea1ea2602 (diff) | |
download | rockbox-3648e8705402ce5a0af2125987f12c884b540eea.tar.gz rockbox-3648e8705402ce5a0af2125987f12c884b540eea.zip |
Add small delays before lcd_write_data() and lcd_write_command(). This seems to be needed on some clips (i.e. mine)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19354 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c b/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c index 5021fedb06..c07a85de50 100644 --- a/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c +++ b/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c | |||
@@ -82,6 +82,8 @@ static void ams3525_dbop_init(void) | |||
82 | 82 | ||
83 | void lcd_write_command(int byte) | 83 | void lcd_write_command(int byte) |
84 | { | 84 | { |
85 | volatile int i = 0; | ||
86 | while(i<1) i++; | ||
85 | /* unset D/C# (data or command) */ | 87 | /* unset D/C# (data or command) */ |
86 | GPIOA_PIN(5) = 0; | 88 | GPIOA_PIN(5) = 0; |
87 | 89 | ||
@@ -96,6 +98,8 @@ void lcd_write_command(int byte) | |||
96 | 98 | ||
97 | void lcd_write_data(const fb_data* p_bytes, int count) | 99 | void lcd_write_data(const fb_data* p_bytes, int count) |
98 | { | 100 | { |
101 | volatile int i = 0; | ||
102 | while(i<1) i++; | ||
99 | /* set D/C# (data or command) */ | 103 | /* set D/C# (data or command) */ |
100 | GPIOA_PIN(5) = (1<<5); | 104 | GPIOA_PIN(5) = (1<<5); |
101 | 105 | ||