Revision e4d78d85
Bugfixes so bom code compiles
scout_avr/bom/bom.c | ||
---|---|---|
39 | 39 |
////////////////////////////////// Receiving /////////////////////////////////// |
40 | 40 |
|
41 | 41 |
static void init_detect(void) { |
42 |
TCCROA |= _BV(WGM01); // enable reset on compare A
|
|
42 |
TCCR0A |= _BV(WGM01); // enable reset on compare A
|
|
43 | 43 |
TIMSK |= _BV(OCIE0A); // enable timer0 compare match A |
44 | 44 |
|
45 | 45 |
GIMSK |= _BV(PCIE); // Enable pin change interrupt for detection |
... | ... | |
90 | 90 |
|
91 | 91 |
if (count == 15) { |
92 | 92 |
restart_detect(); |
93 |
smb_send_data(&data, sizeof(data)); |
|
93 |
smb_send_data((uint8_t*) &data, sizeof(data));
|
|
94 | 94 |
} |
95 | 95 |
} |
96 | 96 |
|
... | ... | |
100 | 100 |
|
101 | 101 |
static void start_timer1() { |
102 | 102 |
TCNT1 = 0; // Reset timer 1 count to 0 |
103 |
TCCR1 |= _BV(CS12) // Set prescalar to 8 and start timer1 |
|
103 |
TCCR1 |= _BV(CS12); // Set prescalar to 8 and start timer1
|
|
104 | 104 |
} |
105 | 105 |
|
106 | 106 |
static void stop_timer1() { |
Also available in: Unified diff