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 /* Define this if the new cape is in use (changes pinouts and I2C address) */
|
andrewm@0
|
25 #define DBOX_CAPE
|
andrewm@0
|
26
|
andrewm@0
|
27 #ifdef DBOX_USE_XENOMAI
|
andrewm@0
|
28 // Xenomai-specific includes
|
andrewm@0
|
29 #include <sys/mman.h>
|
andrewm@0
|
30
|
andrewm@0
|
31 #include <native/task.h>
|
andrewm@0
|
32 #include <native/timer.h>
|
andrewm@0
|
33 #include <rtdk.h>
|
andrewm@0
|
34 #endif
|
andrewm@0
|
35
|
andrewm@0
|
36 #ifdef DBOX_USE_XENOMAI
|
andrewm@0
|
37
|
andrewm@0
|
38 #define dbox_printf rt_printf
|
andrewm@0
|
39
|
andrewm@0
|
40 #else
|
andrewm@0
|
41
|
andrewm@0
|
42 #define dbox_printf printf
|
andrewm@0
|
43
|
andrewm@0
|
44 #endif
|
andrewm@0
|
45
|
andrewm@0
|
46 #endif /* DBOX_CONFIG_H */
|