Mercurial > hg > beaglert
comparison examples/10-Instruments/d-box/config.h @ 464:8fcfbfb32aa0 prerelease
Examples reorder with subdirectories. Added header to each project. Moved Doxygen to bottom of render.cpp.
| author | Robert Jack <robert.h.jack@gmail.com> |
|---|---|
| date | Mon, 20 Jun 2016 16:20:38 +0100 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 463:c47709e8b5c9 | 464:8fcfbfb32aa0 |
|---|---|
| 1 /* | |
| 2 * config.h | |
| 3 * | |
| 4 * Global settings for D-Box project | |
| 5 * | |
| 6 * Andrew McPherson and Victor Zappi 2014 | |
| 7 */ | |
| 8 | |
| 9 | |
| 10 #ifndef DBOX_CONFIG_H_ | |
| 11 #define DBOX_CONFIG_H_ | |
| 12 | |
| 13 | |
| 14 /* Number of maximum touches used by the TouchKey sensors */ | |
| 15 #define MAX_TOUCHES 5 | |
| 16 | |
| 17 // for sensor 1 filter | |
| 18 #define EXP_DENOM 53.5981500331 // exp(4)-1 | |
| 19 | |
| 20 /* Define this to use Xenomai real-time extensions */ | |
| 21 #define DBOX_USE_XENOMAI | |
| 22 //#define OLD_OSCBANK | |
| 23 | |
| 24 #ifdef DBOX_USE_XENOMAI | |
| 25 // Xenomai-specific includes | |
| 26 #include <sys/mman.h> | |
| 27 | |
| 28 #include <native/task.h> | |
| 29 #include <native/timer.h> | |
| 30 #include <rtdk.h> | |
| 31 #endif | |
| 32 | |
| 33 #ifdef DBOX_USE_XENOMAI | |
| 34 | |
| 35 #define dbox_printf rt_printf | |
| 36 | |
| 37 #else | |
| 38 | |
| 39 #define dbox_printf printf | |
| 40 | |
| 41 #endif | |
| 42 | |
| 43 #endif /* DBOX_CONFIG_H */ |
