lm3s1968: improve the example with GUI enhancements, keypad driver and menu.
[bertos.git] / examples / lm3s1968 / hw / hw_rit128x96.h
index 6e1c933c9f261440af80d75fd2c0c604965c5721..32edf8ee0af8b64db9e341b7cca4fa1b5498c23e 100644 (file)
 #define LCD_WRITE(x)                                                   \
        {                                                               \
                uint32_t _x;                                            \
-               lm3s_ssiWriteFrame(SSI0_BASE, x);                       \
+               while (!lm3s_ssiWriteFrameNonBlocking(SSI0_BASE, x));   \
                /* Dummy read to drain the FIFO */                      \
                while (!lm3s_ssiReadFrameNonBlocking(SSI0_BASE, &_x));  \
-                       cpu_relax();                                    \
        }
 /*@}*/
 
@@ -120,4 +119,10 @@ INLINE void lcd_bus_init(void)
        while (lm3s_ssiReadFrameNonBlocking(SSI0_BASE, &dummy));
 }
 
+/*
+ * XXX: menu stuff requires lcd_blitBimap() function to be defined.
+ * Find a better way to do this.
+ */
+#define rit128x96_lcd_blitBitmap lcd_blitBitmap
+
 #endif /* HW_RIT128x96_H */