Changeset 1201


Ignore:
Timestamp:
06/08/11 07:48:44 (2 years ago)
Author:
msl
Message:

SX130 (currently not available from autobuild server)

+ added version 1.01d

  • some cleanup for 1.01c
  • changed aspect ratio stuff to X2 instead of 9/4
  • fixed some stubs and updated taskHook code
  • forced EXMEM and loading CHDK in EXMEM in the makefile.inc
Location:
trunk
Files:
12 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r1200 r1201  
    234234        $(MAKE) -s --no-print-directory PLATFORM=sx110is  PLATFORMSUB=100b NO_INC_BUILD=1 firzipsub 
    235235        #$(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 
    236237        $(MAKE) -s --no-print-directory PLATFORM=sx200is  PLATFORMSUB=100c NO_INC_BUILD=1 firzipsub 
    237238        $(MAKE) -s --no-print-directory PLATFORM=ixus90_sd790  PLATFORMSUB=100c NO_INC_BUILD=1 firzipsub 
     
    418419        $(MAKE) -s --no-print-directory PLATFORM=sx110is  PLATFORMSUB=100b NO_INC_BUILD=1 firzipsubcomplete 
    419420        #$(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 
    420422        $(MAKE) -s --no-print-directory PLATFORM=sx200is  PLATFORMSUB=100c NO_INC_BUILD=1 firzipsubcomplete 
    421423        $(MAKE) -s --no-print-directory PLATFORM=ixus90_sd790  PLATFORMSUB=100c NO_INC_BUILD=1 firzipsubcomplete 
     
    647649        $(MAKE) -s --no-print-directory PLATFORM=sx110is  PLATFORMSUB=100b NO_INC_BUILD=1 clean 
    648650        #$(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 
    649652        $(MAKE) -s --no-print-directory PLATFORM=sx200is  PLATFORMSUB=100c NO_INC_BUILD=1 clean 
    650653        $(MAKE) -s --no-print-directory PLATFORM=ixus90_sd790  PLATFORMSUB=100c NO_INC_BUILD=1 clean 
  • trunk/makefile.inc

    r1200 r1201  
    3333#PLATFORM=sx130is 
    3434#PLATFORMSUB=101c 
     35 
     36#PLATFORM=sx130is 
     37#PLATFORMSUB=101d 
    3538 
    3639#PLATFORM=sx200is 
  • trunk/platform/sx130is/platform_camera.h

    r1140 r1201  
    7676  
    7777     #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)>>2 
     78     #define ASPECT_XCORRECTION(x)                       ((x)<<1) 
    7979  
    8080     #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/9 
     81     #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 
    8282     #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. 
    8484  
    8585     #undef ASPECT_VIEWPORT_XCORRECTION  
    8686     #define ASPECT_VIEWPORT_XCORRECTION(x)              ASPECT_GRID_XCORRECTION(x) 
    8787     #undef ASPECT_VIEWPORT_YCORRECTION  
    88      #define ASPECT_VIEWPORT_YCORRECTION(y)              ((y)) 
     88     #define ASPECT_VIEWPORT_YCORRECTION(y)              (y) 
    8989  
    9090     //games mappings 
  • trunk/platform/sx130is/sub/101c/boot.c

    r1128 r1201  
    2020-----------------------------------------------------------------------*/ 
    2121 
     22extern void task_CaptSeq(); 
     23extern void task_InitFileModules(); 
     24extern void task_RotaryEncoder(); 
     25extern void task_MovieRecord(); 
     26extern void task_ExpDrv(); 
     27 
    2228void 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; 
    3237} 
    3338 
  • trunk/platform/sx130is/sub/101c/lib.c

    r1128 r1201  
    222222long vid_get_bitmap_screen_width() 
    223223{ 
    224     return 320;     
     224    return 360;     
    225225} 
    226226 
  • trunk/platform/sx130is/sub/101c/makefile.inc

    r1128 r1201  
    44 
    55PLATFORMOS=dryos 
     6 
     7# Force EXMEM on for sx130is - not enough heap to work in low memory 
     8override OPT_EXMEM_MALLOC=1 
     9override OPT_CHDK_IN_EXMEM=1 
    610 
    711# start of firmware 
     
    2529MEMISOSTART=0x3b089e0           # MAXRAMADDR+1 - EXMEM_HEAP_SKIP - EXMEM_BUFFER_SIZE - 32 (exmem allocates 64 bytes extra, 32 before and 32 after block allocated) 
    2630else 
    27 MEMISOSTART=0x166210 
    28 #MEMISOSTART=0xF00000 
     31#MEMISOSTART=0x166210 
     32MEMISOSTART=0xF00000 
    2933endif 
    3034 
  • trunk/platform/sx130is/sub/101c/stubs_entry_2.S

    r1128 r1201  
    5656NHSTUB(PostLogicalEventToUI, 0xff891ddc) 
    5757NHSTUB(RenameFile_Fut, 0xFF8365E0)                         // orig:0xff8367ac 
    58 NHSTUB(Restart, 0xff83be48) 
     58NHSTUB(Restart, 0xff83be44) 
    5959NHSTUB(SetAutoShutdownTime, 0xff894060) 
    6060NHSTUB(SetCurrentCaptureModeType, 0xff89abfc) 
     
    8686// Missing from stubs_entry.s 
    8787 
    88 NHSTUB(DoAFLock, 0xFF8384D8)                                 
    89 NHSTUB(LEDDrive, 0xFF85F1BC)                                // inner function like in sx120 and d10, sikahr:xFF96A8B0 
     88NHSTUB(DoAFLock, 0xff878eec)                                 
     89NHSTUB(LEDDrive, 0xff85f0f4)                                // inner function like in sx120 and d10, sikahr:xFF96A8B0 
    9090NHSTUB(ScreenLock, 0xFF8A8A1C)                              // 0xFF8A8DB4 like in sx120 and d10? 
    9191NHSTUB(ScreenUnlock, 0xFF8A8A80)                            // 0xFF8A788C like in sx120 and d10? 
     
    9393//NHSTUB(ScreenUnlock, 0xFF8A788C)                          // does not draw Canon interface 
    9494NHSTUB(SetScriptMode, 0xFF893D88)                           
    95 NHSTUB(UnlockAF, 0xFF838510)                   
     95NHSTUB(UnlockAF, 0xff878efc)                   
    9696NHSTUB(WriteSDCard, 0xFF950268)      
    9797NHSTUB(apex2us, 0xFFA0E804)       
     
    112112NHSTUB(kbd_pwr_off, NULL_STUB) 
    113113 
    114  
    115114NHSTUB(rand, 0xFFA0D940)                     
    116115NHSTUB(srand, 0xFFA0D934) 
    117  
    118  
    119116 
    120117NHSTUB(DebugAssert, 0xFF81EB78)                                                         // Usefull in tasks 
     
    122119// allocate from given EXMEM pool  
    123120NHSTUB(exmem_alloc, 0xFF888334) 
     121 
     122# Addresses for firmware task handlers (used in taskHook) 
     123DEF(task_CaptSeq, 0xff87b564) 
     124DEF(task_ExpDrv, 0xff8bfa94) 
     125DEF(task_InitFileModules, 0xff897938) 
     126DEF(task_MovieRecord, 0xff969bc8) 
     127DEF(task_RotaryEncoder, 0xff85fd80) 
Note: See TracChangeset for help on using the changeset viewer.