guiInit() priority parameter

This commit is contained in:
Tectu 2012-06-26 13:50:12 +02:00
parent 574f97a7a1
commit bef27b6663
2 changed files with 3 additions and 3 deletions

4
gui.c
View File

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

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