root/include/platform.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   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 
  27 /******************************************************************/
  28     
  29 #if !CAM_DRYOS
  30 extern void drv_self_hide(void);
  31 extern void drv_self_unhide(void);
  32 #endif
  33 
  34 /******************************************************************/
  35 
  36 // debug logging function - see generic wrappers.c to adjust destination
  37 // WARNING fixed length buffer
  38 extern void dbg_printf(char *fmt,...);
  39 
  40 //#define DEBUG_LOGGING
  41 // debug with timestamp
  42 #ifdef DEBUG_LOGGING
  43 #define DBGPRINTF(fmt,args...) dbg_printf("%08d DBG:" fmt,get_tick_count(), ##args)
  44 // when using LogCameraEvent, timestamps already present, length limited
  45 //#define DBGPRINTF(fmt,args...) dbg_printf(fmt, ##args)
  46 #else
  47 #define DBGPRINTF(...)
  48 #endif
  49 
  50 /******************************************************************/
  51 
  52 #endif
  53 

/* [<][>][^][v][top][bottom][index][help] */