diff options
author | Tectu <joel@unormal.org> | 2012-06-17 01:43:06 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-06-17 01:43:06 +0200 |
commit | a69832f4ec69abc9bcecc3f391baf07794164c08 (patch) | |
tree | fb455d1d1b77ede922f3ea527d0d7c8df602ea70 | |
parent | 53d24f51c056f6f942190757becd6cb614c2832f (diff) | |
download | uGFX-a69832f4ec69abc9bcecc3f391baf07794164c08.tar.gz uGFX-a69832f4ec69abc9bcecc3f391baf07794164c08.tar.bz2 uGFX-a69832f4ec69abc9bcecc3f391baf07794164c08.zip |
added static lcdWriteStream
-rw-r--r-- | drivers/lcd/ssd1289_lld.c | 4 | ||||
-rw-r--r-- | drivers/lcd/ssd1289_lld.h | 1 | ||||
-rw-r--r-- | glcd.c | 4 |
3 files changed, 9 insertions, 0 deletions
diff --git a/drivers/lcd/ssd1289_lld.c b/drivers/lcd/ssd1289_lld.c index 6d20aa48..7a9109ad 100644 --- a/drivers/lcd/ssd1289_lld.c +++ b/drivers/lcd/ssd1289_lld.c @@ -71,6 +71,10 @@ static __inline void lcdDelay(uint16_t us) { chThdSleepMicroseconds(us); } +__inline lld_lcdWriteStream(uint16_t *buffer, uint16_t size) { + +} + void lld_lcdSetCursor(uint16_t x, uint16_t y) { if(PORTRAIT) { lld_lcdWriteReg(0x004e, x); diff --git a/drivers/lcd/ssd1289_lld.h b/drivers/lcd/ssd1289_lld.h index 1a98356e..19235d2f 100644 --- a/drivers/lcd/ssd1289_lld.h +++ b/drivers/lcd/ssd1289_lld.h @@ -16,6 +16,7 @@ #define Clr_RD palClearPad(LCD_CMD_PORT, LCD_RD); void lld_lcdInit(void); +void lld_lcdWriteStream(uint16_t *buffer, uint16_t size); void lld_lcdSetCursor(uint16_t x, uint16_t y); void lld_lcdSetOrientation(uint8_t newOrientation); void lld_lcdSetWindow(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1); @@ -59,6 +59,10 @@ void lcdDrawPixel(uint16_t x, uint16_t y, uint16_t color) { lld_lcdDrawPixel(x, y, color); } +static void lcdWriteStream(uint16_t *buffer, uint16_t size) { + lld_lcdWriteStream(buffer, size); +} + void lcdDrawLine(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color) { int16_t dy, dx; int16_t addx=1, addy=1; |