Assembla home | Assembla project page
 

Changeset 749

Show
Ignore:
Timestamp:
04/21/09 18:57:36 (11 months ago)
Author:
phyrephox
Message:

+ sx110 (port done by yarvieh & chdkj, see http://chdk.setepontos.com/index.php/topic,2838.0.html)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Makefile

    r748 r749  
    210210        $(MAKE) -s --no-print-directory PLATFORM=a470  PLATFORMSUB=101b NO_INC_BUILD=1 firzipsub 
    211211        $(MAKE) -s --no-print-directory PLATFORM=a470  PLATFORMSUB=102c NO_INC_BUILD=1 firzipsub 
     212        $(MAKE) -s --no-print-directory PLATFORM=sx110is  PLATFORMSUB=100b NO_INC_BUILD=1 firzipsub 
    212213        @echo "**** All firmwares created successfully" 
    213214        @echo "**** Copying duplicate Firmwares" 
     
    304305        $(MAKE) -s --no-print-directory PLATFORM=a470  PLATFORMSUB=101b NO_INC_BUILD=1 firzipsubcomplete 
    305306        $(MAKE) -s --no-print-directory PLATFORM=a470  PLATFORMSUB=102c NO_INC_BUILD=1 firzipsubcomplete 
     307        $(MAKE) -s --no-print-directory PLATFORM=sx110is  PLATFORMSUB=100b NO_INC_BUILD=1 firzipsubcomplete 
    306308        @echo "**** All zipfiles including firmwares and extra stuff created successfully" 
    307309        @echo "**** Copying duplicate Firmwares" 
     
    412414        $(MAKE) -s --no-print-directory PLATFORM=a470  PLATFORMSUB=101b NO_INC_BUILD=1 clean 
    413415        $(MAKE) -s --no-print-directory PLATFORM=a470  PLATFORMSUB=102c NO_INC_BUILD=1 clean 
     416        $(MAKE) -s --no-print-directory PLATFORM=sx110is  PLATFORMSUB=100b NO_INC_BUILD=1 clean 
    414417 
    415418.PHONY: fir upload 
  • trunk/core/gui.c

    r747 r749  
    7171 // KEY_LEFT/KEY_RIGHT is used for gui_subj_dist_override_value_enum (because of no separate ZOOM_IN/OUT) 
    7272  
    73 #elif defined(CAMERA_g7) || defined(CAMERA_sx10) || defined(CAMERA_sx1) 
     73#elif defined(CAMERA_g7) || defined(CAMERA_sx10) || defined(CAMERA_sx1) ||defined(CAMERA_sx110is) 
    7474//Alt mode 
    7575 #define SHORTCUT_TOGGLE_RAW          KEY_ERASE 
     
    9595 #define SHORTCUT_SET_HYPERFOCAL      KEY_DOWN 
    9696 
    97  
    98 #else 
     97 #else 
    9998 
    10099//Alt mode 
     
    14331432    static const char* names[]={ "Print", "ISO"}; 
    14341433    static const int keys[]={ KEY_PRINT, KEY_ISO }; 
    1435 #elif defined(CAMERA_sx100is) 
     1434#elif defined(CAMERA_sx100is) || defined(CAMERA_sx110is) 
    14361435    static const char* names[]={ "Print", "Face"}; 
    14371436    static const int keys[]={ KEY_PRINT, KEY_FACE }; 
  • trunk/core/kbd.c

    r747 r749  
    106106#endif 
    107107// ------ add by Masuji SUTO (end)   -------------- 
    108 #if defined(CAMERA_sx100is) 
     108#if defined(CAMERA_sx100is) || defined(CAMERA_sx110is) 
    109109#define ZSTEP_TABLE_SIZE 8 
    110110static int nTxtbl[]={0,3,6,9,13,16,20,23}; 
  • trunk/include/camera.h

    r747 r749  
    17921792     #define CAM_EXT_TV_RANGE            1 
    17931793//----------------------------------------------------------  
     1794        //******** 
     1795        /////SX110 
     1796        //******** 
     1797                 
     1798#elif defined (CAMERA_sx110is) 
     1799    #define CAM_PROPSET                 2 
     1800    #define CAM_DRYOS                   1 
     1801          #define CAM_RAW_ROWPIX              3720   
     1802    #define CAM_RAW_ROWS                2772   
     1803    #undef CAM_SYNCH  
     1804    #define CAM_CAN_MUTE_MICROPHONE     1  
     1805//    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1         //not needed??? 
     1806    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1 
     1807    #define CAM_REAR_CURTAIN            1 
     1808//    #define CAM_SWIVEL_SCREEN           1             //not needed??? 
     1809    #define CAM_ADJUSTABLE_ALT_BUTTON   1 
     1810    #undef  CAM_CAN_SD_OVER_NOT_IN_MF 
     1811    #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 
     1812//    #define CAM_HAS_VIDEO_BUTTON       1              //? 
     1813//    #define VIDEO_QUALITY_ONLY          1     //? 
     1814//    #define CAM_BRACKETING              1     //? 
     1815    #undef  CAM_VIDEO_CONTROL                                    
     1816    #define CAM_MULTIPART               1 
     1817    #define CAM_HAS_JOGDIAL             1 
     1818    #undef  CAM_USE_ZOOM_FOR_MF 
     1819    #undef  CAM_UNCACHED_BIT  // shut up compiler 
     1820    #define CAM_UNCACHED_BIT    0x40000000 
     1821        #undef CAM_SENSOR_BITS_PER_PIXEL 
     1822    #define CAM_SENSOR_BITS_PER_PIXEL   12 
     1823        #undef CAM_WHITE_LEVEL 
     1824    #define CAM_WHITE_LEVEL             ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) 
     1825    #define DNG_SUPPORT                 1 
     1826    // camera name 
     1827    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 
     1828//JS: need to be adjusted 
     1829//    #undef  CAM_SENSOR_BITS_PER_PIXEL 
     1830//    #undef  CAM_WHITE_LEVEL 
     1831//    #undef  CAM_BLACK_LEVEL 
     1832//    #define CAM_BLACK_LEVEL             127           //JS? 
     1833//    #define CAM_SENSOR_BITS_PER_PIXEL   10            //JS:? 
     1834//              #define CAM_WHITE_LEVEL             ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1) 
     1835         
     1836 
     1837    // pattern 
     1838// js: need to be adjusted 
     1839     
     1840    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue 
     1841    // color 
     1842                #define CAM_COLORMATRIX1                               \ 
     1843      1413400, 1000000, -557600,  1000000, -152700,  1000000, \ 
     1844     -659100,  1000000, 1071900,  1000000,  127300,  1000000, \ 
     1845     -115800,  1000000, 292900,   1000000,  358100,  1000000 
     1846    #define cam_CalibrationIlluminant1 1 // Daylight 
     1847    // cropping 
     1848// js: next 6 lines need to be adjusted 
     1849    #define CAM_JPEG_WIDTH  3456 //js: ok 
     1850    #define CAM_JPEG_HEIGHT 2592        //js: ok 
     1851    #define CAM_ACTIVE_AREA_X1 0 //js: ? 
     1852    #define CAM_ACTIVE_AREA_Y1 0 //js: ? 
     1853    #define CAM_ACTIVE_AREA_X2 3720 //js: ? 
     1854    #define CAM_ACTIVE_AREA_Y2 2772 //js:? 
     1855    // camera name  
     1856    #define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 
     1857 
     1858//    #define DNG_EXT_FROM ".CR2" //not needed? 
     1859 
     1860         
     1861//---------------------------------------------------------- 
    17941862 
    17951863#else 
  • trunk/include/platform.h

    r740 r749  
    7070MODE_SCN_SUNSET         , 
    7171MODE_SCN_UNDERWATER     , 
     72MODE_EASY               , 
    7273}; 
    7374 
  • trunk/makefile.inc

    r743 r749  
    2626 
    2727#PLATFORM=sx100is 
     28#PLATFORMSUB=100b 
     29 
     30#PLATFORM=sx110is 
    2831#PLATFORMSUB=100b 
    2932 
  • trunk/platform/sx100is

    • Property svn:ignore set to
      .dep
      *.a
      *.o