removed lcdSetCursor() in glcd.c

ugfx_release_2.6
Tectu 2012-07-17 01:01:57 +02:00
parent 17f169845a
commit 5c59d3ec29
2 changed files with 1 additions and 26 deletions

17
glcd.c
View File

@ -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;

View File

@ -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