source: trunk/platform/sx30/sub/100l/stubs_entry_2.S @ 1086

Revision 1086, 6.2 KB checked in by reyalP, 2 years ago (diff)

sx30 and g12 updates from philmoz in http://chdk.setepontos.com/index.php?topic=650.msg62654#msg62654

  • Fixes startup crash (hopefully) by using different 'Open' firmware function (G12 & SX30). (see
  • Added ND filter to G12 (from CHDK-DE).
  • Faster motion detect by implementing vid_get_viewport_live_fb (G12 & SX30).
  • Fixed bracketing in continuous shooting mode when timer enabled.

generic MD optimization will be in a separate commit

  • Property svn:eol-style set to native
Line 
1#include "stubs_asm.h"
2
3# Confirmed
4NHSTUB(qsort,                                                   0xFFB40804) // ok (comp 1.00h)
5NHSTUB(strtol,                                                  0xFF840A30) // ok (comp 1.00h)
6NHSTUB(EnterToCompensationEVF,                  0xFF838D44) // ok (comp 1.00h)
7NHSTUB(ExitFromCompensationEVF,                 0xFF838D88) // ok (comp 1.00h)
8NHSTUB(GetBatteryTemperature,                   0xFF8697AC) // ok (comp 1.00h)
9NHSTUB(GetCCDTemperature,                               0xFF869738) // ok (comp 1.00h)
10NHSTUB(GetCurrentAvValue,                               0xFF980680) // ok (comp 1.00h)
11NHSTUB(GetParameterData,                                0xFF9C2814) // ok (comp 1.00h)
12NHSTUB(GetZoomLensCurrentPoint,                 0xFF87EE4C)     // ok (comp 1.00h)
13NHSTUB(GetZoomLensCurrentPosition,              0xFF9864AC) // ok (comp 1.00h)
14NHSTUB(PT_PlaySound,                                    0xFF88E660) // ok (comp 1.00h)
15NHSTUB(ReadFastDir,                                             0xFFACE02C) // ok (comp 1.00h)
16NHSTUB(readfastdir,                                             0xFFACE02C) // alias for ReadFastDir
17NHSTUB(Remove,                                                  0xFF837110) // ok (comp 1.00h)
18NHSTUB(SetParameterData,                                0xFF9C26EC) // ok (comp 1.00h)
19NHSTUB(TurnOffBackLight,                                0xFF8B059C) // ok (comp 1.00h)
20NHSTUB(TurnOnBackLight,                                 0xFF8B0584) // ok (comp 1.00h)
21NHSTUB(Lseek,                                                   0xff8371f8) // ok (comp 1.00h)
22NHSTUB(free,                                                    0xFF814244) // ok (comp 1.00h)
23NHSTUB(Close,                                                   0xff8370dc) // ok (comp 1.00h)
24NHSTUB(ExitTask,                                                0xff81eb30) // ok (comp 1.00h)
25NHSTUB(FreeUncacheableMemory,                   0xff83afd8) // ok (comp 1.00h)
26NHSTUB(GetDrive_ClusterSize,                    0xFF87724C) // ok (comp 1.00h)
27NHSTUB(GetDrive_TotalClusters,                  0xFF877280) // ok (comp 1.00h)
28NHSTUB(GetDrive_FreeClusters,                   0xFF8772AC) // ok (comp 1.00h)
29NHSTUB(GetFocusLensSubjectDistance,             0xff97ea80) // ok (comp 1.00h)
30NHSTUB(GetFocusLensSubjectDistanceFromLens, 0xff97eef8) // ok (comp 1.00h)
31NHSTUB(GetOpticalTemperature,                   0xff869820) // ok (comp 1.00h)
32NHSTUB(GetPropertyCase,                                 0xFF8999CC) // ok (comp 1.00h)
33NHSTUB(GetSystemTime,                                   0xFFAEE208) // ok (comp 1.00h)
34NHSTUB(IsStrobeChargeCompleted,                 0xFF8EC16C) // ok (comp 1.00h)
35NHSTUB(LockMainPower,                                   0xFF8A0294) // ok (comp 1.00h)
36NHSTUB(MakeDirectory_Fut,                               0xff836ac8) // ok (comp 1.00h)
37NHSTUB(MoveFocusLensToDistance,                 0xFFB52FB8) // ok (comp 1.00h)
38NHSTUB(MoveZoomLensWithPoint,                   0xFFAE96B4)     // ok (comp 1.00h)
39NHSTUB(NewTaskShell,                                    0xff8993e8) // ok (comp 1.00h)
40NHSTUB(Open,                                                    0xFF81AADC)     // update 5/3/2011 to fix crash startup
41NHSTUB(PostLogicalEventForNotPowerType, 0xff89e02c) // ok (comp 1.00h)
42NHSTUB(PostLogicalEventToUI,                    0xff89e078) // ok (comp 1.00h)
43NHSTUB(RenameFile_Fut,                                  0xFF8369C0) // ok (comp 1.00h)
44NHSTUB(rename,                                                  0xFF8369C0) // same as RenameFile_Fut
45NHSTUB(SetAutoShutdownTime,                             0xff8a0308) // ok (comp 1.00h)
46NHSTUB(SetCurrentCaptureModeType,               0xff8a922c) // ok (comp 1.00h)
47NHSTUB(SetFileTimeStamp,                                0xFF837378) // ok (comp 1.00h)
48NHSTUB(SetLogicalEventActive,                   0xff89ffd0) // ok (comp 1.00h)
49NHSTUB(SetPropertyCase,                                 0xff8998a4) // ok (comp 1.00h)
50NHSTUB(SleepTask,                                               0xff83ac1c) // ok (comp 1.00h)
51NHSTUB(TakeSemaphore,                                   0xff83a8e4) // ok (comp 1.00h)
52NHSTUB(UnlockMainPower,                                 0xff8a01e8) // ok (comp 1.00h)
53NHSTUB(VbattGet,                                                0xFF833178) // ok (comp 1.00h)
54NHSTUB(closedir,                                                0xFFACDE88) // ok (comp 1.00h)
55NHSTUB(closefastdir,                                    0xFFACDE88) // same as closedir
56NHSTUB(kbd_p1_f,                                                0xff834a68) // ok (comp 1.00h)
57NHSTUB(kbd_p1_f_cont,                                   0xff834a74) // ok (comp 1.00h)
58NHSTUB(kbd_read_keys,                                   0xFF8349F0) // ok (comp 1.00h)
59NHSTUB(kbd_p2_f,                                                0xff8342b8) // ok (comp 1.00h)
60NHSTUB(kbd_read_keys_r2,                                0xff8651a4) // ok (comp 1.00h)
61NHSTUB(lseek,                                                   0xff8371f8) // same as Lseek
62NHSTUB(mkdir,                                                   0xff837578) // ok (comp 1.00h)
63NHSTUB(opendir,                                                 0xFFACDED8) // ok (comp 1.00h)
64NHSTUB(openfastdir,                                             0xFFACDED8) // same as opendir
65NHSTUB(reboot_fw_update,                                0xFFAD344C) // ok (comp 1.00h)
66NHSTUB(strcat,                                                  0xFF8B9A20) // ok (comp 1.00h)
67NHSTUB(strchr,                                                  0xff8140b4) // ok (comp 1.00h)
68NHSTUB(strlen,                                                  0xff814100) // ok (comp 1.00h)
69NHSTUB(strncpy,                                                 0xFF81402C) // ok (comp 1.00h)
70NHSTUB(strrchr,                                                 0xFF8140D8) // ok (comp 1.00h)
71NHSTUB(time,                                                    0xff893b8c) // ok (comp 1.00h)
72NHSTUB(LEDDrive,                                                0xFF98EE30) // ok (comp 1.00h)
73NHSTUB(SetScriptMode,                                   0xff8a0020) // ok (comp 1.00h)
74NHSTUB(UnlockAndRefresh,                                0xFF8B823C) // ok (comp 1.00h)
75NHSTUB(RefreshPhysicalScreen,                   0xFF8B823C) // alias for UnlockAndRefresh
76NHSTUB(LockAndRefresh,                              0xFF8B97DC) // ok (comp 1.00h)
77NHSTUB(apex2us,                                                 0xFFA4E9F0) // ok (comp 1.00h)
78NHSTUB(WriteSDCard,                                             0xFF96DAB4) // ok (comp 1.00h)
79NHSTUB(GetKbdState,                                             0xFF865A28) // ok (comp 1.00h)
80NHSTUB(UnlockAF,                                                0xFF838AF0) // ok (comp 1.00h)
81NHSTUB(DoAFLock,                                                0xFF838AB8) // ok (comp 1.00h)
82NHSTUB(PT_MoveOpticalZoomAt,                    0xFF883C08)     // ok (comp 1.00h)
83NHSTUB(GetImageFolder,                                  0xFF95F0F0)     // function before 'GetCameraObjectTmpPath ERROR' string
84NHSTUB(UpdateMBROnFlash,                                0xFF8770CC) // Search for 'BOOTDISK', function branches to this at end (after setting up R0,R1,R2)
85NHSTUB(PB2Rec,                          0xFF8A30FC)
86NHSTUB(Rec2PB,                          0xFF8A1B40)
87NHSTUB(exmem_alloc,                                             0xFF8944F8)     // search for ExMem.AllocCacheable (from reyalp)
88
89# from stubs_entry_ida.S
90NHSTUB(eventproc_export_PostLogicalEventToUI, 0xff89e078)
91NHSTUB(eventproc_export_SleepTask, 0xff83ac1c)
92NHSTUB(eventproc_export_ExitTask, 0xff81eb30)
93NHSTUB(eventproc_export_TakeSemaphore, 0xff83a8e4)
94NHSTUB(eventproc_export_GiveSemaphore, 0xff83a9b4)
95NHSTUB(eventproc_export_HardwareDefect, 0xff8a0538)
96
97# Misc
98NHSTUB(DebugAssert,                                             0xFF81EB78)
99NHSTUB(PT_GetPropertyCaseString,                        0xFF8999CC)
100NHSTUB(takeSemaphore,                                           0xFF83ADC4)
101NHSTUB(err_init_task,                                           0xFF815FD4)
102
103# Addresses for firmware task handlers (used in taskHook)
104DEF(task_CaptSeq,                                               0xFF8868C4)
105DEF(task_InitFileModules,                               0xFF8A3B50)
106DEF(task_RotaryEncoder,                                 0xFF865D08)
107DEF(task_MovieRecord,                                   0xFF88334C)
108DEF(task_ExpDrv,                                                0xFF8D081C)
109
110# Missing
111NHSTUB(kbd_pwr_off,                                             0xFF810B1C)                                                             // ??? not on sx20 or s95
112NHSTUB(kbd_pwr_on,                                              0xFF810B1C)                                                             // ??? not on sx20 or s95
113NSTUB(rand,                                                             0xFF810B1C) // ??? could not find use C version from S95 wrappers
114NSTUB(srand,                                                    0xFF810B1C) // ??? could not find use C version from S95 wrappers
115NHSTUB(UIFS_WriteFirmInfoToFile,                0xFF810B1C)     // Is this needed?
116NHSTUB(rewinddir,                                               0xFF810B1C)
117NHSTUB(SetZoomActuatorSpeedPercent,             0xFF810B1C)
118NHSTUB(Unmount_FileSystem,                              0xFF810B1C)
119NHSTUB(Mount_FileSystem,                                0xFF810B1C)
Note: See TracBrowser for help on using the repository browser.