Changeset 462
- Timestamp:
- 08/01/08 22:29:13 (5 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
include/lolevel.h (modified) (1 diff)
-
platform/ixus950_sd850/kbd.c (modified) (4 diffs)
-
platform/ixus950_sd850/sub/100c/stubs_entry_2.S (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/lolevel.h
r426 r462 38 38 extern void _SleepTask(long msec); 39 39 extern void __attribute__((noreturn)) _ExitTask(); 40 extern int _taskNameToId(char* taskName); // VxWorks only, task's name first letter must be 't', maximum 10 chars total 41 extern void _taskSuspend(int taskId); 42 extern void _taskResume(int taskId); 40 43 extern long _GetPropertyCase(long opt_id, void *buf, long bufsize); 41 44 extern long _SetPropertyCase(long opt_id, void *buf, long bufsize); -
trunk/platform/ixus950_sd850/kbd.c
r325 r462 104 104 void my_kbd_read_keys() 105 105 { 106 static int handle_taskTouchW = 0, isRunning_taskTouchW = 1; 107 106 108 kbd_prev_state[0] = kbd_new_state[0]; 107 109 kbd_prev_state[1] = kbd_new_state[1]; … … 109 111 _kbd_pwr_on(); 110 112 kbd_fetch_data(kbd_new_state); 113 114 if (handle_taskTouchW == 0) { handle_taskTouchW = _taskNameToId("tTouchW"); } 111 115 112 116 if (kbd_process() == 0){ … … 116 120 physw_status[2] = kbd_new_state[2]; 117 121 //physw_status[1] |= alt_mode_key_mask; 122 if (!isRunning_taskTouchW) { _taskResume(handle_taskTouchW); isRunning_taskTouchW = 1; } 118 123 119 124 } else { … … 125 130 physw_status[2] = (kbd_new_state[2] & (~KEYS_MASK2)) | 126 131 (kbd_mod_state[2] & KEYS_MASK2); 132 133 if (isRunning_taskTouchW && !state_kbd_script_run) 134 { _taskSuspend(handle_taskTouchW); isRunning_taskTouchW = 0; } 135 else if (!isRunning_taskTouchW && state_kbd_script_run) 136 { _taskResume(handle_taskTouchW); isRunning_taskTouchW = 1; } 127 137 } 128 138 -
trunk/platform/ixus950_sd850/sub/100c/stubs_entry_2.S
r434 r462 53 53 NHSTUB(ExpCtrlTool_StartContiAE, 0xFF971628) 54 54 NHSTUB(MakeAFScan, 0xFFB0ECB0) 55 NHSTUB(taskNameToId, 0xFF935A64)
Note: See TracChangeset
for help on using the changeset viewer.