2012-08-22 21:40:19 -03:00
|
|
|
|
|
|
|
#include "HAL_AVR.h"
|
|
|
|
using namespace AP_HAL_AVR;
|
|
|
|
|
|
|
|
void HAL_AVR::init(void* opts) const {
|
2012-08-27 21:20:55 -03:00
|
|
|
|
2012-08-23 15:36:13 -03:00
|
|
|
scheduler->init();
|
2012-08-27 21:20:55 -03:00
|
|
|
|
|
|
|
/* The AVR RCInput drivers take an AP_HAL_AVR::ISRRegistry*
|
|
|
|
* as the init argument */
|
|
|
|
rcin->init((void*)&isr_registry);
|
|
|
|
rcout->init(NULL);
|
2012-08-30 20:25:35 -03:00
|
|
|
spi->init(NULL);
|
2012-08-22 21:40:19 -03:00
|
|
|
};
|
|
|
|
|