Project

General

Profile

Revision e4d78d85

IDe4d78d85d5a817bc64f705e77b74aada2de347e6
Parent 1b05b4cc
Child 5f7a1707

Added by Julian Binder about 10 years ago

Bugfixes so bom code compiles

View differences:

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