andrewm@0
|
1 /*
|
andrewm@0
|
2 * config.h
|
andrewm@0
|
3 *
|
andrewm@0
|
4 * Global settings for D-Box project
|
andrewm@0
|
5 *
|
andrewm@0
|
6 * Andrew McPherson and Victor Zappi 2014
|
andrewm@0
|
7 */
|
andrewm@0
|
8
|
andrewm@0
|
9
|
andrewm@0
|
10 #ifndef DBOX_CONFIG_H_
|
andrewm@0
|
11 #define DBOX_CONFIG_H_
|
andrewm@0
|
12
|
andrewm@0
|
13
|
andrewm@0
|
14 /* Number of maximum touches used by the TouchKey sensors */
|
andrewm@0
|
15 #define MAX_TOUCHES 5
|
andrewm@0
|
16
|
andrewm@0
|
17 // for sensor 1 filter
|
andrewm@0
|
18 #define EXP_DENOM 53.5981500331 // exp(4)-1
|
andrewm@0
|
19
|
andrewm@0
|
20 /* Define this to use Xenomai real-time extensions */
|
andrewm@0
|
21 #define DBOX_USE_XENOMAI
|
andrewm@0
|
22 //#define OLD_OSCBANK
|
andrewm@0
|
23
|
andrewm@0
|
24 #ifdef DBOX_USE_XENOMAI
|
andrewm@0
|
25 // Xenomai-specific includes
|
andrewm@0
|
26 #include <sys/mman.h>
|
andrewm@0
|
27
|
andrewm@0
|
28 #include <native/task.h>
|
andrewm@0
|
29 #include <native/timer.h>
|
andrewm@0
|
30 #include <rtdk.h>
|
andrewm@0
|
31 #endif
|
andrewm@0
|
32
|
andrewm@0
|
33 #ifdef DBOX_USE_XENOMAI
|
andrewm@0
|
34
|
andrewm@0
|
35 #define dbox_printf rt_printf
|
andrewm@0
|
36
|
andrewm@0
|
37 #else
|
andrewm@0
|
38
|
andrewm@0
|
39 #define dbox_printf printf
|
andrewm@0
|
40
|
andrewm@0
|
41 #endif
|
andrewm@0
|
42
|
andrewm@0
|
43 #endif /* DBOX_CONFIG_H */
|