Changeset 1340


Ignore:
Timestamp:
09/15/11 11:20:57 (21 months ago)
Author:
philmoz
Message:

Update development branch (merged from main trunk + updates to makefile for batch building).

Location:
branches/philmoz
Files:
74 edited

Legend:

Unmodified
Added
Removed
  • branches/philmoz

  • branches/philmoz/Makefile

    r1336 r1340  
    11topdir=./ 
    22srcdir=./ 
    3  
    4 include makefile.inc 
    53 
    64#ifndef NO_INC_BUILD 
    75#BUILD_NUMBER := $(shell expr $(BUILD_NUMBER) + 1) 
    86#endif 
    9  
    10 SUBDIRS=tools lib platform core loader CHDK 
    11  
    12 # Define empty recipes for all the included makefiles (including this one) 
    13 # This stops gmake from attempting to see if the makefiles need to be rebuilt 
    14 Makefile: ; 
    15 makefile.inc: ; 
    16 version.inc: ; 
    17 buildconf.inc: ; 
    18 localbuildconf.inc: ; 
    19 $(topdir)/platform/fi2.inc: ; 
    20 $(topdir)/platform/$(PLATFORM)/sub/$(PLATFORMSUB)/makefile.inc: ; 
    21  
    22 all: all-recursive 
    23  
    24 clean: clean-recursive 
    25  
    26 distclean: distclean-recursive 
    277 
    288# Define the lists of cameras / firmware versions with a BETA status 
     
    4121        STATE=_BETA 
    4222endif 
     23 
     24# If processing 'camindex' target for CHDK-Shell then only need to load the 
     25# camera/firmware makefile.inc file, not the whole CHDK makefile hierarchy 
     26# this speeds up generation of the camindex.csv file 
     27ifdef FASTLOAD 
     28 
     29include $(topdir)/platform/$(PLATFORM)/sub/$(PLATFORMSUB)/makefile.inc 
     30 
     31else 
     32 
     33include makefile.inc 
     34 
     35SUBDIRS=tools lib platform core loader CHDK 
     36 
     37all: all-recursive 
     38 
     39clean: clean-recursive 
     40 
     41distclean: distclean-recursive 
    4342 
    4443.PHONY: fir 
     
    200199        $(MAKE) -f makefile.cam VER=$(VER) ACTION=clean batch 
    201200 
    202  
     201endif 
     202 
     203 
     204# Special targets for CHDK-Shell. These generate the camindex.csv file 
     205# used by CHDK-Shell to work out what cameras / firmware versions to include. 
    203206.PHONY: camindex 
    204207camindex: 
    205208        @echo "$(PLATFORM),$(PLATFORMSUB),$(STATE),$(COPY_TO)" 
    206  
     209         
    207210camindex.csv: Makefile makefile.cam makefile.fw 
    208         $(MAKE) -f makefile.cam VER=$(VER) ACTION=camindex batch > camindex.csv 
     211        $(MAKE) -f makefile.cam VER=$(VER) FASTLOAD=1 ACTION=camindex batch > camindex.csv 
     212 
     213 
     214# Define empty recipes for all the included makefiles (including this one) 
     215# This stops gmake from attempting to see if the makefiles need to be rebuilt 
     216Makefile: ; 
     217makefile.inc: ; 
     218makefile.cam: ; 
     219makefile.fw: ; 
     220version.inc: ; 
     221buildconf.inc: ; 
     222localbuildconf.inc: ; 
     223$(topdir)/platform/fi2.inc: ; 
     224$(topdir)/platform/$(PLATFORM)/sub/$(PLATFORMSUB)/makefile.inc: ; 
  • branches/philmoz/core/gui.c

    r1333 r1340  
    30113011    } 
    30123012    gui_fselect_init(LANG_STR_SELECT_TEXT_FILE, path, gui_draw_read_selected); 
     3013    void gui_fselect_set_key_redraw(int n); 
     3014    gui_fselect_set_key_redraw(1); 
    30133015} 
    30143016 
  • branches/philmoz/core/gui_4wins.c

    r1333 r1340  
    355355  static char str[16]; 
    356356  sprintf(str, "%3d%%", get_batt_perc()); 
    357   draw_txt_string(screen_width/FONT_WIDTH-2-13, screen_height/FONT_HEIGHT-2, str, INFO_TEXT_COLOR); 
    358   gui_osd_draw_clock(300,208,INFO_TEXT_COLOR); 
    359 } 
     357  draw_txt_string((screen_width-CAM_TS_BUTTON_BORDER)/FONT_WIDTH-2-13, screen_height/FONT_HEIGHT-2, str, INFO_TEXT_COLOR); 
     358  gui_osd_draw_clock(CAM_TS_BUTTON_BORDER+290,208,INFO_TEXT_COLOR); 
     359} 
  • branches/philmoz/core/gui_fselect.c

    r1320 r1340  
    6969static void (*fselect_on_select)(const char *fn); 
    7070static char raw_operation; 
     71static int set_key_redraw_mode; 
    7172 
    7273//------------------------------------------------------------------- 
     
    200201 
    201202//------------------------------------------------------------------- 
     203// Set flag to control how the erase/redraw happens when the set key 
     204// is pressed. 
     205// 0 - screen erase & mode restore done after call to fselect_on_select 
     206// 1 - screen erase & mode restore done before call to fselect_on_select 
     207// Needed for text reader to work correctly and to stop intermittent 
     208// crashes when selecting fonts (hack - whole gui/kbd system needs an overhaul). 
     209void gui_fselect_set_key_redraw(int n) 
     210{ 
     211    set_key_redraw_mode = n; 
     212} 
     213 
    202214void gui_fselect_init(int title, const char* dir, void (*on_select)(const char *fn)) { 
    203215    int i; 
     
    229241    gui_fselect_redraw = 2; 
    230242    gui_set_mode(GUI_MODE_FSELECT); 
     243    gui_fselect_set_key_redraw(0); 
    231244} 
    232245 
     
    973986 
    974987//------------------------------------------------------------------- 
     988static void exit_fselect() 
     989{ 
     990    gui_fselect_free_data(); 
     991    gui_fselect_marked_free_data(); 
     992    if (set_key_redraw_mode) 
     993    { 
     994        gui_set_mode(gui_fselect_mode_old); 
     995        draw_restore(); 
     996    } 
     997    if (fselect_on_select)  
     998    { 
     999        fselect_on_select(selected_file); 
     1000    } 
     1001    if (!set_key_redraw_mode) 
     1002    { 
     1003        gui_set_mode(gui_fselect_mode_old); 
     1004        draw_restore(); 
     1005    } 
     1006} 
     1007 
    9751008void gui_fselect_kbd_process() { 
    9761009    int i; 
     
    10501083                } else  { 
    10511084                    sprintf(selected_file, "%s/%s", current_dir, selected->name); 
    1052                     gui_fselect_free_data(); 
    1053                     gui_fselect_marked_free_data(); 
    1054                     if (fselect_on_select)  
    1055                         fselect_on_select(selected_file); 
    1056                     gui_set_mode(gui_fselect_mode_old); 
    1057                     draw_restore(); 
     1085                    exit_fselect(); 
    10581086                } 
    10591087            } 
     
    10761104            break; 
    10771105        case KEY_MENU: 
    1078             gui_fselect_free_data(); 
    1079             gui_fselect_marked_free_data(); 
    1080             if (fselect_on_select)  
    1081                 fselect_on_select(NULL); 
    1082             gui_set_mode(gui_fselect_mode_old); 
    1083             draw_restore(); 
    1084             break; 
    1085     } 
    1086 } 
    1087  
    1088 //------------------------------------------------------------------- 
     1106            exit_fselect(); 
     1107            break; 
     1108    } 
     1109} 
     1110 
     1111//------------------------------------------------------------------- 
  • branches/philmoz/include/lolevel.h

    r1321 r1340  
    2121extern long _GetFocusLensSubjectDistanceFromLens(); 
    2222extern void _MoveFocusLensToDistance(short *dist); 
    23 #if defined(CAMERA_a410) 
    24 extern void MoveFocusLensToDistanceA410(short *dist); 
    25 #endif 
    2623extern void _PutInNdFilter(); 
    2724extern void _PutOutNdFilter(); 
  • branches/philmoz/loader/ixus310_elph500hs

    • Property svn:ignore set to
      .dep
      *.a
      *.o
      main.bin
      *.elf
      *.elf.syms
      *.dump
  • branches/philmoz/loader/ixus310_elph500hs/Makefile

    • Property svn:eol-style set to LF
  • branches/philmoz/loader/ixus310_elph500hs/blobs.S

    • Property svn:eol-style set to native
  • branches/philmoz/loader/ixus310_elph500hs/entry.S

    • Property svn:eol-style set to native
  • branches/philmoz/loader/ixus310_elph500hs/main.c

    • Property svn:eol-style set to native
  • branches/philmoz/loader/ixus310_elph500hs/resetcode

    • Property svn:ignore set to
      .dep
      *.a
      *.o
      main.bin
      *.elf
      *.elf.syms
      *.dump
  • branches/philmoz/loader/ixus310_elph500hs/resetcode/Makefile

    • Property svn:eol-style set to LF
  • branches/philmoz/loader/ixus310_elph500hs/resetcode/entry.S

    • Property svn:eol-style set to native
  • branches/philmoz/loader/ixus310_elph500hs/resetcode/main.c

    • Property svn:eol-style set to native
  • branches/philmoz/makefile.cam

    r1336 r1340  
    2424$(CAMS): 
    2525        if [ -d platform/$@ ] && [ $@ != "generic" ] && [ $@ != "$(findstring $@,$(SKIP_AUTOBUILD))" ]; then \ 
    26                 $(MAKE) -f makefile.fw VER=$(VER) CAM=$@ ACTION=$(ACTION) all; \ 
     26                $(MAKE) -f makefile.fw VER=$(VER) FASTLOAD=$(FASTLOAD) CAM=$@ ACTION=$(ACTION) all; \ 
    2727        fi 
  • branches/philmoz/makefile.fw

    r1336 r1340  
    2222$(FW): 
    2323        if [ -d platform/$(CAM)/sub/$@ ] && [ $(CAM)-$@ != "$(findstring $(CAM)-$@,$(SKIP_AUTOBUILD))" ]; then \ 
    24                 $(MAKE) -s --no-print-directory PLATFORM=$(CAM) PLATFORMSUB=$@ NO_INC_BUILD=1 $(ACTION); \ 
     24                $(MAKE) -s --no-print-directory FASTLOAD=$(FASTLOAD) PLATFORM=$(CAM) PLATFORMSUB=$@ NO_INC_BUILD=1 $(ACTION); \ 
    2525        fi 
  • branches/philmoz/platform/a410/sub/100f/stubs_entry_2.S

    r1320 r1340  
    4242NHSTUB(MFOn,0xffd24c18) 
    4343NHSTUB(MFOff,0xffd24c48) 
     44 
     45NHSTUB(MoveFocusLensToDistance, MoveFocusLensToDistanceA410) //hack to make this work 
  • branches/philmoz/platform/generic/wrappers.c

    r1320 r1340  
    262262#endif 
    263263        { 
    264 #if defined(CAMERA_a410) // need to disable a (false) assert here to make this function work  
    265                 MoveFocusLensToDistanceA410((short*)&newpos); 
    266 #else 
    267264                _MoveFocusLensToDistance((short*)&newpos); 
    268 #endif 
    269265                //while (focus_busy); 
    270266                while ((shooting_is_flash_ready()!=1) || (focus_busy)); 
  • branches/philmoz/platform/ixus100_sd780/sub/100b/makefile.inc

    r1333 r1340  
    1616 
    1717KEYSYS=d4 
    18 ifdef OPT_FI2 
    19 include $(topdir)/platform/fi2.inc 
    20 endif 
    21  
    22  
  • branches/philmoz/platform/ixus100_sd780/sub/100c/makefile.inc

    r1173 r1340  
    1616 
    1717KEYSYS=d4 
    18 ifdef OPT_FI2 
    19 include $(topdir)/platform/fi2.inc 
    20 endif 
    21  
    22  
  • branches/philmoz/platform/ixus120_sd940/kbd.c

    r1056 r1340  
    7373void wait_until_remote_button_is_released(void) 
    7474{ 
    75  
    76 long x[3]; 
    7775int count1; 
    7876int count2; 
     
    208206void __attribute__((naked,noinline)) mykbd_task() 
    209207{ 
    210 #if 0 
    211     /* WARNING 
    212      * Stack pointer manipulation performed here! 
    213      * This means (but not limited to): 
    214      *  function arguments destroyed; 
    215      *  function CAN NOT return properly; 
    216      *  MUST NOT call or use stack variables before stack 
    217      *  is setup properly; 
    218      * 
    219      */ 
    220  
    221         register int i; 
    222         register long *newstack; 
    223  
    224 #ifndef MALLOCD_STACK 
    225         newstack = (void*)kbd_stack; 
    226 #else 
    227         newstack = malloc(NEW_SS); 
    228 #endif 
    229  
    230         for (i=0;i<NEW_SS/4;i++) 
    231                 newstack[i]=0xdededede; 
    232  
    233         asm volatile ( 
    234                 "MOV    SP, %0" 
    235                 :: "r"(((char*)newstack)+NEW_SS) 
    236                 : "memory" 
    237         ); 
    238 #endif 
    239  
    240208        mykbd_task_proceed(); 
    241  
    242         /* function can be modified to restore SP here... 
    243          */ 
    244209 
    245210        _ExitTask(); 
     
    261226 
    262227volatile int jogdial_stopped=0; 
    263 void disable_SD_writeprotect() 
    264 { 
    265         physw_status[SD_READONLY_REG] = physw_status[SD_READONLY_REG] & ~SD_READONLY_FLAG; 
    266 } 
    267228 
    268229void my_kbd_read_keys() 
     
    277238        _platformsub_kbd_fetch_data(kbd_new_state); 
    278239 
     240        /* Get the rest of the buttons */ 
     241         
     242        _kbd_read_keys_r2(kbd_new_state); 
     243         
    279244        kbd_new_state[2] |=0x00008000;  /// disable the battery door switch 
    280245 
     
    295260                physw_status[0] |= alt_mode_key_mask;  /// disable the ALT mode button 
    296261 
    297                 physw_status[SD_READONLY_REG] = physw_status[SD_READONLY_REG] & ~SD_READONLY_FLAG; 
    298262        } 
    299263        else { 
     
    308272                } 
    309273        } 
    310  
    311         _kbd_read_keys_r2(physw_status); 
    312  
    313         physw_status[2] = physw_status[SD_READONLY_REG] & ~SD_READONLY_FLAG; 
    314  
     274         
     275         
    315276        remote_key = (physw_status[2] & USB_MASK)==USB_MASK; 
    316277        if (remote_key) { 
     
    321282                remote_count = 0; 
    322283        } 
     284         
    323285 
    324286        if (conf.remote_enable) { 
     
    329291} 
    330292 
    331 #ifdef original_way_to_handle_display_key 
    332  
    333 void my_kbd_read_keys() 
    334 { 
    335         static int altDownTimer=0; 
    336         const int DISP_DOWN_TIME = 20; 
    337  
    338         static int isAlt=0, isDisplay=0; 
    339         static int altDownTimer=0; 
    340  
    341         kbd_prev_state[0] = kbd_new_state[0]; 
    342         kbd_prev_state[1] = kbd_new_state[1]; 
    343         kbd_prev_state[2] = kbd_new_state[2]; 
    344  
    345         _platformsub_kbd_fetch_data(kbd_new_state); 
    346  
    347         kbd_new_state[2] |=0x00008000;  /// disable the battery door switch 
    348  
    349         // support for short/long press of Display 
    350         if (kbd_is_key_pressed(KEY_DISPLAY)) {                  // Display held down 
    351                 altDownTimer++; 
    352         } 
    353         if (altDownTimer > 50) {                // TODO - determine best threshold 
    354                 isDisplay = 1;                                                          // held down long enough for Display 
    355         } 
    356         else if (!kbd_is_key_pressed(KEY_DISPLAY)) { 
    357                 if (altDownTimer > 0) 
    358                         isAlt = 1; 
    359                 altDownTimer = 0; 
    360         } 
    361  
    362         if (kbd_process() == 0) { 
    363                 // leave it alone... 
    364                 physw_status[0] = kbd_new_state[0]; 
    365                 physw_status[1] = kbd_new_state[1]; 
    366                 physw_status[2] = kbd_new_state[2]; 
    367  
    368                 physw_status[0] |= alt_mode_key_mask;  /// disable the ALT mode button 
    369  
    370                 physw_status[SD_READONLY_REG] = physw_status[SD_READONLY_REG] & ~SD_READONLY_FLAG; 
    371         } 
    372         else { 
    373                 // override keys 
    374  
    375                 physw_status[0] = (kbd_new_state[0] & (~KEYS_MASK0)) |(kbd_mod_state[0] & KEYS_MASK0); 
    376                 physw_status[1] = (kbd_new_state[1] & (~KEYS_MASK1)) | (kbd_mod_state[1] & KEYS_MASK1); 
    377                 physw_status[2] = (kbd_new_state[2] & (~KEYS_MASK2)) |(kbd_mod_state[2] & KEYS_MASK2); 
    378  
    379                 if (isDisplay) 
    380                         physw_status[0] &= ~alt_mode_key_mask;  /// press the Display button 
    381         } 
    382  
    383         _kbd_read_keys_r2(physw_status); 
    384  
    385         physw_status[2] = physw_status[SD_READONLY_REG] & ~SD_READONLY_FLAG; 
    386  
    387         remote_key = (physw_status[2] & USB_MASK)==USB_MASK; 
    388         if (remote_key) { 
    389                 remote_count += 1; 
    390         } 
    391         else if (remote_count) { 
    392                 usb_power = remote_count; 
    393                 remote_count = 0; 
    394         } 
    395  
    396         if (conf.remote_enable) { 
    397                 physw_status[2] = physw_status[SD_READONLY_REG] & ~(SD_READONLY_FLAG | USB_MASK); 
    398         } else { 
    399                 physw_status[2] = physw_status[SD_READONLY_REG] & ~SD_READONLY_FLAG; 
    400         } 
    401 } 
    402 #endif 
     293 
    403294 
    404295 
  • branches/philmoz/platform/ixus120_sd940/platform_camera.h

    r1320 r1340  
    2222 
    2323        #define CAM_DRYOS_2_3_R39                       1  //stat is different, as well as some other functions 
    24         #define SYNCHABLE_REMOTE_NOT_ENABLED 1 
     24 
     25//      #define SYNCHABLE_REMOTE_NOT_ENABLED 1 
     26 
    2527    #define CAM_PROPSET                 3 
    2628    #define CAM_DRYOS                   1 
  • branches/philmoz/platform/ixus120_sd940/sub/100e/capt_seq.c

    r1189 r1340  
    101101"       MOV     R0, R5 \n"    
    102102 
    103 //"     BL      sub_FF9425F4 \n"  
    104 "       BL      sub_FF9425F4_my \n"                     // patched  
     103//"     BL      sub_FF942410 \n"  
     104"       BL      sub_FF942410_my \n"                     // patched  
    105105                      
    106106"       TST     R0, #1 \n"                            
     
    280280 
    281281/*---------------------------------------------------------------------- 
    282         sub_FF9425F4_my()  - capt_seq_task() 
     282        sub_FF942410_my()  - capt_seq_task() 
    283283-----------------------------------------------------------------------*/ 
    284 void __attribute__((naked,noinline)) sub_FF9425F4_my() { 
     284void __attribute__((naked,noinline)) sub_FF942410_my() { 
    285285asm volatile ( 
    286286"       STMFD   SP!, {R0-R8,LR} \n"                 
     
    333333"       BL      capt_seq_hook_set_nr\n" 
    334334  
    335 "       LDR     R0, [R4, #0x1C] \n"                   
    336 "       CMP     R0, #0 \n"                            
    337 "       MOVNE   R0, #1 \n"                          
    338 "       STRNE   R0, [R5] \n"                        
    339 "       LDR     R0, [R5, #4] \n"                      
    340 "       BL      sub_FF90B7F8 \n"                       
    341 "       LDR     R0, [R5, #8] \n"                      
    342 "       BL      sub_FF8B9E48 \n"                       
    343 "       MOV     R0, #1 \n"                            
    344 "       BL      sub_FF8B9E54 \n"                       
    345 "       LDR     R0, =0xFF941E0C \n"                 
    346 "       MOV     R1, R4 \n"                            
    347 "       BL      sub_FF8B9E24 \n"                       
    348 "       LDR     R0, [R5] \n"                          
    349 "       CMP     R0, #5 \n"                            
    350 "       ADDLS   PC, PC, R0, LSL #2 \n"     
    351           
    352 "       B       sub_FF9425CC \n"   // go to the ROM                        
     335"       B       sub_FF9424C0 \n"   // go back to the ROM                     
    353336        ); 
    354337} 
     
    409392"       BL      sub_FF942328 \n"                       
    410393"       BL      sub_FF942DA0 \n"                       
    411 "       MOV     R0, R4 \n"    
    412          
    413 // this patch causes a crash when shooting 
    414 // it is unknown what the effect is of not calling this (called elsewhere)                                       
    415 "       BL      sub_FF9425F4 \n"      
    416 //"     BL      sub_FF9425F4_my \n"                       
     394"       MOV     R0, R4 \n"      
     395                         
     396//"     BL      sub_FF942410 \n"      
     397"       BL      sub_FF942410_my \n"                             // patched         
     398             
    417399"       MOV     R5, R0 \n"   
    418400"       BL              capt_seq_hook_raw_here\n"  //----------->>                             
  • branches/philmoz/platform/ixus120_sd940/sub/100e/makefile.inc

    r1189 r1340  
    1515 
    1616KEYSYS=d4 
    17 ifdef OPT_FI2 
    18 include  $(topdir)platform/fi2.inc 
    19 endif 
    20  
    21  
  • branches/philmoz/platform/ixus120_sd940/sub/100e/stubs_auto.S

    r1189 r1340  
    159159STUB(FF8B44EC) 
    160160STUB(FF8B4588) 
    161 STUB(FF8B9E24) 
    162 STUB(FF8B9E48) 
    163 STUB(FF8B9E54) 
    164161STUB(FF8D7AE8) 
    165162STUB(FF8D9F0C) 
    166163STUB(FF8DB75C) 
    167164STUB(FF90B548) 
    168 STUB(FF90B7F8) 
    169165STUB(FF9181E0) 
    170166STUB(FF9182A8) 
     
    194190STUB(FF941CAC) 
    195191STUB(FF942328) 
    196 STUB(FF9425CC) 
    197 STUB(FF9425F4) 
     192STUB(FF942410) 
     193STUB(FF9424C0) 
    198194STUB(FF9426C8) 
    199195STUB(FF942724) 
  • branches/philmoz/platform/ixus120_sd940/sub/101a/capt_seq.c

    r1149 r1340  
    333333"       BL      capt_seq_hook_set_nr\n" 
    334334 
    335                      
    336 "       LDR     R0, [R4, #0x1C] \n"                   
    337 "       CMP     R0, #0 \n"                            
    338 "       MOVNE   R0, #1 \n"                          
    339 "       STRNE   R0, [R5] \n"                    
    340 "       LDR     R0, [R5, #4] \n"                      
    341 "       BL      sub_FF90B814 \n"                       
    342 "       LDR     R0, [R5, #8] \n"                      
    343 "       BL      sub_FF8B9E64 \n"                       
    344 "       MOV     R0, #1 \n"                            
    345 "       BL      sub_FF8B9E70 \n"                       
    346 "       LDR     R0, =0xFF941E28 \n"                   
    347 "       MOV     R1, R4 \n"                            
    348 "       BL      sub_FF8B9E40 \n"                       
    349 "       LDR     R0, [R5] \n"                      
    350 "       CMP     R0, #5 \n"                            
    351 "       ADDLS   PC, PC, R0, LSL #2 \n"              
    352  
    353 "       B       sub_FF9425E8 \n"   // go to the ROM                    
     335"       B       sub_FF9424DC \n"    
    354336        ); 
    355337} 
     
    410392"       BL      sub_FF942344 \n"                       
    411393"       BL      sub_FF942DBC \n"                       
    412 "       MOV     R0, R4 \n"   
    413  
    414 // this patch causes a crash when shooting 
    415 // it is unknown what the effect is of not calling this (called elsewhere)                        
    416 "       BL      sub_FF94242C \n"   
    417 //"     BL      sub_FF94242C_my \n"                     
     394"       MOV     R0, R4 \n"      
     395             
     396//"     BL      sub_FF94242C \n"   
     397"       BL      sub_FF94242C_my \n"    
     398                  
    418399"       MOV     R5, R0 \n"   
    419400"       BL              capt_seq_hook_raw_here\n"  //----------->>                          
  • branches/philmoz/platform/ixus120_sd940/sub/101a/makefile.inc

    r1149 r1340  
    1515 
    1616KEYSYS=d4 
    17 ifdef OPT_FI2 
    18 include  $(topdir)platform/fi2.inc 
    19 endif 
    20  
    21  
  • branches/philmoz/platform/ixus120_sd940/sub/101a/stubs_auto.S

    r1149 r1340  
    159159STUB(FF8B4508) 
    160160STUB(FF8B45A4) 
    161 STUB(FF8B9E40) 
    162 STUB(FF8B9E64) 
    163 STUB(FF8B9E70) 
    164161STUB(FF8D7B04) 
    165162STUB(FF8D9F28) 
    166163STUB(FF8DB778) 
    167164STUB(FF90B564) 
    168 STUB(FF90B814) 
    169165STUB(FF9181FC) 
    170166STUB(FF9182C4) 
     
    195191STUB(FF942344) 
    196192STUB(FF94242C) 
    197 STUB(FF9425E8) 
     193STUB(FF9424DC) 
    198194STUB(FF9426E4) 
    199195STUB(FF942740) 
  • branches/philmoz/platform/ixus120_sd940/sub/102c/capt_seq.c

    r1056 r1340  
    330330"               BL      capt_seq_hook_set_nr \n"                                        // added 
    331331 
    332 "               LDR     R0, [R4,#0x1C] \n" 
    333 "               CMP     R0, #0 \n" 
    334 "               MOVNE   R0, #1 \n" 
    335 "               STRNE   R0, [R5] \n" 
    336 "               LDR     R0, [R5,#4] \n" 
    337 "               BL      sub_FF90B814 \n" 
    338 "               LDR     R0, [R5,#8] \n" 
    339 "               BL      sub_FF8B9E64 \n" 
    340 "               MOV     R0, #1 \n" 
    341 "               BL      sub_FF8B9E70 \n"                        // nullsub_13 
    342 "               LDR     R0, =0xFF941E28 \n" 
    343 "               MOV     R1, R4 \n" 
    344 "               BL      sub_FF8B9E40 \n" 
    345 "               LDR     R0, [R5] \n" 
    346 "               CMP     R0, #5 \n" 
    347 "               ADDLS   PC, PC, R0,LSL#2 \n" 
    348 //"             B       loc_FF9425E8 \n" 
    349 "               B       sub_FF9425E8 \n" 
    350  
     332"               B       sub_FF9424DC \n" 
    351333        ); 
    352334} 
     
    408390"               MOV     R0, R4 \n" 
    409391 
    410 // this patch causes a crash when shooting 
    411 // it is unknown what the effect is of not calling this 
    412 "               BL      sub_FF94242C \n" 
    413 //"             BL      sub_FF94242C_my \n"                                     // patched 
     392//"             BL      sub_FF94242C \n" 
     393"               BL      sub_FF94242C_my \n"                                     // patched 
     394 
    414395"               MOV     R5, R0 \n" 
    415396"               BL     capt_seq_hook_raw_here \n"               // added 
  • branches/philmoz/platform/ixus120_sd940/sub/102c/stubs_auto.S

    r1056 r1340  
    159159STUB(FF8B4508) 
    160160STUB(FF8B45A4) 
    161 STUB(FF8B9E40) 
    162 STUB(FF8B9E64) 
    163 STUB(FF8B9E70) 
    164161STUB(FF8D7B04) 
    165162STUB(FF8D9F28) 
    166163STUB(FF8DB778) 
    167164STUB(FF90B564) 
    168 STUB(FF90B814) 
    169165STUB(FF9181FC) 
    170166STUB(FF9182C4) 
     
    195191STUB(FF942344) 
    196192STUB(FF94242C) 
    197 STUB(FF9425E8) 
     193STUB(FF9424DC) 
    198194STUB(FF9426E4) 
    199195STUB(FF942740) 
  • branches/philmoz/platform/ixus120_sd940/sub/103b/capt_seq.c

    r1134 r1340  
    330330                "BL      wait_until_remote_button_is_released\n" 
    331331                "BL      capt_seq_hook_set_nr\n" 
    332  
    333  
    334 "               LDR     R0, [R4,#0x1C]\n" 
    335 "               CMP     R0, #0\n" 
    336 "               MOVNE   R0, #1\n" 
    337 "               STRNE   R0, [R5]\n" 
    338 "               LDR     R0, [R5,#4]\n" 
    339 "               BL              sub_FF90B820\n" 
    340 "               LDR     R0, [R5,#8]\n" 
    341 "               BL              sub_FF8B9E70\n" 
    342 "               MOV     R0, #1\n" 
    343 "               BL              sub_FF8B9E7C\n"  
    344 "               LDR     R0, =0xFF941E34\n" 
    345 "               MOV     R1, R4\n" 
    346 "               BL              sub_FF8B9E4C\n" 
    347 "               LDR     R0, [R5]\n" 
    348 "               CMP     R0, #5\n" 
    349 "               ADDLS   PC, PC, R0,LSL#2\n" 
    350  
    351 "               B               sub_FF9425F4\n"  // go to the ROM 
     332                 
     333"               B               sub_FF9424E8\n"                 // go back to the ROM 
    352334); 
    353335}                
     
    410392"               MOV             R0, R4\n" 
    411393 
    412 // this patch causes a crash when shooting 
    413 // it is unknown what the effect is of not calling this (called elsewhere)       
    414 "               BL              sub_FF942438\n" 
    415 //"             BL              sub_FF942438_my\n"  
     394//"             BL              sub_FF942438\n" 
     395"               BL              sub_FF942438_my\n"  
     396 
    416397"               MOV             R5, R0\n" 
    417398"               BL              capt_seq_hook_raw_here\n"  //----------->> 
  • branches/philmoz/platform/ixus120_sd940/sub/103b/makefile.inc

    r1134 r1340  
    1515 
    1616KEYSYS=d4 
    17 ifdef OPT_FI2 
    18 include  $(topdir)platform/fi2.inc 
    19 endif 
    20  
    21  
  • branches/philmoz/platform/ixus120_sd940/sub/103b/stubs_auto.S

    r1134 r1340  
    159159STUB(FF8B4514) 
    160160STUB(FF8B45B0) 
    161 STUB(FF8B9E4C) 
    162 STUB(FF8B9E70) 
    163 STUB(FF8B9E7C) 
    164161STUB(FF8D9F34) 
    165162STUB(FF8DB784) 
    166163STUB(FF90B570) 
    167 STUB(FF90B820) 
    168164STUB(FF918208) 
    169165STUB(FF9182D0) 
     
    194190STUB(FF942350) 
    195191STUB(FF942438) 
    196 STUB(FF9425F4) 
     192STUB(FF9424E8) 
    197193STUB(FF9426F0) 
    198194STUB(FF94274C) 
  • branches/philmoz/platform/ixus120_sd940/sub/103c/capt_seq.c

    r1071 r1340  
    330330                "BL      capt_seq_hook_set_nr\n" 
    331331 
    332                 "LDR    R0, [R4,#0x1C]\n"        
    333                 "CMP    R0, #0\n"                        
    334                 "MOVNE  R0, #1\n"                        
    335                 "STRNE  R0, [R5]\n"                      
    336                 "LDR    R0, [R5,#4]\n"           
    337                 "BL             sub_FF90B870\n"          
    338                 "LDR    R0, [R5,#8]\n"           
    339                 "BL             sub_FF8B9EC0\n"          
    340                 "MOV    R0, #1\n"                        
    341                 "BL             sub_FF8B9ECC\n"         //nullsub_50             
    342                 "LDR    R0, =0xFF941FF0\n"       
    343                 "MOV    R1, R4\n"                        
    344                 "BL             sub_FF8B9E9C\n"          
    345                 "LDR    R0, [R5]\n"                      
    346                 "CMP    R0, #5\n"                        
    347                 "ADDLS  PC, PC, R0,LSL#2\n"      
    348                  
    349                 "B              sub_FF9427B0\n"         //go to the ROM 
     332                "B              sub_FF9426A4\n"         //go back to the ROM 
    350333 ); 
    351334}                
     
    408391                "MOV    R0, R4\n" 
    409392                 
    410 // this patch causes a crash when shooting 
    411 // it is unknown what the effect is of not calling this (called elsewhere)       
    412                 "BL             sub_FF9425F4 \n"                 
    413         //      "BL             sub_FF9425F4_my \n"      
     393        //      "BL             sub_FF9425F4 \n"                 
     394                "BL             sub_FF9425F4_my \n" 
     395                 
    414396                "MOV    R5, R0\n" 
    415397                "BL     capt_seq_hook_raw_here\n"  //----------->> 
  • branches/philmoz/platform/ixus120_sd940/sub/103c/makefile.inc

    r1056 r1340  
    1515 
    1616KEYSYS=d4 
    17 ifdef OPT_FI2 
    18 include  $(topdir)platform/fi2.inc 
    19 endif 
    20  
    21  
  • branches/philmoz/platform/ixus120_sd940/sub/103c/stubs_auto.S

    r1056 r1340  
    159159STUB(FF8B4564) 
    160160STUB(FF8B4600) 
    161 STUB(FF8B9E9C) 
    162 STUB(FF8B9EC0) 
    163 STUB(FF8B9ECC) 
    164161STUB(FF8D9F84) 
    165162STUB(FF8DB7D4) 
    166163STUB(FF90B5C0) 
    167 STUB(FF90B870) 
    168164STUB(FF918258) 
    169165STUB(FF918320) 
     
    194190STUB(FF94250C) 
    195191STUB(FF9425F4) 
    196 STUB(FF9427B0) 
     192STUB(FF9426A4) 
    197193STUB(FF9428AC) 
    198194STUB(FF942908) 
  • branches/philmoz/platform/ixus200_sd980/sub/101c/makefile.inc

    r1212 r1340  
    1414NEED_ENCODED_DISKBOOT=3 
    1515KEYSYS=d4 
    16 ifdef OPT_FI2 
    17 include  $(topdir)platform/fi2.inc 
    18 endif 
    19  
    20  
  • branches/philmoz/platform/ixus200_sd980/sub/101d/makefile.inc

    r1320 r1340  
    1414NEED_ENCODED_DISKBOOT=3 
    1515KEYSYS=d4 
    16 ifdef OPT_FI2 
    17 include  $(topdir)platform/fi2.inc 
    18 endif 
    19  
    20  
  • branches/philmoz/platform/ixus310_elph500hs

    • Property svn:ignore set to
      .dep
      *.a
      *.o
  • branches/philmoz/platform/ixus310_elph500hs/Makefile

    • Property svn:eol-style set to LF
  • branches/philmoz/platform/ixus310_elph500hs/kbd.c

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/lib.c

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/main.c

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/platform_camera.h

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/shooting.c

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/100a

    • Property svn:ignore set to
      .dep
      *.o
      *.a
      PRIMARY.BIN
  • branches/philmoz/platform/ixus310_elph500hs/sub/100a/Makefile

    • Property svn:eol-style set to LF
  • branches/philmoz/platform/ixus310_elph500hs/sub/100a/boot.c

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/100a/capt_seq.c

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/100a/lib.c

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/100a/makefile.inc

    • Property svn:eol-style set to LF
    r1321 r1340  
    33 
    44PLATFORMOS=dryos 
     5 
     6# Force EXMEM on for ixus310_elph500hs - not enough heap to work in low memory 
     7override OPT_EXMEM_MALLOC=1 
     8override OPT_CHDK_IN_EXMEM=1 
    59 
    610ROMBASEADDR=0xFF000000 
  • branches/philmoz/platform/ixus310_elph500hs/sub/100a/movie_rec.c

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/100a/stubs_asm.h

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/100a/stubs_auto.S

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/100a/stubs_entry.S

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/100a/stubs_entry_2.S

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/100a/stubs_min.S

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/101a

    • Property svn:ignore set to
      .dep
      *.o
      *.a
      PRIMARY.BIN
  • branches/philmoz/platform/ixus310_elph500hs/sub/101a/Makefile

    • Property svn:eol-style set to LF
  • branches/philmoz/platform/ixus310_elph500hs/sub/101a/boot.c

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/101a/capt_seq.c

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/101a/lib.c

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/101a/makefile.inc

    • Property svn:eol-style set to LF
    r1321 r1340  
    33 
    44PLATFORMOS=dryos 
     5 
     6# Force EXMEM on for ixus310_elph500hs - not enough heap to work in low memory 
     7override OPT_EXMEM_MALLOC=1 
     8override OPT_CHDK_IN_EXMEM=1 
    59 
    610ROMBASEADDR=0xFF000000 
  • branches/philmoz/platform/ixus310_elph500hs/sub/101a/movie_rec.c

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/101a/stubs_asm.h

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/101a/stubs_auto.S

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/101a/stubs_entry.S

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/101a/stubs_entry_2.S

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/101a/stubs_min.S

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus310_elph500hs/sub/Makefile

    • Property svn:eol-style set to LF
  • branches/philmoz/platform/ixus310_elph500hs/wrappers.c

    • Property svn:eol-style set to native
  • branches/philmoz/platform/ixus90_sd790/sub/100c/makefile.inc

    r870 r1340  
    1616 
    1717KEYSYS=d3enc 
    18 ifdef OPT_FI2 
    19 include  $(topdir)platform/fi2.inc 
    20 endif 
  • branches/philmoz/platform/ixus90_sd790/sub/100d/makefile.inc

    r1321 r1340  
    1616 
    1717KEYSYS=d3enc 
    18 ifdef OPT_FI2 
    19 include  $(topdir)platform/fi2.inc 
    20 endif 
    2118 
    2219#Possible firmware versions that are created from this one as copies 
Note: See TracChangeset for help on using the changeset viewer.