Changeset 345
- Timestamp:
- 03/25/08 08:03:49 (5 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
include/camera.h (modified) (2 diffs)
-
platform/ixus65_sd630/kbd.c (modified) (4 diffs)
-
platform/ixus65_sd630/sub/100a/stubs_entry_2.S (modified) (1 diff)
-
platform/ixus65_sd630/sub/100a/stubs_min.S (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/camera.h
r343 r345 31 31 #undef CAM_SHOW_OSD_IN_SHOOT_MENU // On some cameras Canon shoot menu has additional functionality and useful in this case to see CHDK OSD in this mode 32 32 #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 // Camera can unlock optical zoom in video (if it is locked) 33 #undef CAM_FEATURE_FEATHER // Cameras with "feather" or touch wheel. 33 34 34 35 #undef CAM_CONSOLE_LOG_ENABLED // Development: internal camera stdout -> A/stdout.txt 36 35 37 36 38 //---------------------------------------------------------- … … 265 267 #define CAM_SHOW_OSD_IN_SHOOT_MENU 1 266 268 #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 269 #define CAM_FEATURE_FEATHER 1 267 270 268 271 #define CAM_CONSOLE_LOG_ENABLED 1 -
trunk/platform/ixus65_sd630/kbd.c
r316 r345 8 8 #define NEW_SS (0x2000) 9 9 #define SD_READONLY_FLAG (0x20000) 10 11 #define FEATURE_FEATHER 112 10 13 11 typedef struct { … … 96 94 } 97 95 98 #if FEATURE_FEATHER 99 extern int touch_keys_angle; 100 extern int * touch_keys_sema; 101 int touch_keys_sema_stored; 96 #if CAM_FEATURE_FEATHER 97 //extern int touch_keys_angle; 102 98 #endif 103 99 … … 116 112 kbd_new_state[1] = physw_status[1]; 117 113 kbd_new_state[2] = physw_status[2]; 114 115 static int taskFeatherID = 0; 116 117 if (taskFeatherID == 0) { 118 taskFeatherID = taskNameToId("tFeather"); 119 printf("taskFeatherID:%x\n", taskFeatherID); 120 } 121 122 118 123 119 124 /* … … 151 156 if (kbd_process() == 0){ 152 157 // leave it ... 153 #if FEATURE_FEATHER 154 if (*touch_keys_sema == 0) { 155 *touch_keys_sema = touch_keys_sema_stored; 156 } 158 #if CAM_FEATURE_FEATHER 159 taskResume(taskFeatherID); 157 160 #endif 158 161 } else { 159 162 // Drop platform keys to none, and simulate ordered key presses 160 163 physw_status[2] = (physw_status[2] & (~KEY_MASK)) | (kbd_mod_state & KEY_MASK); 161 #if FEATURE_FEATHER 162 if (*touch_keys_sema != 0) { 163 touch_keys_sema_stored = *touch_keys_sema; 164 *touch_keys_sema = 0; 165 } 164 #if CAM_FEATURE_FEATHER 165 taskSuspend(taskFeatherID); 166 166 167 // We still need this sema when simulating key presses 167 168 if (kbd_mod_state != KEY_MASK) { 168 *touch_keys_sema = touch_keys_sema_stored; 169 } 169 taskResume(taskFeatherID); 170 } 171 170 172 #endif 171 173 } -
trunk/platform/ixus65_sd630/sub/100a/stubs_entry_2.S
r343 r345 24 24 25 25 26 NHSTUB(taskName, 0xFFB22A50) 27 NHSTUB(taskIdListGet, 0xFFB22B58) 28 26 NSTUB(taskName, 0xFFB22A50) 27 NSTUB(taskIdListGet, 0xFFB22B58) 28 NSTUB(taskResume, 0xFFB22E34) 29 NSTUB(taskSuspend, 0xFFB22C60) 30 NSTUB(taskNameToId, 0xFFB22A74) 29 31 30 32 // These two are indistinguishable!!!! -
trunk/platform/ixus65_sd630/sub/100a/stubs_min.S
r343 r345 20 20 // Could be retrieved from 'PhySW' Task function 21 21 DEF(touch_keys_angle, 0x0000E8C8) 22 // Semaphore address to disable Feather processing23 DEF(touch_keys_sema, 0x0000E874)24 25 26 22 27 23 DEF(zoom_busy, 0x79E20)
Note: See TracChangeset
for help on using the changeset viewer.