AP_HAL_AVR: HAL_AVR initializes rcin and rcout

This commit is contained in:
Pat Hickey 2012-08-27 17:20:55 -07:00 committed by Andrew Tridgell
parent 776a1074c9
commit ec0fddd49a

View File

@ -3,6 +3,13 @@
using namespace AP_HAL_AVR; using namespace AP_HAL_AVR;
void HAL_AVR::init(void* opts) const { void HAL_AVR::init(void* opts) const {
scheduler->init(); scheduler->init();
/* The AVR RCInput drivers take an AP_HAL_AVR::ISRRegistry*
* as the init argument */
rcin->init((void*)&isr_registry);
rcout->init(NULL);
}; };