comparison examples/d-box/config.h @ 300:dbeed520b014 prerelease

Renamed projects to examples
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 27 May 2016 13:58:20 +0100
parents projects/d-box/config.h@8a575ba3ab52
children 00725dfc1b87
comparison
equal deleted inserted replaced
297:a3d83ebdf49b 300:dbeed520b014
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 */