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

__MovieRecorder_c__100

Definiert in Zeile 32 der Datei filewrite.c.

32  {
33 asm volatile (
34 " STMFD SP!, {R1-R5,LR} \n"
35 " LDR R4, =0xE3C4 \n"
36 
37 "loc_FFA25BE0:\n"
38 " LDR R0, [R4, #0x10] \n"
39 " MOV R2, #0 \n"
40 " ADD R1, SP, #8 \n"
41 " BL sub_FF82A5C0 /*_ReceiveMessageQueue*/ \n"
42 " CMP R0, #0 \n"
43 " BNE loc_FFA25C10 \n"
44 " LDR R0, [SP, #8] \n"
45 " LDR R1, [R0] \n"
46 " CMP R1, #1 \n"
47 " BNE loc_FFA25C18 \n"
48 " LDR R0, [R4, #8] \n"
49 " BL _GiveSemaphore \n"
50 
51 "loc_FFA25C10:\n"
52 " BL _ExitTask \n"
53 " LDMFD SP!, {R1-R5,PC} \n"
54 
55 "loc_FFA25C18:\n"
56 " SUB R1, R1, #2 \n"
57 " CMP R1, #5 \n"
58 " ADDLS PC, PC, R1, LSL#2 \n"
59 " B loc_FFA25BE0 \n"
60 " B loc_FFA25C40 \n"
61 " B loc_FFA25CA4 \n"
62 " B loc_FFA25CAC \n"
63 " B loc_FFA25CAC \n"
64 " B loc_FFA25CAC \n"
65 " B loc_FFA25CB4 \n"
66 
67 "loc_FFA25C40:\n"
68 " MOV R0, #0 \n"
69 " STR R0, [SP] \n"
70 
71 "loc_FFA25C48:\n"
72 " LDR R0, [R4, #0x10] \n"
73 " MOV R1, SP \n"
74 " BL sub_FF82A7C4 /*_GetNumberOfPostedMessages*/ \n"
75 " LDR R0, [SP] \n"
76 " CMP R0, #0 \n"
77 " BEQ loc_FFA25C74 \n"
78 " LDR R0, [R4, #0x10] \n"
79 " MOV R2, #0 \n"
80 " ADD R1, SP, #4 \n"
81 " BL sub_FF82A5C0 /*_ReceiveMessageQueue*/ \n"
82 " B loc_FFA25C48 \n"
83 
84 "loc_FFA25C74:\n"
85 " LDR R0, [R4] \n"
86 " CMN R0, #1 \n"
87 " BEQ loc_FFA25C98 \n"
88 " BL fwt_close \n" // --> Patched. Old value = _Close.
89 " MVN R0, #0 \n"
90 " STR R0, [R4] \n"
91 " LDR R0, =0x88B20 \n"
92 " BL sub_FF856F0C \n"
93 " BL sub_FF858524 \n"
94 
95 "loc_FFA25C98:\n"
96 " LDR R0, [R4, #0xC] \n"
97 " BL _GiveSemaphore \n"
98 " B loc_FFA25BE0 \n"
99 
100 "loc_FFA25CA4:\n"
101 " BL sub_FFA25E70_my \n" // --> Patched. Old value = 0xFFA25E70. Open stage
102 " B loc_FFA25BE0 \n"
103 
104 "loc_FFA25CAC:\n"
105 " BL sub_FFA25F9C_my \n" // --> Patched. Old value = 0xFFA25F9C. Write stage
106 " B loc_FFA25BE0 \n"
107 
108 "loc_FFA25CB4:\n"
109 " BL sub_FFA2606C_my \n" // --> Patched. Old value = 0xFFA2606C. Close stage
110 " B loc_FFA25BE0 \n"
111 );
112 }