Mercurial > hg > beaglert
comparison projects/d-box/config.h @ 0:8a575ba3ab52
Initial commit.
author | andrewm |
---|---|
date | Fri, 31 Oct 2014 19:10:17 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8a575ba3ab52 |
---|---|
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 /* Define this if the new cape is in use (changes pinouts and I2C address) */ | |
25 #define DBOX_CAPE | |
26 | |
27 #ifdef DBOX_USE_XENOMAI | |
28 // Xenomai-specific includes | |
29 #include <sys/mman.h> | |
30 | |
31 #include <native/task.h> | |
32 #include <native/timer.h> | |
33 #include <rtdk.h> | |
34 #endif | |
35 | |
36 #ifdef DBOX_USE_XENOMAI | |
37 | |
38 #define dbox_printf rt_printf | |
39 | |
40 #else | |
41 | |
42 #define dbox_printf printf | |
43 | |
44 #endif | |
45 | |
46 #endif /* DBOX_CONFIG_H */ |