aboutsummaryrefslogtreecommitdiffstats
path: root/src/ginput/toggle.c
diff options
context:
space:
mode:
authorAndrew Hannam <andrewh@inmarket.com.au>2013-05-24 08:41:48 -0700
committerAndrew Hannam <andrewh@inmarket.com.au>2013-05-24 08:41:48 -0700
commitf0569e2555b3a7f2afe05cc42e4dd0982b179167 (patch)
treee85c90a4f21974b706315d64209021e0b2bde764 /src/ginput/toggle.c
parent5f2a32714cda6bcfc8829e61895def2f627e1b8f (diff)
parent7fbfde42aabbcd30cffba2fba35158236c0a6c6c (diff)
downloaduGFX-f0569e2555b3a7f2afe05cc42e4dd0982b179167.tar.gz
uGFX-f0569e2555b3a7f2afe05cc42e4dd0982b179167.tar.bz2
uGFX-f0569e2555b3a7f2afe05cc42e4dd0982b179167.zip
Merge pull request #73 from inmarket/master
GOS module for OS independance, GMISC additions
Diffstat (limited to 'src/ginput/toggle.c')
-rw-r--r--src/ginput/toggle.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/ginput/toggle.c b/src/ginput/toggle.c
index a2474c3e..2784a6ef 100644
--- a/src/ginput/toggle.c
+++ b/src/ginput/toggle.c
@@ -1,9 +1,9 @@
-/*
- * This file is subject to the terms of the GFX License, v1.0. If a copy of
- * the license was not distributed with this file, you can obtain one at:
- *
- * http://chibios-gfx.com/license.html
- */
+/*
+ * This file is subject to the terms of the GFX License, v1.0. If a copy of
+ * the license was not distributed with this file, you can obtain one at:
+ *
+ * http://chibios-gfx.com/license.html
+ */
/**
* @file src/ginput/toggle.c
@@ -13,8 +13,6 @@
* @ingroup GINPUT
* @{
*/
-#include "ch.h"
-#include "hal.h"
#include "gfx.h"
#if (GFX_USE_GINPUT && GINPUT_NEED_TOGGLE) || defined(__DOXYGEN__)
@@ -134,7 +132,7 @@ void ginputInvertToggle(uint16_t instance, bool_t invert) {
bool_t ginputGetToggleStatus(uint16_t instance, GEventToggle *ptoggle) {
// Win32 threads don't seem to recognise priority and/or pre-emption
// so we add a sleep here to prevent 100% polled applications from locking up.
- chThdSleepMilliseconds(1);
+ gfxSleepMilliseconds(1);
if (instance >= GINPUT_TOGGLE_NUM_PORTS)
return FALSE;