diff options
author | Mateusz Tomaszkiewicz <silentdemon@gmail.com> | 2013-02-13 22:02:13 +0100 |
---|---|---|
committer | Mateusz Tomaszkiewicz <silentdemon@gmail.com> | 2013-02-13 22:02:13 +0100 |
commit | dd79671730569225303b8ba7f602ab2ea43f5396 (patch) | |
tree | e17ff7ce40e1d6dfefc315c61e706f85ea68105b | |
parent | e8ce8a36fbebe1c119ee1aa56941cc59c1518f51 (diff) | |
download | uGFX-dd79671730569225303b8ba7f602ab2ea43f5396.tar.gz uGFX-dd79671730569225303b8ba7f602ab2ea43f5396.tar.bz2 uGFX-dd79671730569225303b8ba7f602ab2ea43f5396.zip |
SSD2119: GDISP_LLD() macro removal
-rw-r--r-- | drivers/gdisp/SSD2119/gdisp_lld.c | 16 | ||||
-rw-r--r-- | drivers/gdisp/SSD2119/gdisp_lld_config.h | 1 |
2 files changed, 8 insertions, 9 deletions
diff --git a/drivers/gdisp/SSD2119/gdisp_lld.c b/drivers/gdisp/SSD2119/gdisp_lld.c index 0f0fd0fc..15ae85ec 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld.c +++ b/drivers/gdisp/SSD2119/gdisp_lld.c @@ -160,7 +160,7 @@ static __inline void reset_viewport(void) { *
* @notapi
*/
-bool_t GDISP_LLD(init)(void) {
+bool_t lld_gdisp_init(void) {
/* Initialise your display */
init_board();
@@ -287,7 +287,7 @@ bool_t GDISP_LLD(init)(void) { *
* @notapi
*/
-void GDISP_LLD(drawpixel)(coord_t x, coord_t y, color_t color) {
+void lld_gdisp_draw_pixel(coord_t x, coord_t y, color_t color) {
#if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP
if (x < GDISP.clipx0 || y < GDISP.clipy0 || x >= GDISP.clipx1 || y >= GDISP.clipy1) return;
#endif
@@ -324,7 +324,7 @@ void GDISP_LLD(drawpixel)(coord_t x, coord_t y, color_t color) { *
* @notapi
*/
- void GDISP_LLD(clear)(color_t color) {
+ void lld_gdisp_clear(color_t color) {
unsigned i;
acquire_bus();
@@ -349,7 +349,7 @@ void GDISP_LLD(drawpixel)(coord_t x, coord_t y, color_t color) { *
* @notapi
*/
- void GDISP_LLD(fillarea)(coord_t x, coord_t y, coord_t cx, coord_t cy, color_t color) {
+ void lld_gdisp_fill_area(coord_t x, coord_t y, coord_t cx, coord_t cy, color_t color) {
unsigned i, area;
#if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP
@@ -385,7 +385,7 @@ void GDISP_LLD(drawpixel)(coord_t x, coord_t y, color_t color) { *
* @notapi
*/
- void GDISP_LLD(blitareaex)(coord_t x, coord_t y, coord_t cx, coord_t cy, coord_t srcx, coord_t srcy, coord_t srccx, const pixel_t *buffer) {
+ void lld_gdisp_blit_area_ex(coord_t x, coord_t y, coord_t cx, coord_t cy, coord_t srcx, coord_t srcy, coord_t srccx, const pixel_t *buffer) {
coord_t endx, endy;
unsigned lg;
@@ -424,7 +424,7 @@ void GDISP_LLD(drawpixel)(coord_t x, coord_t y, color_t color) { *
* @notapi
*/
- color_t GDISP_LLD(getpixelcolor)(coord_t x, coord_t y) {
+ color_t lld_gdisp_get_pixel_color(coord_t x, coord_t y) {
color_t color;
#if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP
@@ -457,7 +457,7 @@ void GDISP_LLD(drawpixel)(coord_t x, coord_t y, color_t color) { *
* @notapi
*/
- void GDISP_LLD(verticalscroll)(coord_t x, coord_t y, coord_t cx, coord_t cy, int lines, color_t bgcolor) {
+ void lld_gdisp_vertical_scroll(coord_t x, coord_t y, coord_t cx, coord_t cy, int lines, color_t bgcolor) {
static color_t buf[((GDISP_SCREEN_HEIGHT > GDISP_SCREEN_WIDTH ) ? GDISP_SCREEN_HEIGHT : GDISP_SCREEN_WIDTH)];
coord_t row0, row1;
unsigned i, gap, abslines, j;
@@ -533,7 +533,7 @@ void GDISP_LLD(drawpixel)(coord_t x, coord_t y, color_t color) { *
* @notapi
*/
- void GDISP_LLD(control)(unsigned what, void *value) {
+ void lld_gdisp_control(unsigned what, void *value) {
switch(what) {
case GDISP_CONTROL_POWER:
if (GDISP.Powermode == (gdisp_powermode_t)value)
diff --git a/drivers/gdisp/SSD2119/gdisp_lld_config.h b/drivers/gdisp/SSD2119/gdisp_lld_config.h index ee5b5f1b..4a723d8f 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld_config.h +++ b/drivers/gdisp/SSD2119/gdisp_lld_config.h @@ -36,7 +36,6 @@ /*===========================================================================*/
#define GDISP_DRIVER_NAME "SSD2119"
-#define GDISP_LLD(x) gdisp_lld_##x##_SSD2119
#define GDISP_HARDWARE_CLEARS TRUE
#define GDISP_HARDWARE_FILLS TRUE
|