Ignore:
Timestamp:
09/19/10 22:52:57 (3 years ago)
Author:
reyalp
Message:

experimental reboot support. See http://chdk.setepontos.com/index.php/topic,5648.msg55194.html#msg55194

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/platform.h

    r871 r944  
    485485unsigned call_func_ptr(void *func, const unsigned *args, unsigned n_args); 
    486486 
     487/* 
     488 shut down the display and reboot the camera.  
     489 bootfile is the name of the file to boot. 
     490  Must be an unencoded ARM binary, will be loaded at 0x1900 
     491  For cameras which use encoded diskboot, loader/<camera>/main.bin may be used 
     492  For cameras which do not use encoded diskboot, DISKBOOT.BIN may be used 
     493  No sanity checking is performed on the binary, except that the size is >= 4 bytes 
     494 If bootfile is NULL, camera firmware is rebooted. DISKBOOT.BIN will be loaded or not according to normal rules 
     495 returns 0 on failure, does not return on success 
     496 does NOT save camera settings to flash 
     497 does NOT retract lens before rebooting 
     498 calling from playback mode is recommended 
     499*/ 
     500int reboot(const char *bootfile); 
    487501 
    488502#define started() debug_led(1) 
Note: See TracChangeset for help on using the changeset viewer.