Changeset 1201
- Timestamp:
- 06/08/11 07:48:44 (2 years ago)
- Location:
- trunk
- Files:
-
- 12 added
- 7 edited
-
Makefile (modified) (3 diffs)
-
makefile.inc (modified) (1 diff)
-
platform/sx130is/platform_camera.h (modified) (1 diff)
-
platform/sx130is/sub/101c/boot.c (modified) (1 diff)
-
platform/sx130is/sub/101c/lib.c (modified) (1 diff)
-
platform/sx130is/sub/101c/makefile.inc (modified) (2 diffs)
-
platform/sx130is/sub/101c/stubs_entry_2.S (modified) (5 diffs)
-
platform/sx130is/sub/101d (added)
-
platform/sx130is/sub/101d/Makefile (added)
-
platform/sx130is/sub/101d/boot.c (added)
-
platform/sx130is/sub/101d/capt_seq.c (added)
-
platform/sx130is/sub/101d/lib.c (added)
-
platform/sx130is/sub/101d/makefile.inc (added)
-
platform/sx130is/sub/101d/movie_rec.c (added)
-
platform/sx130is/sub/101d/stubs_asm.h (added)
-
platform/sx130is/sub/101d/stubs_auto.S (added)
-
platform/sx130is/sub/101d/stubs_entry.S (added)
-
platform/sx130is/sub/101d/stubs_entry_2.S (added)
-
platform/sx130is/sub/101d/stubs_min.S (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r1200 r1201 234 234 $(MAKE) -s --no-print-directory PLATFORM=sx110is PLATFORMSUB=100b NO_INC_BUILD=1 firzipsub 235 235 #$(MAKE) -s --no-print-directory PLATFORM=sx130is PLATFORMSUB=101c NO_INC_BUILD=1 firzipsub 236 #$(MAKE) -s --no-print-directory PLATFORM=sx130is PLATFORMSUB=101d NO_INC_BUILD=1 firzipsub 236 237 $(MAKE) -s --no-print-directory PLATFORM=sx200is PLATFORMSUB=100c NO_INC_BUILD=1 firzipsub 237 238 $(MAKE) -s --no-print-directory PLATFORM=ixus90_sd790 PLATFORMSUB=100c NO_INC_BUILD=1 firzipsub … … 418 419 $(MAKE) -s --no-print-directory PLATFORM=sx110is PLATFORMSUB=100b NO_INC_BUILD=1 firzipsubcomplete 419 420 #$(MAKE) -s --no-print-directory PLATFORM=sx130is PLATFORMSUB=101c NO_INC_BUILD=1 firzipsubcomplete 421 #$(MAKE) -s --no-print-directory PLATFORM=sx130is PLATFORMSUB=101d NO_INC_BUILD=1 firzipsubcomplete 420 422 $(MAKE) -s --no-print-directory PLATFORM=sx200is PLATFORMSUB=100c NO_INC_BUILD=1 firzipsubcomplete 421 423 $(MAKE) -s --no-print-directory PLATFORM=ixus90_sd790 PLATFORMSUB=100c NO_INC_BUILD=1 firzipsubcomplete … … 647 649 $(MAKE) -s --no-print-directory PLATFORM=sx110is PLATFORMSUB=100b NO_INC_BUILD=1 clean 648 650 #$(MAKE) -s --no-print-directory PLATFORM=sx130is PLATFORMSUB=101c NO_INC_BUILD=1 clean 651 #$(MAKE) -s --no-print-directory PLATFORM=sx130is PLATFORMSUB=101d NO_INC_BUILD=1 clean 649 652 $(MAKE) -s --no-print-directory PLATFORM=sx200is PLATFORMSUB=100c NO_INC_BUILD=1 clean 650 653 $(MAKE) -s --no-print-directory PLATFORM=ixus90_sd790 PLATFORMSUB=100c NO_INC_BUILD=1 clean -
trunk/makefile.inc
r1200 r1201 33 33 #PLATFORM=sx130is 34 34 #PLATFORMSUB=101c 35 36 #PLATFORM=sx130is 37 #PLATFORMSUB=101d 35 38 36 39 #PLATFORM=sx200is -
trunk/platform/sx130is/platform_camera.h
r1140 r1201 76 76 77 77 #undef ASPECT_XCORRECTION 78 #define ASPECT_XCORRECTION(x) (( ((x)<<3)+(x))>>2) //correction x*screen_buffer_width/screen_width = x*720/320 = x*9/4 = (x<<3 + x)>>278 #define ASPECT_XCORRECTION(x) ((x)<<1) 79 79 80 80 #undef ASPECT_GRID_XCORRECTION 81 #define ASPECT_GRID_XCORRECTION(x) ( (((x)<<3)/9)) //grids are designed on a 360x240 basis and screen is 320x240, we need x*320/360=x*8/981 #define ASPECT_GRID_XCORRECTION(x) (x) //grids are designed on a 360x240 basis and screen is 320x240, we need x*320/360=x*8/9 82 82 #undef ASPECT_GRID_YCORRECTION 83 #define ASPECT_GRID_YCORRECTION(y) ( (y)) //y correction for grids made on a 360x240 As the buffer is 720x240 we have no correction here.83 #define ASPECT_GRID_YCORRECTION(y) (y) //y correction for grids made on a 360x240 As the buffer is 720x240 we have no correction here. 84 84 85 85 #undef ASPECT_VIEWPORT_XCORRECTION 86 86 #define ASPECT_VIEWPORT_XCORRECTION(x) ASPECT_GRID_XCORRECTION(x) 87 87 #undef ASPECT_VIEWPORT_YCORRECTION 88 #define ASPECT_VIEWPORT_YCORRECTION(y) ( (y))88 #define ASPECT_VIEWPORT_YCORRECTION(y) (y) 89 89 90 90 //games mappings -
trunk/platform/sx130is/sub/101c/boot.c
r1128 r1201 20 20 -----------------------------------------------------------------------*/ 21 21 22 extern void task_CaptSeq(); 23 extern void task_InitFileModules(); 24 extern void task_RotaryEncoder(); 25 extern void task_MovieRecord(); 26 extern void task_ExpDrv(); 27 22 28 void taskCreateHook(context_t **context) { 23 task_t *tcb=(task_t*)((char*)context-offsetof(task_t, context)); 24 25 // physw is done directly to avoid wasting stack space 26 // if(!_strcmp(tcb->name, "PhySw")) tcb->entry = (void*)mykbd_task; 27 if(!_strcmp(tcb->name, "CaptSeqTask")) tcb->entry = (void*)capt_seq_task; 28 if(!_strcmp(tcb->name, "InitFileModules")) tcb->entry = (void*)init_file_modules_task; 29 if(!_strcmp(tcb->name, "ExpDrvTask")) tcb->entry = (void*)exp_drv_task; 30 if(!_strcmp(tcb->name, "RotaryEncoder")) tcb->entry = (void*)JogDial_task_my; 31 if(!_strcmp(tcb->name, "MovieRecord")) tcb->entry = (void*)movie_record_task; 29 task_t *tcb=(task_t*)((char*)context-offsetof(task_t, context)); 30 31 // Replace firmware task addresses with ours 32 if(tcb->entry == (void*)task_CaptSeq) tcb->entry = (void*)capt_seq_task; 33 if(tcb->entry == (void*)task_InitFileModules) tcb->entry = (void*)init_file_modules_task; 34 if(tcb->entry == (void*)task_RotaryEncoder) tcb->entry = (void*)JogDial_task_my; 35 if(tcb->entry == (void*)task_MovieRecord) tcb->entry = (void*)movie_record_task; 36 if(tcb->entry == (void*)task_ExpDrv) tcb->entry = (void*)exp_drv_task; 32 37 } 33 38 -
trunk/platform/sx130is/sub/101c/lib.c
r1128 r1201 222 222 long vid_get_bitmap_screen_width() 223 223 { 224 return 3 20;224 return 360; 225 225 } 226 226 -
trunk/platform/sx130is/sub/101c/makefile.inc
r1128 r1201 4 4 5 5 PLATFORMOS=dryos 6 7 # Force EXMEM on for sx130is - not enough heap to work in low memory 8 override OPT_EXMEM_MALLOC=1 9 override OPT_CHDK_IN_EXMEM=1 6 10 7 11 # start of firmware … … 25 29 MEMISOSTART=0x3b089e0 # MAXRAMADDR+1 - EXMEM_HEAP_SKIP - EXMEM_BUFFER_SIZE - 32 (exmem allocates 64 bytes extra, 32 before and 32 after block allocated) 26 30 else 27 MEMISOSTART=0x16621028 #MEMISOSTART=0xF0000031 #MEMISOSTART=0x166210 32 MEMISOSTART=0xF00000 29 33 endif 30 34 -
trunk/platform/sx130is/sub/101c/stubs_entry_2.S
r1128 r1201 56 56 NHSTUB(PostLogicalEventToUI, 0xff891ddc) 57 57 NHSTUB(RenameFile_Fut, 0xFF8365E0) // orig:0xff8367ac 58 NHSTUB(Restart, 0xff83be4 8)58 NHSTUB(Restart, 0xff83be44) 59 59 NHSTUB(SetAutoShutdownTime, 0xff894060) 60 60 NHSTUB(SetCurrentCaptureModeType, 0xff89abfc) … … 86 86 // Missing from stubs_entry.s 87 87 88 NHSTUB(DoAFLock, 0x FF8384D8)89 NHSTUB(LEDDrive, 0x FF85F1BC) // inner function like in sx120 and d10, sikahr:xFF96A8B088 NHSTUB(DoAFLock, 0xff878eec) 89 NHSTUB(LEDDrive, 0xff85f0f4) // inner function like in sx120 and d10, sikahr:xFF96A8B0 90 90 NHSTUB(ScreenLock, 0xFF8A8A1C) // 0xFF8A8DB4 like in sx120 and d10? 91 91 NHSTUB(ScreenUnlock, 0xFF8A8A80) // 0xFF8A788C like in sx120 and d10? … … 93 93 //NHSTUB(ScreenUnlock, 0xFF8A788C) // does not draw Canon interface 94 94 NHSTUB(SetScriptMode, 0xFF893D88) 95 NHSTUB(UnlockAF, 0x FF838510)95 NHSTUB(UnlockAF, 0xff878efc) 96 96 NHSTUB(WriteSDCard, 0xFF950268) 97 97 NHSTUB(apex2us, 0xFFA0E804) … … 112 112 NHSTUB(kbd_pwr_off, NULL_STUB) 113 113 114 115 114 NHSTUB(rand, 0xFFA0D940) 116 115 NHSTUB(srand, 0xFFA0D934) 117 118 119 116 120 117 NHSTUB(DebugAssert, 0xFF81EB78) // Usefull in tasks … … 122 119 // allocate from given EXMEM pool 123 120 NHSTUB(exmem_alloc, 0xFF888334) 121 122 # Addresses for firmware task handlers (used in taskHook) 123 DEF(task_CaptSeq, 0xff87b564) 124 DEF(task_ExpDrv, 0xff8bfa94) 125 DEF(task_InitFileModules, 0xff897938) 126 DEF(task_MovieRecord, 0xff969bc8) 127 DEF(task_RotaryEncoder, 0xff85fd80)
Note: See TracChangeset
for help on using the changeset viewer.