From 82902a8adef973177d3e5d63c42e1b5ca2d2fecd Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Thu, 4 Jun 2009 19:53:39 +0000 Subject: Make more effective use of the DBOP FIFO for the sansa clip. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21190 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'firmware/target') diff --git a/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c b/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c index c0df1f766e..5ad6c887bd 100644 --- a/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c +++ b/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c @@ -111,10 +111,11 @@ void lcd_write_data(const fb_data* p_bytes, int count) p_bytes++; /* next packed pixels */ - /* While push fifo is not empty */ - while ((DBOP_STAT & (1<<10)) == 0) - ; + /* Wait if push fifo is full */ + while ((DBOP_STAT & (1<<6)) != 0); } + /* While push fifo is not empty */ + while ((DBOP_STAT & (1<<10)) == 0); } -- cgit v1.2.3