CHDK_DE Vorschauversion  Trunk Rev. 5549
 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
 
#define FWT_MUSTSEEK   2
 
#define FWT_SEEKMASK   0xffffffff
 

Funktionen

void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Makro-Dokumentation

#define FWT_MUSTSEEK   2

Definiert in Zeile 31 der Datei filewrite.c.

#define FWT_SEEKMASK   0xffffffff

Definiert in Zeile 32 der Datei filewrite.c.

#define MAX_CHUNKS_FOR_JPEG   7

Definiert in Zeile 12 der Datei filewrite.c.

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

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

!!

Definiert in Zeile 38 der Datei filewrite.c.

38  {
39 asm volatile (
40 " STMFD SP!, {R1-R7,LR} \n"
41 " LDR R7, =0x101E4 \n"
42 " MOV R6, #0 \n"
43 
44 "loc_FF3A0FEC:\n"
45 " LDR R0, [R7, #0x14] \n"
46 " MOV R2, #0 \n"
47 " ADD R1, SP, #8 \n"
48 " MOV R5, R7 \n"
49 " BL sub_0068EF6C /*_ReceiveMessageQueue*/ \n"
50 " CMP R0, #0 \n"
51 " LDRNE R1, =0x38E \n"
52 " LDRNE R0, =0xFF3A1124 /*'dwFWrite.c'*/ \n"
53 " BLNE _DebugAssert \n"
54 " LDR R0, [SP, #8] \n"
55 " LDR R1, [R0] \n"
56 " CMP R1, #0xB \n"
57 " ADDCC PC, PC, R1, LSL#2 \n"
58 " B loc_FF3A0FEC \n"
59 " B loc_FF3A10F4 \n"
60 " B loc_FF3A10F4 \n"
61 " B loc_FF3A10F4 \n"
62 " B loc_FF3A10F4 \n"
63 " B loc_FF3A10F4 \n"
64 " B loc_FF3A10F4 \n"
65 " B loc_FF3A10F4 \n"
66 " B loc_FF3A10FC \n"
67 " B loc_FF3A1050 \n"
68 " B loc_FF3A10C0 \n"
69 " B loc_FF3A10B8 \n"
70 
71 "loc_FF3A1050:\n"
72 " STR R6, [SP] \n"
73 
74 "loc_FF3A1054:\n"
75 " LDR R0, [R5, #0x14] \n"
76 " MOV R1, SP \n"
77 " BL sub_0068F1B0 /*_GetNumberOfPostedMessages*/ \n"
78 " LDR R0, [SP] \n"
79 " CMP R0, #0 \n"
80 " BEQ loc_FF3A1080 \n"
81 " LDR R0, [R5, #0x14] \n"
82 " MOV R2, #0 \n"
83 " ADD R1, SP, #4 \n"
84 " BL sub_0068EF6C /*_ReceiveMessageQueue*/ \n"
85 " B loc_FF3A1054 \n"
86 
87 "loc_FF3A1080:\n"
88 " LDR R0, [R5, #8] \n"
89 " CMN R0, #1 \n"
90 " BEQ loc_FF3A10AC \n"
91 " BL fwt_close \n" // --> Patched. Old value = _Close.
92 " MVN R0, #0 \n"
93 " STR R0, [R5, #8] \n"
94 " LDR R0, =0x2255BC \n"
95 " STR R6, [R5, #4] \n"
96 " BL sub_FF078994 \n"
97 " MOV R1, #0 \n"
98 " BL sub_FF076C78 \n"
99 
100 "loc_FF3A10AC:\n"
101 " LDR R0, [R5, #0x10] \n"
102 " BL _GiveSemaphore \n"
103 " B loc_FF3A0FEC \n"
104 
105 "loc_FF3A10B8:\n"
106 " BL sub_FF3A0CDC_my \n" // --> Patched. Old value = 0xFF3A0CDC. Open stage
107 " B loc_FF3A0FEC \n"
108 
109 "loc_FF3A10C0:\n"
110 " LDR R1, [R0, #4] \n"
111 " MOV R4, R0 \n"
112 " LDR R0, [R5, #8] \n"
113 " MOV R2, #0 \n"
114 " BL fwt_lseek \n" // --> Patched. Old value = _lseek.
115 " CMN R0, #1 \n"
116 " LDREQ R0, =0x9200013 \n"
117 " MOV R1, R4 \n"
118 " STREQ R0, [R4, #0x14] \n"
119 " MOVNE R0, #0 \n"
120 " MOVEQ R0, #7 \n"
121 " BL sub_FF3A0C20 \n"
122 " B loc_FF3A0FEC \n"
123 
124 "loc_FF3A10F4:\n"
125 " BL sub_FF3A131C_my \n" // --> Patched. Old value = 0xFF3A131C. Write stage
126 " B loc_FF3A0FEC \n"
127 
128 "loc_FF3A10FC:\n"
129 " BL sub_FF3A0E48_my \n" // --> Patched. Old value = 0xFF3A0E48. Close stage
130 " B loc_FF3A0FEC \n"
131 );
132 }