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

Makro-Dokumentation

#define MAX_CHUNKS_FOR_JPEG   4

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 35 der Datei filewrite.c.

35  {
36 asm volatile (
37 " STMFD SP!, {R1-R5,LR} \n"
38 " LDR R4, =0xAB34 \n"
39 
40 "loc_FFA78CF0:\n"
41 " LDR R0, [R4, #0x10] \n"
42 " MOV R2, #0 \n"
43 " ADD R1, SP, #8 \n"
44 " BL sub_FF838318 /*_ReceiveMessageQueue*/ \n"
45 " CMP R0, #0 \n"
46 " BNE loc_FFA78D20 \n"
47 " LDR R0, [SP, #8] \n"
48 " LDR R1, [R0] \n"
49 " CMP R1, #1 \n"
50 " BNE loc_FFA78D28 \n"
51 " LDR R0, [R4, #8] \n"
52 " BL _GiveSemaphore \n"
53 
54 "loc_FFA78D20:\n"
55 " BL _ExitTask \n"
56 " LDMFD SP!, {R1-R5,PC} \n"
57 
58 "loc_FFA78D28:\n"
59 " SUB R1, R1, #2 \n"
60 " CMP R1, #6 \n"
61 " ADDLS PC, PC, R1, LSL#2 \n"
62 " B loc_FFA78CF0 \n"
63 " B loc_FFA78D54 \n"
64 " B loc_FFA78DB8 \n"
65 " B loc_FFA78DC0 \n"
66 " B loc_FFA78DC0 \n"
67 " B loc_FFA78DC0 \n"
68 " B loc_FFA78DC0 \n"
69 " B loc_FFA78DC8 \n"
70 
71 "loc_FFA78D54:\n"
72 " MOV R0, #0 \n"
73 " STR R0, [SP] \n"
74 
75 "loc_FFA78D5C:\n"
76 " LDR R0, [R4, #0x10] \n"
77 " MOV R1, SP \n"
78 " BL sub_FF83855C /*_GetNumberOfPostedMessages*/ \n"
79 " LDR R0, [SP] \n"
80 " CMP R0, #0 \n"
81 " BEQ loc_FFA78D88 \n"
82 " LDR R0, [R4, #0x10] \n"
83 " MOV R2, #0 \n"
84 " ADD R1, SP, #4 \n"
85 " BL sub_FF838318 /*_ReceiveMessageQueue*/ \n"
86 " B loc_FFA78D5C \n"
87 
88 "loc_FFA78D88:\n"
89 " LDR R0, [R4] \n"
90 " CMN R0, #1 \n"
91 " BEQ loc_FFA78DAC \n"
92 " BL fwt_close \n" // --> Patched. Old value = _Close.
93 " MVN R0, #0 \n"
94 " STR R0, [R4] \n"
95 " LDR R0, =0xC1F58 \n"
96 " BL sub_FF86F388 \n"
97 " BL sub_FF86D76C \n"
98 
99 "loc_FFA78DAC:\n"
100 " LDR R0, [R4, #0xC] \n"
101 " BL _GiveSemaphore \n"
102 " B loc_FFA78CF0 \n"
103 
104 "loc_FFA78DB8:\n"
105 " BL sub_FFA78FD4_my \n" // --> Patched. Old value = 0xFFA78FD4. Open stage
106 " B loc_FFA78CF0 \n"
107 
108 "loc_FFA78DC0:\n"
109 " BL sub_FFA79108_my \n" // --> Patched. Old value = 0xFFA79108. Write stage
110 " B loc_FFA78CF0 \n"
111 
112 "loc_FFA78DC8:\n"
113 " BL sub_FFA78B80_my \n" // --> Patched. Old value = 0xFFA78B80. Close stage
114 " B loc_FFA78CF0 \n"
115 );
116 }