mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-12 02:48:28 -04:00
25 lines
435 B
Plaintext
25 lines
435 B
Plaintext
|
|
#include <AP_Common.h>
|
|
#include <AP_HAL.h>
|
|
#include <AP_HAL_AVR.h>
|
|
|
|
const AP_HAL::HAL& hal1 = AP_HAL_AVR_APM1;
|
|
const AP_HAL::HAL& hal2 = AP_HAL_AVR_APM2;
|
|
|
|
void loop (void) {
|
|
|
|
}
|
|
|
|
void setup (void) {
|
|
hal1.uart0->begin(9600);
|
|
hal2.uart0->begin(9600);
|
|
hal1.uart1->begin(9600);
|
|
hal2.uart1->begin(9600);
|
|
hal1.uart2->begin(9600);
|
|
hal2.uart2->begin(9600);
|
|
hal1.uart3->begin(9600);
|
|
hal2.uart3->begin(9600);
|
|
}
|
|
|
|
|