diff options
author | Steve Markgraf <steve@steve-m.de> | 2011-01-02 16:54:54 +0100 |
---|---|---|
committer | Steve Markgraf <steve@steve-m.de> | 2011-01-02 16:54:54 +0100 |
commit | 34bbb12b7a020865fc10d0a27b42c19ef11abcc2 (patch) | |
tree | cc5cd02f2840784039336e3a7920278db5f9aa38 | |
parent | 65b078fa20de57fd11f631ef3cf5073047322add (diff) |
display/st7558: remove delays, since the bug in the i2c driver is fixed
Signed-off-by: Steve Markgraf <steve@steve-m.de>
-rw-r--r-- | src/target/firmware/display/st7558.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/target/firmware/display/st7558.c b/src/target/firmware/display/st7558.c index baed9eb0..b92c2de1 100644 --- a/src/target/firmware/display/st7558.c +++ b/src/target/firmware/display/st7558.c @@ -36,7 +36,8 @@ #define Y_ADDR(n) (0x40|((n)&0xf)) #define X_ADDR(n) (0x80|((n)&0x3f)) -static const uint8_t setup[] = { CONTROL_RS_CMD, 0x2e, 0x21, 0x12, 0xc0, 0x0b, 0x20, 0x11, 0x00, 0x40, 0x80 }; +static const uint8_t setup[] = { CONTROL_RS_CMD, 0x2e, 0x21, 0x12, 0xc0, 0x0b, + 0x20, 0x11, 0x00, 0x40, 0x80 }; static const uint8_t home[] = { CONTROL_RS_CMD, Y_ADDR(0), X_ADDR(0) }; /* video modes */ @@ -48,8 +49,6 @@ static const uint8_t off[] = { CONTROL_RS_CMD, 0x20, 0x08 }; static int st7558_write(const uint8_t *data, int len) { int rc = i2c_write(ST7558_SLAVE_ADDR, data[0], 1, data+1, len-1); - /* FIXME: find out why this is needed! */ - delay_ms(10); return rc; } @@ -74,7 +73,6 @@ static void st7558_init(void) calypso_reset_set(RESET_EXT, 0); i2c_init(0,0); - delay_ms(10); st7558_write(setup, sizeof(setup)); st7558_clrscr(); |