diff options
| author | Tectu <joel@unormal.org> | 2012-08-13 04:33:44 -0700 |
|---|---|---|
| committer | Tectu <joel@unormal.org> | 2012-08-13 04:33:44 -0700 |
| commit | dd0aa5db1cf52f181b465571e8a492169a2efc2a (patch) | |
| tree | 02777f744eb9ed2605fabd16c5872843d9e42f15 /old/console.h | |
| parent | bcccde53e6af28dcc13756516ed2806b64c60da3 (diff) | |
| parent | 3830d082b303da81cb75f911c57b9d19c6c99487 (diff) | |
| download | uGFX-dd0aa5db1cf52f181b465571e8a492169a2efc2a.tar.gz uGFX-dd0aa5db1cf52f181b465571e8a492169a2efc2a.tar.bz2 uGFX-dd0aa5db1cf52f181b465571e8a492169a2efc2a.zip | |
Merge pull request #40 from trsaunders/upstream
update console.c to use gdisp code
Diffstat (limited to 'old/console.h')
| -rw-r--r-- | old/console.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/old/console.h b/old/console.h index f76c5adf..edd8498e 100644 --- a/old/console.h +++ b/old/console.h @@ -21,7 +21,10 @@ #ifndef CONSOLE_H #define CONSOLE_H -#include "glcd.h" +#include "ch.h" +#include "hal.h" + +#include "gdisp.h" /** * @brief Structure representing a GLCD driver. @@ -58,13 +61,13 @@ struct GLCDConsole { /* font */ font_t font; /* lcd area to use */ - uint16_t x0,y0; + coord_t x0,y0; /* current cursor position, in pixels */ - uint16_t cx,cy; + coord_t cx,cy; /* console size in pixels */ - uint16_t sx,sy; + coord_t sx,sy; /* foreground and background colour */ - uint16_t bkcolor, color; + pixel_t bkcolor, color; /* font size in pixels */ uint8_t fy; }; @@ -73,9 +76,9 @@ struct GLCDConsole { extern "C" { #endif -msg_t lcdConsoleInit(GLCDConsole *console, uint16_t x0, uint16_t y0, uint16_t width, uint16_t height, font_t font, uint16_t bkcolor, uint16_t color); +msg_t lcdConsoleInit(GLCDConsole *console, coord_t x0, coord_t y0, coord_t width, coord_t height, font_t font, pixel_t bkcolor, pixel_t color); msg_t lcdConsolePut(GLCDConsole *console, char c); -msg_t lcdConsoleWrite(GLCDConsole *console, uint8_t *bp, size_t n); +msg_t lcdConsoleWrite(GLCDConsole *console, char *bp, size_t n); #ifdef __cplusplus } |
