2012-08-20 15:38:09 -03:00
|
|
|
|
|
|
|
#ifndef __AP_HAL_AVR_H__
|
|
|
|
#define __AP_HAL_AVR_H__
|
|
|
|
|
|
|
|
#include <AP_HAL.h>
|
2012-08-22 21:40:19 -03:00
|
|
|
#include "HAL_AVR.h"
|
2012-08-20 15:38:09 -03:00
|
|
|
|
2012-08-21 18:11:24 -03:00
|
|
|
/**
|
|
|
|
* This module exports AP_HAL instances only.
|
|
|
|
* All internal drivers must conform to AP_HAL interfaces
|
|
|
|
* and not expose implementation details.
|
|
|
|
*/
|
|
|
|
|
2012-08-22 21:40:19 -03:00
|
|
|
extern const AP_HAL_AVR::HAL_AVR AP_HAL_AVR_APM1;
|
|
|
|
extern const AP_HAL_AVR::HAL_AVR AP_HAL_AVR_APM2;
|
2012-08-20 15:38:09 -03:00
|
|
|
|
2012-12-03 20:25:11 -04:00
|
|
|
#define AP_HAL_MAIN() extern "C" {\
|
|
|
|
int main (void) {\
|
|
|
|
hal.init(NULL);\
|
|
|
|
setup();\
|
|
|
|
for(;;) loop();\
|
|
|
|
return 0;\
|
|
|
|
}\
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-08-20 15:38:09 -03:00
|
|
|
#endif // __AP_HAL_AVR_H__
|
|
|
|
|