aboutsummaryrefslogtreecommitdiffstats
path: root/gui.c
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-06-09 19:29:56 +0200
committerTectu <joel@unormal.org>2012-06-09 19:29:56 +0200
commit1a6e65badb844a6aa32aa9975f14032cfd36d54d (patch)
treeccc77d026ef2fb379ac381384d3ff05cb9361c19 /gui.c
parentab38112ed9f9a67a9777d5eeabddc7fe81f14334 (diff)
downloaduGFX-1a6e65badb844a6aa32aa9975f14032cfd36d54d.tar.gz
uGFX-1a6e65badb844a6aa32aa9975f14032cfd36d54d.tar.bz2
uGFX-1a6e65badb844a6aa32aa9975f14032cfd36d54d.zip
cleanup
Diffstat (limited to 'gui.c')
-rw-r--r--gui.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/gui.c b/gui.c
index 510514a4..1d162d54 100644
--- a/gui.c
+++ b/gui.c
@@ -7,6 +7,17 @@
uint16_t x, y;
unsigned char buffer[32];
+static void TouchPadThread(uint16_t updateInterval) {
+ chRegSetThreadName("GUI");
+
+ while(TRUE) {
+ x = tpReadX();
+ y = tpReadY();
+
+ chThdSleepMilliseconds(updateInterval);
+ }
+}
+
static void buttonThread(struct button_t *a) {
uint16_t x0, y0, x1, y1;
@@ -25,17 +36,6 @@ static void buttonThread(struct button_t *a) {
}
}
-static void TouchPadThread(uint16_t updateInterval) {
- chRegSetThreadName("GUI");
-
- while(TRUE) {
- x = tpReadX();
- y = tpReadY();
-
- chThdSleepMilliseconds(updateInterval);
- }
-}
-
static void barThread(struct bar_t *a) {
uint16_t percent = 0, value = 0, value_old = 0;