Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
 All Classes Files Functions Variables Typedefs Macros Groups
config.h
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 #endif
29 
30 #ifdef DBOX_USE_XENOMAI
31 
32 #define dbox_printf rt_printf
33 
34 #else
35 
36 #define dbox_printf printf
37 
38 #endif
39 
40 #endif /* DBOX_CONFIG_H */