mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-06 16:08:28 -04:00
20 lines
472 B
C++
20 lines
472 B
C++
|
|
#include "HAL_AVR.h"
|
|
using namespace AP_HAL_AVR;
|
|
|
|
void HAL_AVR::init(void* opts) const {
|
|
|
|
scheduler->init();
|
|
|
|
/* uart0 is the serial port used for the console, so lets make sure
|
|
* it is initialized at boot */
|
|
// XXX maybe this should be 57600?
|
|
uart0->begin(115200);
|
|
/* 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);
|
|
};
|
|
|