diff options
Diffstat (limited to 'firmware/target/arm/as3525/sansa-e200v2')
-rw-r--r-- | firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c | 10 | ||||
-rw-r--r-- | firmware/target/arm/as3525/sansa-e200v2/button-target.h | 2 |
2 files changed, 6 insertions, 6 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 |
32 | static bool hold_button_old = false; | 32 | static bool hold_button_old = false; |
33 | #endif | 33 | #endif |
34 | static short _dbop_din = 0; | 34 | static 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) |
51 | static void scrollwheel(short dbop_din) | 51 | static 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 | ||
135 | short button_read_dbop(void) | 135 | unsigned 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 | ||
164 | short button_dbop_data(void) | 164 | unsigned 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)) |
diff --git a/firmware/target/arm/as3525/sansa-e200v2/button-target.h b/firmware/target/arm/as3525/sansa-e200v2/button-target.h index e09743d89c..b1feb58cad 100644 --- a/firmware/target/arm/as3525/sansa-e200v2/button-target.h +++ b/firmware/target/arm/as3525/sansa-e200v2/button-target.h | |||
@@ -30,7 +30,7 @@ | |||
30 | bool button_hold(void); | 30 | bool button_hold(void); |
31 | void button_init_device(void); | 31 | void button_init_device(void); |
32 | int button_read_device(void); | 32 | int button_read_device(void); |
33 | short button_read_dbop(void); | 33 | unsigned short button_read_dbop(void); |
34 | 34 | ||
35 | /* Sandisk Sansa E200 button codes */ | 35 | /* Sandisk Sansa E200 button codes */ |
36 | 36 | ||