Changeset 330
- Timestamp:
- 03/15/08 08:56:07 (5 years ago)
- File:
-
- 1 edited
-
trunk/platform/ixus700_sd500/kbd.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/platform/ixus700_sd500/kbd.c
r251 r330 1 1 #include "lolevel.h" 2 2 #include "platform.h" 3 #include "conf.h" 3 4 #include "core.h" 4 5 #include "keyboard.h" … … 16 17 static long last_kbd_key = 0; 17 18 static int usb_power=0; 19 static int remote_key, remote_count; 18 20 19 21 #define NEW_SS (0x2000) … … 246 248 // for clear USB power flag - return status &~USB_MASK; 247 249 // for get USB power flag read status & USB_MASK 250 251 if (conf.remote_enable) { 252 remote_key = (status & USB_MASK)==USB_MASK; 253 if (remote_key) 254 remote_count += 1; 255 else if (remote_count) { 256 usb_power = remote_count; 257 remote_count = 0; 258 } 259 return status &~USB_MASK; 260 } 248 261 return status; 262 } 263 264 int get_usb_power(int edge) 265 { 266 int x; 267 268 if (edge) return remote_key; 269 x = usb_power; 270 usb_power = 0; 271 return x; 249 272 } 250 273 … … 272 295 }; 273 296 274 int get_usb_power(int edge) {return usb_power;}
Note: See TracChangeset
for help on using the changeset viewer.