CHDK_DE Vorschauversion  Trunk Rev. 5429
 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
 
#define CAM_HAS_COMPLETEFILEWRITE_REPLACEMENT   1
 

Funktionen

void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Makro-Dokumentation

#define CAM_HAS_COMPLETEFILEWRITE_REPLACEMENT   1

Definiert in Zeile 26 der Datei filewrite.c.

#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

Definiert in Zeile 32 der Datei filewrite.c.

32  {
33 asm volatile (
34 " STMFD SP!, {R4,LR} \n"
35 " SUB SP, SP, #4 \n"
36 " MOV R4, SP \n"
37 " B loc_FFA914A8 \n"
38 
39 "loc_FFA91468:\n"
40 " CMP R2, #5 \n"
41 " LDRLS PC, [PC, R2, LSL#2] \n"
42 " B loc_FFA914A8 \n"
43 " .long loc_FFA9148C \n"
44 " .long loc_FFA91494 \n"
45 " .long loc_FFA9149C \n"
46 " .long loc_FFA9149C \n"
47 " .long loc_FFA9149C \n"
48 " .long loc_FFA914A4 \n"
49 
50 "loc_FFA9148C:\n"
51 " BL sub_FFA91098 \n"
52 " B loc_FFA914A8 \n"
53 
54 "loc_FFA91494:\n"
55 " BL sub_FFA911C0_my \n" // --> Patched. Old value = 0xFFA911C0. Open Stage
56 " B loc_FFA914A8 \n"
57 
58 "loc_FFA9149C:\n"
59 " BL sub_FFA9129C \n"
60 " B loc_FFA914A8 \n"
61 
62 "loc_FFA914A4:\n"
63 " BL sub_FFA91394 \n"
64 " BL fwt_after_close\n" //+
65 
66 "loc_FFA914A8:\n"
67 " LDR R3, =0x7B980 \n"
68 " MOV R1, R4 \n"
69 " LDR R0, [R3] \n"
70 " MOV R2, #0 \n"
71 " BL sub_FFB13518 /*_ReceiveMessageQueue*/ \n"
72 " CMP R0, #0 \n"
73 " BNE loc_FFA914E4 \n"
74 " LDR R0, [SP] \n"
75 " LDR R3, [R0] \n"
76 " CMP R3, #1 \n"
77 " SUB R2, R3, #2 \n"
78 " BNE loc_FFA91468 \n"
79 " LDR R3, =0x7B978 \n"
80 " LDR R0, [R3] \n"
81 " BL _GiveSemaphore \n"
82 
83 "loc_FFA914E4:\n"
84 " BL _ExitTask \n"
85 );
86 }