removed lcdSetCursor() in glcd.c
This commit is contained in:
parent
17f169845a
commit
5c59d3ec29
2 changed files with 1 additions and 26 deletions
17
glcd.c
17
glcd.c
|
@ -22,13 +22,6 @@ static msg_t ThreadGLCDWorker(void *arg) {
|
||||||
|
|
||||||
/* do work here */
|
/* do work here */
|
||||||
switch(msg->action) {
|
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: {
|
case GLCD_SET_POWERMODE: {
|
||||||
EMSG(glcd_msg_powermode);
|
EMSG(glcd_msg_powermode);
|
||||||
lld_lcdSetPowerMode(emsg->powermode);
|
lld_lcdSetPowerMode(emsg->powermode);
|
||||||
|
@ -138,16 +131,6 @@ uint16_t lcdGetOrientation(void) {
|
||||||
return lld_lcdGetOrientation();
|
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) {
|
void lcdSetPowerMode(uint8_t powerMode) {
|
||||||
struct glcd_msg_powermode msg;
|
struct glcd_msg_powermode msg;
|
||||||
|
|
||||||
|
|
10
worker.h
10
worker.h
|
@ -3,8 +3,7 @@
|
||||||
|
|
||||||
#define GLCD_WORKER_SIZE 512
|
#define GLCD_WORKER_SIZE 512
|
||||||
|
|
||||||
enum glcd_action { GLCD_SET_CURSOR,
|
enum glcd_action { GLCD_SET_POWERMODE,
|
||||||
GLCD_SET_POWERMODE,
|
|
||||||
GLCD_SET_ORIENTATION,
|
GLCD_SET_ORIENTATION,
|
||||||
GLCD_SET_WINDOW,
|
GLCD_SET_WINDOW,
|
||||||
GLCD_FILL_AREA,
|
GLCD_FILL_AREA,
|
||||||
|
@ -30,13 +29,6 @@ struct glcd_msg_base {
|
||||||
_glcd_msg_base
|
_glcd_msg_base
|
||||||
};
|
};
|
||||||
|
|
||||||
struct glcd_msg_set_cursor {
|
|
||||||
_glcd_msg_base
|
|
||||||
|
|
||||||
uint16_t x;
|
|
||||||
uint16_t y;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct glcd_msg_powermode {
|
struct glcd_msg_powermode {
|
||||||
_glcd_msg_base
|
_glcd_msg_base
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue