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

Funktionen

void __attribute__ ((naked, noinline))
 

Makro-Dokumentation

#define MAX_CHUNKS_FOR_JPEG   4

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, =0xA8D8 \n"
36 
37 "loc_FFA7F9CC:\n"
38 " LDR R0, [R4, #0x10] \n"
39 " MOV R2, #0 \n"
40 " ADD R1, SP, #8 \n"
41 " BL sub_FF83891C /*_ReceiveMessageQueue*/ \n"
42 " CMP R0, #0 \n"
43 " BNE loc_FFA7F9FC \n"
44 " LDR R0, [SP, #8] \n"
45 " LDR R1, [R0] \n"
46 " CMP R1, #1 \n"
47 " BNE loc_FFA7FA04 \n"
48 " LDR R0, [R4, #8] \n"
49 " BL _GiveSemaphore \n"
50 
51 "loc_FFA7F9FC:\n"
52 " BL _ExitTask \n"
53 " LDMFD SP!, {R1-R5,PC} \n"
54 
55 "loc_FFA7FA04:\n"
56 " SUB R1, R1, #2 \n"
57 " CMP R1, #6 \n"
58 " ADDLS PC, PC, R1, LSL#2 \n"
59 " B loc_FFA7F9CC \n"
60 " B loc_FFA7FA30 \n"
61 " B loc_FFA7FA94 \n"
62 " B loc_FFA7FA9C \n"
63 " B loc_FFA7FA9C \n"
64 " B loc_FFA7FA9C \n"
65 " B loc_FFA7FA9C \n"
66 " B loc_FFA7FAA4 \n"
67 
68 "loc_FFA7FA30:\n"
69 " MOV R0, #0 \n"
70 " STR R0, [SP] \n"
71 
72 "loc_FFA7FA38:\n"
73 " LDR R0, [R4, #0x10] \n"
74 " MOV R1, SP \n"
75 " BL sub_FF838B60 /*_GetNumberOfPostedMessages*/ \n"
76 " LDR R0, [SP] \n"
77 " CMP R0, #0 \n"
78 " BEQ loc_FFA7FA64 \n"
79 " LDR R0, [R4, #0x10] \n"
80 " MOV R2, #0 \n"
81 " ADD R1, SP, #4 \n"
82 " BL sub_FF83891C /*_ReceiveMessageQueue*/ \n"
83 " B loc_FFA7FA38 \n"
84 
85 "loc_FFA7FA64:\n"
86 " LDR R0, [R4] \n"
87 " CMN R0, #1 \n"
88 " BEQ loc_FFA7FA88 \n"
89 " BL fwt_close \n" // --> Patched. Old value = _Close.
90 " MVN R0, #0 \n"
91 " STR R0, [R4] \n"
92 " LDR R0, =0xD1638 \n"
93 " BL sub_FF86FDF0 \n"
94 " BL sub_FF86E1D4 \n"
95 
96 "loc_FFA7FA88:\n"
97 " LDR R0, [R4, #0xC] \n"
98 " BL _GiveSemaphore \n"
99 " B loc_FFA7F9CC \n"
100 
101 "loc_FFA7FA94:\n"
102 " BL sub_FFA7FCB0_my \n" // --> Patched. Old value = 0xFFA7FCB0. Open stage
103 " B loc_FFA7F9CC \n"
104 
105 "loc_FFA7FA9C:\n"
106 " BL sub_FFA7FDE4_my \n" // --> Patched. Old value = 0xFFA7FDE4. Write stage
107 " B loc_FFA7F9CC \n"
108 
109 "loc_FFA7FAA4:\n"
110 " BL sub_FFA7F85C_my \n" // --> Patched. Old value = 0xFFA7F85C. Close stage
111 " B loc_FFA7F9CC \n"
112 );
113 }