CHDK_DE Vorschauversion  Trunk Rev. 5251
 Alle Datenstrukturen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
filewrite.c-Dateireferenz
#include "lolevel.h"
#include "platform.h"
#include "../../../generic/filewrite.c"
+ Include-Abhängigkeitsdiagramm für filewrite.c:

gehe zum Quellcode dieser Datei

Datenstrukturen

struct  cam_ptp_data_chunk
 
struct  fwt_data_struct
 

Makrodefinitionen

#define MAX_CHUNKS_FOR_JPEG   7
 

Funktionen

void _LogCameraEvent (int id, const char *fmt,...)
 
void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Makro-Dokumentation

#define MAX_CHUNKS_FOR_JPEG   7

Definiert in Zeile 13 der Datei filewrite.c.

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

*-------------------------------------------------------------------—

!!

IS_ERROR( hSoundHandle )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

"MOV R3, #0\n" "STR R3, [R9]\n"

TODO! below is from sd400

"MOV R3, #0\n" "STR R3, [R9]\n"

TODO! below is from sd400

__MovieRecorder_c__100

__MovieRecorder_c__100

ASM1989 -> In sx200:FF857190 //"Mounter.c"

ASM1989 -> In sx200:FF81B284 // DebugAssert

Definiert in Zeile 54 der Datei filewrite.c.

54  {
55 asm volatile (
56 // -f=chdk -s=task_FileWrite -c=73 -stubs PRIMARY.BIN 0xfc000000
57 // task_FileWriteTask 0xfc05509d
58 " push {r2, r3, r4, r5, r6, lr}\n"
59 " ldr r5, =0x0001b294\n"
60 "loc_fc0550a0:\n"
61 " movs r2, #0\n"
62 " add r1, sp, #4\n"
63 " ldr r0, [r5, #0x10]\n"
64 " blx sub_fc251bfc\n" // j_ReceiveMessageQueue
65 " cbz r0, loc_fc0550b8\n"
66 " movs r0, #0\n"
67 " movw r2, #0x3ef\n"
68 " ldr r1, =0xfc05522c\n" // *"dwFWrite.c"
69 " blx sub_fc251d14\n" // j_DebugAssert
70 "loc_fc0550b8:\n"
71 " ldr r0, [sp, #4]\n"
72 " ldr r1, [r0]\n"
73 " cmp r1, #0xd\n"
74 " bhs loc_fc0550a0\n"
75 " tbb [pc, r1]\n" // (jumptable r1 13 elements)
76 "branchtable_fc0550c4:\n"
77 " .byte((loc_fc05515e - branchtable_fc0550c4) / 2)\n" // (case 0)
78 " .byte((loc_fc05515e - branchtable_fc0550c4) / 2)\n" // (case 1)
79 " .byte((loc_fc05515e - branchtable_fc0550c4) / 2)\n" // (case 2)
80 " .byte((loc_fc05515e - branchtable_fc0550c4) / 2)\n" // (case 3)
81 " .byte((loc_fc05515e - branchtable_fc0550c4) / 2)\n" // (case 4)
82 " .byte((loc_fc05515e - branchtable_fc0550c4) / 2)\n" // (case 5)
83 " .byte((loc_fc05515e - branchtable_fc0550c4) / 2)\n" // (case 6)
84 " .byte((loc_fc055164 - branchtable_fc0550c4) / 2)\n" // (case 7)
85 " .byte((loc_fc0550d2 - branchtable_fc0550c4) / 2)\n" // (case 8)
86 " .byte((loc_fc0550fc - branchtable_fc0550c4) / 2)\n" // (case 9)
87 " .byte((loc_fc05511c - branchtable_fc0550c4) / 2)\n" // (case 10)
88 " .byte((loc_fc0550d8 - branchtable_fc0550c4) / 2)\n" // (case 11)
89 " .byte((loc_fc0550f6 - branchtable_fc0550c4) / 2)\n" // (case 12)
90 ".align 1\n"
91 "loc_fc0550d2:\n"
92 " bl sub_fc0552b4\n"
93 " b loc_fc0550a0\n"
94 "loc_fc0550d8:\n"
95 " mov r4, r0\n"
96 " adds r0, #0x58\n"
97 " mov r6, r0\n"
98 " bl sub_fc2a4df0\n"
99 " movs r1, #0\n"
100 " bl sub_fc05cd5e\n"
101 " ldr r0, [r4, #0xc]\n"
102 " bl sub_fc0a2b32\n"
103 " mov r0, r6\n"
104 " bl sub_fc2a549e\n" // PrepareDirectory_0
105 " b loc_fc055146\n"
106 "loc_fc0550f6:\n"
107 " bl sub_fc054ea8_my\n" // -> ... fwt_open
108 " b loc_fc0550a0\n"
109 "loc_fc0550fc:\n"
110 " ldr r1, [r0, #4]\n"
111 " movs r2, #0\n"
112 " mov r4, r0\n"
113 " ldr r0, [r5, #4]\n"
114 " bl sub_fc2a51e0\n" // Lseek_FW
115 " adds r0, r0, #1\n"
116 " bne loc_fc0550a0\n"
117 " ldr r0, =0x09200001\n"
118 " mov r1, r4\n"
119 " adds r0, #0x12\n"
120 " str r0, [r4, #0x10]\n"
121 " movs r0, #7\n"
122 " bl sub_fc054e34\n"
123 " b loc_fc0550a0\n"
124 "loc_fc05511c:\n"
125 " mov r4, r0\n"
126 " ldrsb.w r0, [r0, #0x58]\n"
127 " cmp r0, #0\n"
128 " beq loc_fc0550a0\n"
129 " strb.w r0, [sp]\n"
130 " movs r0, #0\n"
131 " strb.w r0, [sp, #1]\n"
132 " add.w r0, r4, #0x58\n"
133 " mov r6, r0\n"
134 " bl sub_fc2a4df0\n"
135 " movs r1, #0\n"
136 " bl sub_fc05cd5e\n"
137 " mov r0, sp\n"
138 " bl sub_fc0a2b3e\n"
139 "loc_fc055146:\n"
140 " mov r0, r6\n"
141 " bl sub_fc2a4df0\n"
142 " ldr r1, [r5, #0x18]\n"
143 " bl sub_fc05cdbc\n"
144 " ldr r1, [r5, #0x14]\n"
145 " cmp r1, #0\n"
146 " beq loc_fc0550a0\n"
147 " ldr r0, [r4, #0x10]\n"
148 " blx r1\n"
149 " b loc_fc0550a0\n"
150 "loc_fc05515e:\n"
151 " bl sub_fc0552f8_my\n" // -> ... fwt_write
152 " b loc_fc0550a0\n"
153 "loc_fc055164:\n"
154 " bl sub_fc054fa6_my\n" // -> ... fwt_close
155 " b loc_fc0550a0\n"
156 ".ltorg\n"
157  );
158 }
void _LogCameraEvent ( int  id,
const char *  fmt,
  ... 
)