1 #ifndef PLATFORM_H
2 #define PLATFORM_H
3
4 #ifdef CHDK_MODULE_CODE
5 #error platform.h cannot be #included in module code.
6 #endif
7
8 #include "camera.h"
9 #include "keyboard.h"
10 #include "clock.h"
11 #include "modes.h"
12 #include "backlight.h"
13 #include "viewport.h"
14 #include "properties.h"
15 #include "sd_card.h"
16 #include "meminfo.h"
17 #include "debug_led.h"
18 #include "shooting.h"
19 #include "file_counter.h"
20 #include "temperature.h"
21 #include "battery.h"
22 #include "lens.h"
23 #include "shutdown.h"
24 #include "sound.h"
25 #include "task.h"
26 #include "time.h"
27
28
29
30 #if !CAM_DRYOS
31 extern void drv_self_hide(void);
32 extern void drv_self_unhide(void);
33 #endif
34
35
36
37
38
39 extern void dbg_printf(char *fmt,...);
40
41
42
43 #ifdef DEBUG_LOGGING
44 #define DBGPRINTF(fmt,args...) dbg_printf("%08d DBG:" fmt,get_tick_count(), ##args)
45
46
47 #else
48 #define DBGPRINTF(...)
49 #endif
50
51
52
53 #endif
54