Changeset 1850


Ignore:
Timestamp:
05/14/12 02:37:11 (12 months ago)
Author:
reyalp
Message:

s100 updates from c10ud in http://chdk.setepontos.com/index.php?topic=650.msg85140#msg85140

  • long press power button to start in rec mode
  • adjust circle of confusion and default battery voltages
Location:
trunk/platform/s100
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/platform/s100/main.c

    r1792 r1850  
    5555} 
    5656 
    57 long get_vbatt_min() // TODO: 
     57long get_vbatt_min() 
    5858{ 
    59     return 3000; 
     59    return 3200; 
    6060} 
    6161 
    62 long get_vbatt_max() // TODO: 
     62long get_vbatt_max() 
    6363{ 
    64     return 4100; 
     64    return 4050; 
    6565} 
    6666 
  • trunk/platform/s100/notes.txt

    r1802 r1850  
    77 
    88CAMERA TODO/KNOWN ISSUES: 
    9 - manual loading with "firm update" loading crashes (confirmed on 100d and 101a), so PS.FI2 is not included in the autobuild. 
    10 - battery values min/max need to be checked 
    11 - circle_of_confusion value needs to be checked 
     9- manual loading with "firm update" loading crashes (confirmed on 100d and 101a), so PS.FI2 is not included in the autobuild. (to be fixed soon http://chdk.setepontos.com/index.php?topic=7889.msg85060#msg85060) 
    1210- various defines in platform_camera.h needs to be checked 
    1311- value for SleepTask in kbd.c instead of hardcoded 10 (minor issue) 
     
    1614- 100d, 100e, 101a: movie override quality seems to be working but values might be wrong (stock Canon reaches 4MB/s, CHDK quality 99 2MB/s) 
    1715- 100d, 100e, 101a: jogdial is untested and needs correct rear_dial_position address in stubs_min.S 
    18 - 100d, 100e, 101a: address and values for custom power-on need to be checked in boot.c 
  • trunk/platform/s100/shooting.c

    r1792 r1850  
    168168#endif 
    169169 
    170 int circle_of_confusion = 5; //TODO: 
     170int circle_of_confusion = 6; 
  • trunk/platform/s100/sub/100d/boot.c

    r1792 r1850  
    172172        *(int*)0x1938=(int)taskHook; 
    173173        *(int*)0x193C=(int)taskHook; // need this for startup in Playback mode (otherwise init_file_modules_task doesn't hook properly) 
    174      
    175         // TODO: check C022xxxx address and 0x800000 because it's always starting in PLAY mode 
    176     // replacement for correct power-on. see sub_FF024AF4 -> 0xFF05867C and/or SX40HS port 
    177         *(int*)(0x26E4) = (*(int*)0xC022F48C)&1 ? 0x200000 : 0x100000;  
     174 
     175        *(int*)(0x26E0+0x4) = (*(int*)0xC022F48C)&4 ? 0x200000 : 0x100000; 
    178176 
    179177asm volatile ( 
  • trunk/platform/s100/sub/100e/boot.c

    r1792 r1850  
    172172        *(int*)0x1938=(int)taskHook; 
    173173        *(int*)0x193C=(int)taskHook; // need this for startup in Playback mode (otherwise init_file_modules_task doesn't hook properly) 
    174      
    175         // TODO: check C022xxxx address and 0x800000 because it's always starting in PLAY mode 
    176     // replacement for correct power-on. see sub_FF024AF4 -> 0xFF05867C and/or SX40HS port 
    177         *(int*)(0x26E4) = (*(int*)0xC022F48C)&1 ? 0x200000 : 0x100000;  
     174 
     175        *(int*)(0x26E0+0x4) = (*(int*)0xC022F48C)&4 ? 0x200000 : 0x100000; 
    178176 
    179177asm volatile ( 
  • trunk/platform/s100/sub/101a/boot.c

    r1792 r1850  
    172172        *(int*)0x1938=(int)taskHook; 
    173173        *(int*)0x193C=(int)taskHook; // need this for startup in Playback mode (otherwise init_file_modules_task doesn't hook properly) 
    174      
    175         // TODO: check C022xxxx address and 0x800000 because it's always starting in PLAY mode 
    176     // replacement for correct power-on. see sub_FF024AF4 -> 0xFF05867C and/or SX40HS port 
    177         *(int*)(0x26E4) = (*(int*)0xC022F48C)&1 ? 0x200000 : 0x100000;  
     174 
     175        *(int*)(0x26E0+0x4) = (*(int*)0xC022F48C)&4 ? 0x200000 : 0x100000; 
    178176 
    179177asm volatile ( 
Note: See TracChangeset for help on using the changeset viewer.