andrewm@0: /* andrewm@0: * config.h andrewm@0: * andrewm@0: * Global settings for D-Box project andrewm@0: * andrewm@0: * Andrew McPherson and Victor Zappi 2014 andrewm@0: */ andrewm@0: andrewm@0: andrewm@0: #ifndef DBOX_CONFIG_H_ andrewm@0: #define DBOX_CONFIG_H_ andrewm@0: andrewm@0: andrewm@0: /* Number of maximum touches used by the TouchKey sensors */ andrewm@0: #define MAX_TOUCHES 5 andrewm@0: andrewm@0: // for sensor 1 filter andrewm@0: #define EXP_DENOM 53.5981500331 // exp(4)-1 andrewm@0: andrewm@0: /* Define this to use Xenomai real-time extensions */ andrewm@0: #define DBOX_USE_XENOMAI andrewm@0: //#define OLD_OSCBANK andrewm@0: andrewm@0: /* Define this if the new cape is in use (changes pinouts and I2C address) */ andrewm@0: #define DBOX_CAPE andrewm@0: andrewm@0: #ifdef DBOX_USE_XENOMAI andrewm@0: // Xenomai-specific includes andrewm@0: #include andrewm@0: andrewm@0: #include andrewm@0: #include andrewm@0: #include andrewm@0: #endif andrewm@0: andrewm@0: #ifdef DBOX_USE_XENOMAI andrewm@0: andrewm@0: #define dbox_printf rt_printf andrewm@0: andrewm@0: #else andrewm@0: andrewm@0: #define dbox_printf printf andrewm@0: andrewm@0: #endif andrewm@0: andrewm@0: #endif /* DBOX_CONFIG_H */