CHDK_DE Vorschauversion  Trunk Rev. 5218
 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   3
 

Funktionen

void __attribute__ ((naked, noinline))
 

Makro-Dokumentation

#define MAX_CHUNKS_FOR_JPEG   3

Definiert in Zeile 12 der Datei filewrite.c.

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

Definiert in Zeile 32 der Datei filewrite.c.

32  {
33 asm volatile (
34 " STMFD SP!, {R1-R5,LR} \n"
35 " LDR R4, =0xAF50 \n"
36 
37 "loc_FFDD8BDC:\n"
38 " LDR R0, [R4, #0x10] \n"
39 " MOV R2, #0 \n"
40 " ADD R1, SP, #8 \n"
41 " BL sub_FFC1693C /*_ReceiveMessageQueue*/ \n"
42 " CMP R0, #0 \n"
43 " BNE loc_FFDD8C0C \n"
44 " LDR R0, [SP, #8] \n"
45 " LDR R1, [R0] \n"
46 " CMP R1, #1 \n"
47 " BNE loc_FFDD8C14 \n"
48 " LDR R0, [R4, #8] \n"
49 " BL _GiveSemaphore \n"
50 
51 "loc_FFDD8C0C:\n"
52 " BL _ExitTask \n"
53 " LDMFD SP!, {R1-R5,PC} \n"
54 
55 "loc_FFDD8C14:\n"
56 " SUB R1, R1, #2 \n"
57 " CMP R1, #5 \n"
58 " ADDLS PC, PC, R1, LSL#2 \n"
59 " B loc_FFDD8BDC \n"
60 " B loc_FFDD8C3C \n"
61 " B loc_FFDD8CA0 \n"
62 " B loc_FFDD8CA8 \n"
63 " B loc_FFDD8CA8 \n"
64 " B loc_FFDD8CA8 \n"
65 " B loc_FFDD8CB0 \n"
66 
67 "loc_FFDD8C3C:\n"
68 " MOV R0, #0 \n"
69 " STR R0, [SP] \n"
70 
71 "loc_FFDD8C44:\n"
72 " LDR R0, [R4, #0x10] \n"
73 " MOV R1, SP \n"
74 " BL sub_FFC16B80 /*_GetNumberOfPostedMessages*/ \n"
75 " LDR R0, [SP] \n"
76 " CMP R0, #0 \n"
77 " BEQ loc_FFDD8C70 \n"
78 " LDR R0, [R4, #0x10] \n"
79 " MOV R2, #0 \n"
80 " ADD R1, SP, #4 \n"
81 " BL sub_FFC1693C /*_ReceiveMessageQueue*/ \n"
82 " B loc_FFDD8C44 \n"
83 
84 "loc_FFDD8C70:\n"
85 " LDR R0, [R4] \n"
86 " CMN R0, #1 \n"
87 " BEQ loc_FFDD8C94 \n"
88 " BL fwt_close \n" // --> Patched. Old value = _Close.
89 " MVN R0, #0 \n"
90 " STR R0, [R4] \n"
91 " LDR R0, =0xAA018 \n"
92 " BL sub_FFC400E4 \n"
93 " BL sub_FFC3E78C \n"
94 
95 "loc_FFDD8C94:\n"
96 " LDR R0, [R4, #0xC] \n"
97 " BL _GiveSemaphore \n"
98 " B loc_FFDD8BDC \n"
99 
100 "loc_FFDD8CA0:\n"
101 " BL sub_FFDD8E74_my \n" // --> Patched. Old value = 0xFFDD8E74. Open stage
102 " B loc_FFDD8BDC \n"
103 
104 "loc_FFDD8CA8:\n"
105 " BL sub_FFDD8FB0_my \n" // --> Patched. Old value = 0xFFDD8FB0. Write stage
106 " B loc_FFDD8BDC \n"
107 
108 "loc_FFDD8CB0:\n"
109 " BL sub_FFDD90AC_my \n" // --> Patched. Old value = 0xFFDD90AC. Close stage
110 " B loc_FFDD8BDC \n"
111 );
112 }