From 5c59d3ec292061c2bd67f51fdab3d4e349af90e1 Mon Sep 17 00:00:00 2001 From: Tectu Date: Tue, 17 Jul 2012 01:01:57 +0200 Subject: [PATCH] removed lcdSetCursor() in glcd.c --- glcd.c | 17 ----------------- worker.h | 10 +--------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/glcd.c b/glcd.c index 20d6cef3..83b3ebaf 100644 --- a/glcd.c +++ b/glcd.c @@ -22,13 +22,6 @@ static msg_t ThreadGLCDWorker(void *arg) { /* do work here */ switch(msg->action) { - case GLCD_SET_CURSOR: { - EMSG(glcd_msg_set_cursor); - lld_lcdSetCursor(emsg->x, emsg->y); - msg->result = GLCD_DONE; - break; - } - case GLCD_SET_POWERMODE: { EMSG(glcd_msg_powermode); lld_lcdSetPowerMode(emsg->powermode); @@ -138,16 +131,6 @@ uint16_t lcdGetOrientation(void) { return lld_lcdGetOrientation(); } -static void lcdSetCursor(uint16_t x, uint16_t y) { - struct glcd_msg_set_cursor msg; - - msg.action = GLCD_SET_CURSOR; - msg.x = x; - msg.y = y; - - chMsgSend(workerThread, (msg_t)&msg); -} - void lcdSetPowerMode(uint8_t powerMode) { struct glcd_msg_powermode msg; diff --git a/worker.h b/worker.h index 6f3b3725..d08cae9d 100644 --- a/worker.h +++ b/worker.h @@ -3,8 +3,7 @@ #define GLCD_WORKER_SIZE 512 -enum glcd_action { GLCD_SET_CURSOR, - GLCD_SET_POWERMODE, +enum glcd_action { GLCD_SET_POWERMODE, GLCD_SET_ORIENTATION, GLCD_SET_WINDOW, GLCD_FILL_AREA, @@ -30,13 +29,6 @@ struct glcd_msg_base { _glcd_msg_base }; -struct glcd_msg_set_cursor { - _glcd_msg_base - - uint16_t x; - uint16_t y; -}; - struct glcd_msg_powermode { _glcd_msg_base