CHDK_DE Vorschauversion  Trunk Rev. 5429
 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   4
 
#define OFLAG_NOFLUSH   0x8000
 

Funktionen

void __attribute__ ((naked, noinline))
 

Makro-Dokumentation

#define MAX_CHUNKS_FOR_JPEG   4

Definiert in Zeile 12 der Datei filewrite.c.

#define OFLAG_NOFLUSH   0x8000

Definiert in Zeile 32 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-R5,LR} \n"
41 " LDR R4, =0x8388 \n"
42 
43 "loc_FFDE39D0:\n"
44 " LDR R0, [R4, #0x10] \n"
45 " MOV R2, #0 \n"
46 " ADD R1, SP, #8 \n"
47 " BL sub_FFC28AA4 /*_ReceiveMessageQueue*/ \n"
48 " CMP R0, #0 \n"
49 " BNE loc_FFDE3A00 \n"
50 " LDR R0, [SP, #8] \n"
51 " LDR R1, [R0] \n"
52 " CMP R1, #1 \n"
53 " BNE loc_FFDE3A08 \n"
54 " LDR R0, [R4, #8] \n"
55 " BL _GiveSemaphore \n"
56 
57 "loc_FFDE3A00:\n"
58 " BL _ExitTask \n"
59 " LDMFD SP!, {R1-R5,PC} \n"
60 
61 "loc_FFDE3A08:\n"
62 " SUB R1, R1, #2 \n"
63 " CMP R1, #6 \n"
64 " ADDLS PC, PC, R1, LSL#2 \n"
65 " B loc_FFDE39D0 \n"
66 " B loc_FFDE3A34 \n"
67 " B loc_FFDE3A98 \n"
68 " B loc_FFDE3AA0 \n"
69 " B loc_FFDE3AA0 \n"
70 " B loc_FFDE3AA0 \n"
71 " B loc_FFDE3AA0 \n"
72 " B loc_FFDE3AA8 \n"
73 
74 "loc_FFDE3A34:\n"
75 " MOV R0, #0 \n"
76 " STR R0, [SP] \n"
77 
78 "loc_FFDE3A3C:\n"
79 " LDR R0, [R4, #0x10] \n"
80 " MOV R1, SP \n"
81 " BL sub_FFC28CE8 /*_GetNumberOfPostedMessages*/ \n"
82 " LDR R0, [SP] \n"
83 " CMP R0, #0 \n"
84 " BEQ loc_FFDE3A68 \n"
85 " LDR R0, [R4, #0x10] \n"
86 " MOV R2, #0 \n"
87 " ADD R1, SP, #4 \n"
88 " BL sub_FFC28AA4 /*_ReceiveMessageQueue*/ \n"
89 " B loc_FFDE3A3C \n"
90 
91 "loc_FFDE3A68:\n"
92 " LDR R0, [R4] \n"
93 " CMN R0, #1 \n"
94 " BEQ loc_FFDE3A8C \n"
95 " BL fwt_close \n" // --> Patched. Old value = _Close.
96 " MVN R0, #0 \n"
97 " STR R0, [R4] \n"
98 " LDR R0, =0xBF5E4 \n"
99 " BL sub_FFC514A8 \n"
100 " BL sub_FFC4F744 \n"
101 
102 "loc_FFDE3A8C:\n"
103 " LDR R0, [R4, #0xC] \n"
104 " BL _GiveSemaphore \n"
105 " B loc_FFDE39D0 \n"
106 
107 "loc_FFDE3A98:\n"
108 " BL sub_FFDE3CB8_my \n" // --> Patched. Old value = 0xFFDE3CB8. Open stage
109 " B loc_FFDE39D0 \n"
110 
111 "loc_FFDE3AA0:\n"
112 " BL sub_FFDE3DEC_my \n" // --> Patched. Old value = 0xFFDE3DEC. Write stage
113 " B loc_FFDE39D0 \n"
114 
115 "loc_FFDE3AA8:\n"
116 " BL sub_FFDE3854_my \n" // --> Patched. Old value = 0xFFDE3854. Close stage
117 " B loc_FFDE39D0 \n"
118 );
119 }