Changeset 343 for trunk/core/main.c


Ignore:
Timestamp:
03/24/08 08:37:45 (5 years ago)
Author:
cail
Message:

Native camera stdout log support.
Enabled only for ixus65.
To use: stdout.txt file should be created in the root of the card.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/main.c

    r295 r343  
    88#include "raw.h" 
    99#include "motion_detector.h" 
     10 
    1011 
    1112static int raw_need_postprocess; 
     
    4243        fd = open(fn, O_WRONLY|O_CREAT, 0777); 
    4344        if (fd) { 
     45#ifdef CAMERA_ixus65_sd630 // Zero is not readable on ixus65! 
     46            write(fd, (int*)0xFFFF0000, 4); 
     47            write(fd, (int*)4, 0x1900-4); 
     48#else 
    4449            write(fd, (void*)0, 0x1900); 
     50#endif 
    4551            write(fd, (void*)0x1900, 32*1024*1024-0x1900); 
    4652            close(fd); 
     
    8187    md_init(); 
    8288 
     89#if CAM_CONSOLE_LOG_ENABLED 
     90    console_init(); 
     91#endif 
     92 
    8393    mkdir("A/CHDK"); 
    8494    mkdir("A/CHDK/FONTS"); 
Note: See TracChangeset for help on using the changeset viewer.