Ignore:
Timestamp:
11/04/09 03:16:09 (4 years ago)
Author:
reyalp
Message:

First part of mode override support. See http://chdk.kernreaktor.org/mantis/view.php?id=64
+ support for posting logical events, and other event fuctions in lua
+ script support for setting mode to play or rec. Note, get_mode will currently return incorrect values on many cameras if the mode is set this way, which will affect both script and some CHDK functions. This will be addressed in a future version.
+ logical event related entry point SetLogicalEventActive? for all cameras except ixus40_sd300
+ logical event related entry points SetScriptMode?, PostLogicalEventForNotPowerType?, PostLogicalEventToUI for all cameras
+ entry SetCurrentCaptureModeType? for all cameras except ixus40_sd300 ixus50_sd400 (might be right, unsure). This will be used to support capture mode overrides in a future version, not currently exposed.
+ playrec_mode variable for all cameras except ixus40_sd300 ixus50_sd400. This will allow mode_get in future version to return the right result on cameras that depended on the physw_status bits of the mod/rec hardware switch
+ to tools:

  • generic dump access code dumputil.c, dumputil.h
  • find_levent.c finds and optionally dumps levent table
  • find_eventproc.c very dumb/simple search for name/pointer pairs, useful for eventprocs that are too small for finsig These are not added to "make all" in tools, because they are not needed in the normal build process. Use the executable name or "make extras" in tools.

Except as noted above, all the entry points and addresses have been verified with at least a superficial check

New firmware function descriptions:
See comments in lowlevel.h
See: http://chdk.setepontos.com/index.php/topic,3228.msg42218.html#msg42218 for more detail on SetLogicalEventActive? and SetScriptMode?

New firmware variable descriptions:
levent_table: see description in levent.h
playrec_mode: see description in lowlevel.h

New script functions: see comments in core/luascript.c or http://chdk.setepontos.com/index.php/topic,3228.msg42842.html#msg42842

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/platform/ixus750_sd550/sub/100f/stubs_entry.S

    r713 r826  
    5959// Best match: 96% 
    6060NSTUB(PhySw_testgpio, 0xff8288c0) 
     61NSTUB(PostLogicalEventForNotPowerType, 0xff95c1f4) 
     62NSTUB(PostLogicalEventToUI, 0xff95c280) 
     63// ALT: NSTUB(PostLogicalEventToUI, 0xff95c318) // 25/0 
    6164NSTUB(ProtectFile, 0xff867dd8) 
    6265// Best match: 92% 
     
    7679// Best match: 96% 
    7780NSTUB(SetAutoShutdownTime, 0xff9600a4) 
     81NSTUB(SetCurrentCaptureModeType, 0xff98ca70) 
     82// Best match: 87% 
     83NSTUB(SetLogicalEventActive, 0xff95e250) 
    7884NSTUB(SetParameterData, 0xff964bf8) 
    7985NSTUB(SetPropertyCase, 0xff825414) 
Note: See TracChangeset for help on using the changeset viewer.