Ardupilot2/libraries/AP_HAL_AVR/HAL_AVR.cpp
Pat Hickey b0d8f43111 AP_HAL_AVR: Implemented SPIDriver based on Arduino, but it doesn't work yet
* I don't have an APM2.5 board I can easily connect a logic analyzer to see
  the traffic on the bus...
2012-12-20 14:51:21 +11:00

16 lines
296 B
C++

#include "HAL_AVR.h"
using namespace AP_HAL_AVR;
void HAL_AVR::init(void* opts) const {
scheduler->init();
/* The AVR RCInput drivers take an AP_HAL_AVR::ISRRegistry*
* as the init argument */
rcin->init((void*)&isr_registry);
rcout->init(NULL);
spi->init(NULL);
};