Changeset 770


Ignore:
Timestamp:
06/04/09 21:29:57 (4 years ago)
Author:
reyalp
Message:

a470 work from Mrspoon and Thorwak in http://chdk.setepontos.com/index.php/topic,3368.180.html

  • add 101a as a copy of 101b (needs confirmation)
  • other tweaks described in thread
Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r760 r770  
    226226        cp $(topdir)bin/$(VER)-g9-100g-$(BUILD_NUMBER).zip $(topdir)bin/$(VER)-g9-100f-$(BUILD_NUMBER).zip 
    227227        cp $(topdir)bin/$(VER)-g9-100i-$(BUILD_NUMBER).zip $(topdir)bin/$(VER)-g9-100h-$(BUILD_NUMBER).zip 
     228        cp $(topdir)bin/$(VER)-a470-101b-$(BUILD_NUMBER).zip $(topdir)bin/$(VER)-a470-101a-$(BUILD_NUMBER).zip 
    228229        mv $(topdir)bin/$(VER)-sx1-200h-$(BUILD_NUMBER).zip $(topdir)bin/$(VER)-sx1-200h-$(BUILD_NUMBER)_BETA.zip 
    229230        mv $(topdir)bin/$(VER)-ixus980_sd990-100e-$(BUILD_NUMBER).zip $(topdir)bin/$(VER)-ixus980_sd990-100e-$(BUILD_NUMBER)_BETA.zip 
     
    337338        cp $(topdir)bin/g9-100i-$(BUILD_NUMBER)-full.zip $(topdir)bin/g9-100h-$(BUILD_NUMBER)-full.zip 
    338339        cp $(topdir)bin/g9-100i-$(BUILD_NUMBER).zip $(topdir)bin/g9-100h-$(BUILD_NUMBER).zip 
     340        cp $(topdir)bin/a470-101b-$(BUILD_NUMBER)-full.zip $(topdir)bin/a470-101a-$(BUILD_NUMBER)-full.zip 
     341        cp $(topdir)bin/a470-101b-$(BUILD_NUMBER).zip $(topdir)bin/a470-101a-$(BUILD_NUMBER).zip 
    339342        mv $(topdir)bin/sx1-200h-$(BUILD_NUMBER)-full.zip $(topdir)bin/sx1-200h-$(BUILD_NUMBER)-full_BETA.zip 
    340343        mv $(topdir)bin/sx1-200h-$(BUILD_NUMBER).zip $(topdir)bin/sx1-200h-$(BUILD_NUMBER)_BETA.zip 
  • trunk/include/camera.h

    r767 r770  
    214214    #define CAM_RAW_ROWS                2340   // for 7 MP 
    215215 
     216        #undef  CAM_USE_ZOOM_FOR_MF 
     217        #undef  CAM_HAS_ZOOM_LEVER 
     218        #undef  CAM_HAS_ERASE_BUTTON 
     219        #undef  CAM_HAS_IRIS_DIAPHRAGM 
     220        #define CAM_HAS_ND_FILTER           1 
     221        #undef  CAM_HAS_MANUAL_FOCUS 
     222        #undef  CAM_HAS_USER_TV_MODES 
     223        #define CAM_SHOW_OSD_IN_SHOOT_MENU  1 
     224        #undef  CAM_HAS_IS 
     225        #define CAM_CAN_MUTE_MICROPHONE     1 
     226        #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 
     227        #define CAM_EV_IN_VIDEO             1 
    216228        #define DNG_SUPPORT                 1 
    217         #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 
    218     #define CAM_EV_IN_VIDEO             1 
    219     // pattern 
    220     #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue 
    221     // color 
    222     #define CAM_COLORMATRIX1                               \ 
    223       649324,  1000000,-233893, 1000000, -88521, 1000000,  \ 
    224      -158955,  1000000, 593407, 1000000,  69775, 1000000,  \ 
    225       -44551,  1000000, 136891, 1000000, 254362, 1000000    
    226      
    227     #define cam_CalibrationIlluminant1 1 // Daylight 
    228     // cropping 
    229     #define CAM_JPEG_WIDTH  2592 
    230     #define CAM_JPEG_HEIGHT 1944 
    231     #define CAM_ACTIVE_AREA_X1 6 
    232     #define CAM_ACTIVE_AREA_Y1 6 
    233     #define CAM_ACTIVE_AREA_X2 2618 
    234     #define CAM_ACTIVE_AREA_Y2 1962 
     229        //#define CAM_MULTIPART               1 
     230         
     231    // pattern 
     232    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue 
     233    // color 
     234    #define CAM_COLORMATRIX1                             \ 
     235        673251,  1000000,-200684, 1000000, -98680, 1000000,  \ 
     236        -163638, 1000000, 651247, 1000000,  74004, 1000000,  \ 
     237        14221,   1000000, 52979,  1000000, 265291, 1000000     
     238    #define cam_CalibrationIlluminant1 1 // Daylight 
     239    // cropping 
     240        #define CAM_JPEG_WIDTH  3096 
     241        #define CAM_JPEG_HEIGHT 2324 
     242        #define CAM_ACTIVE_AREA_X1 12 
     243        #define CAM_ACTIVE_AREA_Y1 8 
     244        #define CAM_ACTIVE_AREA_X2 3108 
     245        #define CAM_ACTIVE_AREA_Y2 2332 
    235246    // camera name 
    236247    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 
  • trunk/loader/a470/main.c

    r739 r770  
    2222} 
    2323 
    24 #define LED_PR 0xc0220080 
    25 //#define LED_PR 0xC02200D4 
    26  
     24#define LED_PR 0xc022008C 
    2725 
    2826static void __attribute__((noreturn)) shutdown() 
    2927{ 
    30     //volatile long *p = (void*)0xc02200a0;       // what does this LED? Powe 
    31     volatile long *p = (void*)LED_PR;       // turned off later, so assumed to be power 
     28    volatile long *p = (void*)0xc02200a0;     // http://chdk.setepontos.com/index.php/topic,3227.0.html - power switch? 
     29    //volatile long *p = (void*)LED_PR; 
    3230         
    3331    asm( 
     
    4240    while(1); 
    4341} 
    44  
    4542 
    4643static void __attribute__((noreturn)) panic(int cnt) 
  • trunk/platform/a470/kbd.c

    r739 r770  
    2222 
    2323#define KEYS_MASK0 (0x00000000) 
    24 #define KEYS_MASK1 (0xC0800000) 
    25 #define KEYS_MASK2 (0x1FFF) 
     24#define KEYS_MASK1 (0x00000000) 
     25#define KEYS_MASK2 (0x153F) 
    2626 
    2727#define NEW_SS (0x2000) 
     
    441441        { 2, KEY_SHOOT_HALF     , 0x00000010 },   
    442442        { 2, KEY_MENU           , 0x00000400 },  
    443         { 2, KEY_DISPLAY        , 0x00000111 },  
    444443        { 2, KEY_PRINT          , 0x00001000 }, // 
    445444        { 0, 0, 0 } 
  • trunk/platform/a470/lib.c

    r739 r770  
    1818 
    1919 
    20 #define LED_PR 0xc0220080 
     20#define LED_PR 0xc022008C 
    2121 
    2222void debug_led(int state) 
  • trunk/platform/a470/sub/101b/stubs_entry_2.S

    r739 r770  
    1616NHSTUB(PostLogicalEventForNotPowerType, 0xFFC5ABD8) 
    1717NHSTUB(RefreshUSBMode,                                  0xFFC27730) 
     18NHSTUB(TurnOnMic,                                               0xFFC31170) 
     19NHSTUB(TurnOffMic,                                              0xFFC311C4) 
     20  
     21NHSTUB(PutInNdFilter,                                   0xFFE267B0) 
     22NHSTUB(PutOutNdFilter,                                  0xFFE267E8) 
    1823 
    1924//NSTUB(AllocateMemory,                                 0xFFDF1D70) 
  • trunk/platform/a470/sub/102c/stubs_entry_2.S

    r739 r770  
    1616NHSTUB(PostLogicalEventForNotPowerType, 0xFFC5B0F4) 
    1717NHSTUB(RefreshUSBMode,                                  0xFFC27730) 
     18NHSTUB(TurnOnMic,                                               0xFFC31634) 
     19NHSTUB(TurnOffMic,                                              0xFFC31660) 
     20  
     21NHSTUB(PutInNdFilter,                                   0xFFE271F0) 
     22NHSTUB(PutOutNdFilter,                                  0xFFE27228) 
    1823 
    1924//NSTUB(AllocateMemory,                                 0xFFDF1D70) 
Note: See TracChangeset for help on using the changeset viewer.