trackswitch/main.c

changeset 71
2a49d2586fbf
parent 70
3a57b7a70683
equal deleted inserted replaced
70:3a57b7a70683 71:2a49d2586fbf
12 #include "util/delay.h" 12 #include "util/delay.h"
13 13
14 14
15 ISR ( USART_RXC_vect ) { 15 ISR ( USART_RXC_vect ) {
16 } 16 }
17
18 void solenoid_delay(void) {
19 _delay_ms(2);
20 }
21
17 22
18 // TODO: TYPE should be configured somewhere else 23 // TODO: TYPE should be configured somewhere else
19 #define TRACKSWITCH_TYPE 1 // 1=double, 2=single left, 3=single right, 4=pitlane 24 #define TRACKSWITCH_TYPE 1 // 1=double, 2=single left, 3=single right, 4=pitlane
20 #define TYPE_DOUBLE 1 25 #define TYPE_DOUBLE 1
21 #define TYPE_SINGLE_L 2 26 #define TYPE_SINGLE_L 2
219 } 224 }
220 car1_old = car1_new; 225 car1_old = car1_new;
221 } 226 }
222 #endif 227 #endif
223 228
224 void solenoid_delay(void) {
225 _delay_ms(10);
226 }
227 229
228 230
229 231
230 232
231 int main(void) 233 int main(void)

mercurial