File tree Expand file tree Collapse file tree 5 files changed +32
-20
lines changed Expand file tree Collapse file tree 5 files changed +32
-20
lines changed Original file line number Diff line number Diff line change 1
- #include "../generic/check_compat.c"
2
-
3
- #define LED 0xD20801E0
1
+ #include "main.h"
4
2
5
- extern long * blob_chdk_core ;
6
- extern long blob_chdk_core_size ;
7
-
8
- typedef struct {
9
- const char * str ;
10
- const char * fw_str ;
11
- void (* dcc_by_mva )(void * addr , long len );
12
- void (* ici_by_mva )(void * addr , long len );
13
- void (* core_unblock )(unsigned coreid );
14
- } ld_ver_t ;
3
+ #include "../generic/check_compat.c"
15
4
16
5
ld_ver_t fw = { "GM1.01A" , //
17
6
(void * ) 0xE03CFDF0 , //
Original file line number Diff line number Diff line change
1
+ #ifndef M6_LOADER_MAIN_H
2
+ #define M6_LOADER_MAIN_H
3
+
4
+ #define LED 0xD20801E0
5
+
6
+ extern long * blob_chdk_core ;
7
+ extern long blob_chdk_core_size ;
8
+
9
+ typedef struct {
10
+ const char * str ;
11
+ const char * fw_str ;
12
+ void (* dcc_by_mva )(void * addr , long len );
13
+ void (* ici_by_mva )(void * addr , long len );
14
+ void (* core_unblock )(unsigned coreid );
15
+ } ld_ver_t ;
16
+
17
+ #endif
Original file line number Diff line number Diff line change 2
2
#include "lolevel.h"
3
3
#include "live_view.h"
4
4
5
- #define LED_PR 0xd20b0994 // green LED on the back
5
+ #define LED 0xD20801E0 // green LED on the back
6
6
7
7
void shutdown_soft () {
8
8
_PostLogicalEventForNotPowerType (0x1005 , 0 );
@@ -20,7 +20,7 @@ void shutdown() {
20
20
* @header debug_led.h
21
21
*/
22
22
void debug_led (int state ) {
23
- volatile long * p = (void * ) LED_PR ;
23
+ volatile long * p = (void * ) LED ;
24
24
* p = ((state ) ? 0x4d0002 : 0x4c0003 );
25
25
}
26
26
Original file line number Diff line number Diff line change 3
3
#include "core.h"
4
4
#include "keyboard.h"
5
5
6
- extern int _GetLensCurrentFocalLength (void );
7
- extern int _GetLensWideFocalLength (void );
8
- extern long link_bss_start ;
9
- extern long link_bss_end ;
10
- extern void boot ();
6
+ #include "main.h"
11
7
12
8
void startup (int core ) {
13
9
if (!core ) { // core 0 only
Original file line number Diff line number Diff line change
1
+ #ifndef M6_MAIN_H
2
+ #define M6_MAIN_H
3
+
4
+ extern int _GetLensCurrentFocalLength (void );
5
+ extern int _GetLensWideFocalLength (void );
6
+ extern long link_bss_start ;
7
+ extern long link_bss_end ;
8
+ extern void boot ();
9
+
10
+ #endif
You can’t perform that action at this time.
0 commit comments