]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/eb_demo/def.h
9da3136fc685cce966df86994ac9eedd99f06b94
[eurobot/public.git] / src / eb_demo / def.h
1 #ifndef DEFH
2 #define DEFH
3
4 #include <expansion.h>
5
6 #define CAN_SPEED       1000000         /* CAN bus speed */
7 #define CAN_ISR         0
8
9 #define ADC_ISR         1
10
11 #define TIMER_IRQ_PRIORITY      5
12
13 #define START_PIN               EXPPORT_8       /* start pin */
14 #define SWITCH_STRATEGY_PIN     EXPPORT_4       /* strategy pin */
15 #define BUMPER_REAR_PIN         EXPPORT_5       /* bumper pin */
16 #define BUMPER_LEFT_PIN         EXPPORT_6       /* left bumper */
17 #define BUMPER_RIGHT_PIN        EXPPORT_7       /* right bumper */
18
19 extern volatile uint32_t timer_msec;
20 extern volatile uint32_t timer_usec;  /* incremented by 10 @100kHz */
21
22 enum {
23         LONG_PRESS,
24         SHORT_PRESS
25 } button_states;
26
27 #endif