kernel: preemptive and cooperative scheduler refactoring.
[bertos.git] / bertos / drv / lcd_rit128x96.c
index 7e538327f2a008aed1b2875e5e1ab9a65ae2d732..9922b6af77dc994cbfd1399235d20d01562d091c 100644 (file)
@@ -106,18 +106,7 @@ static const uint8_t horizontal_inc[] =
 static void lcd_dataWrite(const uint8_t *buf, size_t count)
 {
        while (count--)
-       {
-#if !CONFIG_LCD_4BIT
                LCD_WRITE(*buf++);
-               /* Dummy read to drain the FIFO */
-               (void)LCD_READ;
-#else
-               LCD_WRITE_H(*buf);
-               LCD_WRITE_L(*buf++);
-               (void)LCD_READ_H;
-               (void)LCD_READ_L;
-#endif
-       }
 }
 
 /* Turn on the OLED display */
@@ -142,7 +131,7 @@ void rit128x96_lcd_off(void)
 void rit128x96_lcd_blitBitmap(const Bitmap *bm)
 {
        uint8_t lcd_row[bm->width / 2];
-       uint8_t buffer[8];
+       uint8_t buffer[3];
        uint8_t mask;
        int i, l;