diff options
author | wdenk <wdenk> | 2003-05-20 20:49:01 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-05-20 20:49:01 +0000 |
commit | 82226bf4d2fe87076d7f5d7e2677fdd5d0e35fc2 (patch) | |
tree | 5d03167fc333d401f2eea37dcad640b77516d4d3 /board/trab | |
parent | 7f70e85309c6367138c0ebd14abdd49964b8d50a (diff) |
* Add support for arbitrary bitmaps for TRAB's VFD command
* Patch by Christian Geißinger, 19 May 2002:
On TRAB: wait until the dummy byte has been completely sent
Diffstat (limited to 'board/trab')
-rw-r--r-- | board/trab/trab.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/trab/trab.c b/board/trab/trab.c index e3e8553eb7..6c9971f3b6 100644 --- a/board/trab/trab.c +++ b/board/trab/trab.c @@ -33,7 +33,7 @@ #ifdef CFG_BRIGHTNESS static void spi_init(void); static void wait_transmit_done(void); -static void tsc2000_write(unsigned int page, unsigned int reg, +static void tsc2000_write(unsigned int page, unsigned int reg, unsigned int data); static void tsc2000_set_brightness(void); #endif @@ -328,6 +328,7 @@ static void spi_init(void) for (i = 0; i < 10; i++) { rSPTDAT = 0xFF; } + wait_transmit_done(); } static void wait_transmit_done(void) @@ -335,7 +336,7 @@ static void wait_transmit_done(void) while (!(rSPSTA & 0x01)); /* wait until transfer is done */ } -static void tsc2000_write(unsigned int page, unsigned int reg, +static void tsc2000_write(unsigned int page, unsigned int reg, unsigned int data) { unsigned int command; |