https://bitbucket.org/hudson/magic-lantern
Raw File
Tip revision: 8254fe0b9c1703b20d1755f40012752d07ceec41 authored by a1ex on 19 June 2016, 18:03:04 UTC
Close branch dnlit/constsh-edited-part-1-of-fix-for-2520-1461182905684.
Tip revision: 8254fe0
config-defines.h
/**
 *  Conditional defines for camera internals and ML features.
 */
#ifndef _config_defines_h_
#define _config_defines_h_

/** 
 * Enable these for early ports
 */

    /** If CONFIG_EARLY_PORT is defined, only a few things will be enabled (e.g. changing version string) */
    //~ #define CONFIG_EARLY_PORT

    /** Load fonts and print Hello World (disable CONFIG_EARLY_PORT); will not start any other ML tasks, handlers etc. */
    //~ #define CONFIG_HELLO_WORLD
    
    /** Create a developer FIR for enabling the bootflag and dumping the ROM. */
    //~ #define CONFIG_DUMPER_BOOTFLAG

/**
 * Some common stuff - you can override them in platform files
 */

    /** If something goes wrong (ERR70), we can save a crash log **/
    #define CONFIG_CRASH_LOG

    /** It's a good idea to back up ROM contents on the card - just in case **/
    #define CONFIG_AUTOBACKUP_ROM

    /** It's a good idea to run some automated tests **/
    #define CONFIG_STRESS_TEST
    #define CONFIG_BENCHMARKS

    /** You may want to disable this for troubleshooting **/
    #define CONFIG_CONFIG_FILE
    
    /** Show detailed info about tasks and CPU usage */
    #define CONFIG_TSKMON

/**
 * Some debug stuff - you should enable it Makefile.user to avoid pushing unwanted changes to the repo
 */
    /** This may help discovering some cool new stuff - http://magiclantern.wikia.com/wiki/Register_Map/Brute_Force **/
    /** For developers only; can be dangerous **/
    //~ #define CONFIG_DIGIC_POKE

    /** A bunch of debug tools **/
    //~ #define CONFIG_DEBUGMSG 1

    /** Useful to test battery consumption without any other ML code running **/
    //~ #define CONFIG_BATTERY_TEST
    
    /** Hack to see what memory regions were touched by Canon code and what seems to be unused */
    /** warning: it will slow down boot by a few seconds */
    //~ #define CONFIG_MARK_UNUSED_MEMORY_AT_STARTUP

/** What internals do we have on each camera? **/
#include "internals.h" // from platform directory

/** What features are enabled on each camera? **/
#include "features.h" // from platform directory

#endif // _config_defines_h_
back to top