guiInit() priority parameter
This commit is contained in:
parent
574f97a7a1
commit
bef27b6663
4
gui.c
4
gui.c
@ -102,10 +102,10 @@ static void guiThread(const uint16_t interval) {
|
||||
}
|
||||
}
|
||||
|
||||
Thread *guiInit(uint16_t interval) {
|
||||
Thread *guiInit(uint16_t interval, tprio_t priority) {
|
||||
Thread *tp = NULL;
|
||||
|
||||
tp = chThdCreateFromHeap(NULL, THD_WA_SIZE(10240), HIGHPRIO-1, guiThread, interval);
|
||||
tp = chThdCreateFromHeap(NULL, THD_WA_SIZE(10240), priority, guiThread, interval);
|
||||
|
||||
return tp;
|
||||
}
|
||||
|
2
gui.h
2
gui.h
@ -24,7 +24,7 @@ extern "C" {
|
||||
enum {horizontal, vertical};
|
||||
enum {inactive, active};
|
||||
|
||||
Thread *guiInit(uint16_t interval);
|
||||
Thread *guiInit(uint16_t interval, tprio_t priority);
|
||||
void guiPrintNode(BaseSequentialStream *chp);
|
||||
uint8_t guiDrawButton(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, char *str, uint16_t fontColor, uint16_t buttonColor, uint8_t *active, uint8_t *state);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user