You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
539 B
28 lines
539 B
|
|
#ifndef __AP_HAL_AVR_H__ |
|
#define __AP_HAL_AVR_H__ |
|
|
|
#include <AP_HAL.h> |
|
#include "HAL_AVR.h" |
|
|
|
/** |
|
* This module exports AP_HAL instances only. |
|
* All internal drivers must conform to AP_HAL interfaces |
|
* and not expose implementation details. |
|
*/ |
|
|
|
extern const AP_HAL_AVR::HAL_AVR AP_HAL_AVR_APM1; |
|
extern const AP_HAL_AVR::HAL_AVR AP_HAL_AVR_APM2; |
|
|
|
#define AP_HAL_MAIN() extern "C" {\ |
|
int main (void) {\ |
|
hal.init(NULL);\ |
|
setup();\ |
|
for(;;) loop();\ |
|
return 0;\ |
|
}\ |
|
} |
|
|
|
|
|
#endif // __AP_HAL_AVR_H__ |
|
|
|
|