added GLCD_DRAW_CHAR dummy in worker thread
This commit is contained in:
parent
5c59d3ec29
commit
7b2e2d0d82
2 changed files with 22 additions and 0 deletions
8
glcd.c
8
glcd.c
|
@ -99,6 +99,14 @@ static msg_t ThreadGLCDWorker(void *arg) {
|
||||||
msg->result = GLCD_DONE;
|
msg->result = GLCD_DONE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case GLCD_DRAW_CHAR: {
|
||||||
|
struct glcd_msg_draw_char *emsg = (struct glcd_msg_draw_char*)msg;
|
||||||
|
/* ToDo */
|
||||||
|
// _doDrawChar(emsg);
|
||||||
|
msg->result = emsg->return_value;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Done, release msg again. */
|
/* Done, release msg again. */
|
||||||
|
|
14
worker.h
14
worker.h
|
@ -14,6 +14,7 @@ enum glcd_action { GLCD_SET_POWERMODE,
|
||||||
GLCD_WRITE_STREAM_START,
|
GLCD_WRITE_STREAM_START,
|
||||||
GLCD_WRITE_STREAM_STOP,
|
GLCD_WRITE_STREAM_STOP,
|
||||||
GLCD_WRITE_STREAM,
|
GLCD_WRITE_STREAM,
|
||||||
|
GLCD_DRAW_CHAR,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum glcd_result { GLCD_DONE,
|
enum glcd_result { GLCD_DONE,
|
||||||
|
@ -108,5 +109,18 @@ struct glcd_msg_write_stream {
|
||||||
uint16_t size;
|
uint16_t size;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct glcd_msg_draw_char {
|
||||||
|
_glcd_msg_base
|
||||||
|
|
||||||
|
uint16_t cx;
|
||||||
|
uint16_t cy;
|
||||||
|
char c;
|
||||||
|
const uint8_t *font;
|
||||||
|
uint16_t color;
|
||||||
|
uint16_t bkcolor;
|
||||||
|
bool_t tpText;
|
||||||
|
uint16_t return_value;
|
||||||
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue