summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c')
-rw-r--r--firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c b/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c
index 932ce2bada..624466b1a6 100644
--- a/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c
+++ b/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c
@@ -31,7 +31,7 @@ static bool hold_button = false;
31#ifndef BOOTLOADER 31#ifndef BOOTLOADER
32static bool hold_button_old = false; 32static bool hold_button_old = false;
33#endif 33#endif
34static short _dbop_din = 0; 34static unsigned short _dbop_din = 0;
35 35
36#define WHEEL_REPEAT_INTERVAL (HZ/5) 36#define WHEEL_REPEAT_INTERVAL (HZ/5)
37/* in the lcd driver */ 37/* in the lcd driver */
@@ -48,7 +48,7 @@ bool button_hold(void)
48} 48}
49 49
50#if !defined(BOOTLOADER) && defined(HAVE_SCROLLWHEEL) 50#if !defined(BOOTLOADER) && defined(HAVE_SCROLLWHEEL)
51static void scrollwheel(short dbop_din) 51static void scrollwheel(unsigned short dbop_din)
52{ 52{
53 /* current wheel values, parsed from dbop and the resulting button */ 53 /* current wheel values, parsed from dbop and the resulting button */
54 unsigned wheel_value = 0; 54 unsigned wheel_value = 0;
@@ -132,7 +132,7 @@ static void scrollwheel(short dbop_din)
132} 132}
133#endif /* !defined(BOOTLOADER) && defined(HAVE_SCROLLWHEEL) */ 133#endif /* !defined(BOOTLOADER) && defined(HAVE_SCROLLWHEEL) */
134 134
135short button_read_dbop(void) 135unsigned short button_read_dbop(void)
136{ 136{
137 /*write a red pixel */ 137 /*write a red pixel */
138 if (!lcd_button_support()) 138 if (!lcd_button_support())
@@ -161,7 +161,7 @@ short button_read_dbop(void)
161 return _dbop_din; 161 return _dbop_din;
162} 162}
163 163
164short button_dbop_data(void) 164unsigned short button_dbop_data(void)
165{ 165{
166 return _dbop_din; 166 return _dbop_din;
167} 167}
@@ -173,7 +173,7 @@ int button_read_device(void)
173{ 173{
174 int btn = BUTTON_NONE; 174 int btn = BUTTON_NONE;
175 /* read buttons from dbop */ 175 /* read buttons from dbop */
176 short dbop = button_read_dbop(); 176 unsigned short dbop = button_read_dbop();
177 177
178 /* hold button */ 178 /* hold button */
179 if(dbop & (1<<12)) 179 if(dbop & (1<<12))