From 192282d6aff3a7fbe7c73e7c181d62955586bbce Mon Sep 17 00:00:00 2001 From: Tectu Date: Mon, 25 Jun 2012 10:52:52 +0200 Subject: guiInit() returns pointer to created thread --- gui.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gui.c') diff --git a/gui.c b/gui.c index 05406373..ec1ee951 100644 --- a/gui.c +++ b/gui.c @@ -70,9 +70,11 @@ static void barThread(struct bar_t *a) { } } -void guiInit(uint16_t updateInterval) { +Thread *guiInit(uint16_t updateInterval) { Thread *tp = NULL; tp = chThdCreateFromHeap(NULL, THD_WA_SIZE(64), HIGHPRIO-1, TouchPadThread, updateInterval); + + return tp; } Thread *guiDrawButton(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, char *str, uint16_t fontColor, uint16_t buttonColor, uint16_t interval, uint8_t *active, uint8_t *state) { -- cgit v1.2.3