CHDK_DE Vorschauversion  Trunk Rev. 5516
 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))
 *-------------------------------------------------------------------— Mehr ...
 

Makro-Dokumentation

#define MAX_CHUNKS_FOR_JPEG   3

Definiert in Zeile 12 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

Definiert in Zeile 31 der Datei filewrite.c.

31  {
32 asm volatile (
33 " STMFD SP!, {R1-R5,LR} \n"
34 " LDR R4, =0xC2A0 \n"
35 
36 "loc_FFA2B4A8:\n"
37 " LDR R0, [R4, #0x10] \n"
38 " MOV R2, #0 \n"
39 " ADD R1, SP, #8 \n"
40 " BL sub_FF82746C /*_ReceiveMessageQueue*/ \n"
41 " CMP R0, #0 \n"
42 " BNE loc_FFA2B4D8 \n"
43 " LDR R0, [SP, #8] \n"
44 " LDR R1, [R0] \n"
45 " CMP R1, #1 \n"
46 " BNE loc_FFA2B4E0 \n"
47 " LDR R0, [R4, #8] \n"
48 " BL _GiveSemaphore \n"
49 
50 "loc_FFA2B4D8:\n"
51 " BL _ExitTask \n"
52 " LDMFD SP!, {R1-R5,PC} \n"
53 
54 "loc_FFA2B4E0:\n"
55 " SUB R1, R1, #2 \n"
56 " CMP R1, #5 \n"
57 " ADDLS PC, PC, R1, LSL#2 \n"
58 " B loc_FFA2B4A8 \n"
59 " B loc_FFA2B508 \n"
60 " B loc_FFA2B56C \n"
61 " B loc_FFA2B574 \n"
62 " B loc_FFA2B574 \n"
63 " B loc_FFA2B574 \n"
64 " B loc_FFA2B57C \n"
65 
66 "loc_FFA2B508:\n"
67 " MOV R0, #0 \n"
68 " STR R0, [SP] \n"
69 
70 "loc_FFA2B510:\n"
71 " LDR R0, [R4, #0x10] \n"
72 " MOV R1, SP \n"
73 " BL sub_FF8276B0 /*_GetNumberOfPostedMessages*/ \n"
74 " LDR R0, [SP] \n"
75 " CMP R0, #0 \n"
76 " BEQ loc_FFA2B53C \n"
77 " LDR R0, [R4, #0x10] \n"
78 " MOV R2, #0 \n"
79 " ADD R1, SP, #4 \n"
80 " BL sub_FF82746C /*_ReceiveMessageQueue*/ \n"
81 " B loc_FFA2B510 \n"
82 
83 "loc_FFA2B53C:\n"
84 " LDR R0, [R4] \n"
85 " CMN R0, #1 \n"
86 " BEQ loc_FFA2B560 \n"
87 " BL fwt_close \n" // --> Patched. Old value = _Close.
88 " MVN R0, #0 \n"
89 " STR R0, [R4] \n"
90 " LDR R0, =0xBC25C \n"
91 " BL sub_FF85974C \n"
92 " BL sub_FF857DF4 \n"
93 
94 "loc_FFA2B560:\n"
95 " LDR R0, [R4, #0xC] \n"
96 " BL _GiveSemaphore \n"
97 " B loc_FFA2B4A8 \n"
98 
99 "loc_FFA2B56C:\n"
100 " BL sub_FFA2B740_my \n" // --> Patched. Old value = 0xFFA2B740. Open stage
101 " B loc_FFA2B4A8 \n"
102 
103 "loc_FFA2B574:\n"
104 " BL sub_FFA2B87C_my \n" // --> Patched. Old value = 0xFFA2B87C. Write stage
105 " B loc_FFA2B4A8 \n"
106 
107 "loc_FFA2B57C:\n"
108 " BL sub_FFA2B978_my \n" // --> Patched. Old value = 0xFFA2B978. Close stage
109 " B loc_FFA2B4A8 \n"
110 " .ltorg\n" //+
111 );
112 }