2012-10-27 00:42:49 -03:00
|
|
|
|
|
|
|
#ifndef __AP_PROGMEM_H__
|
|
|
|
#define __AP_PROGMEM_H__
|
|
|
|
|
2012-12-21 18:49:19 -04:00
|
|
|
#include <AP_HAL_Boards.h>
|
2012-10-27 00:42:49 -03:00
|
|
|
#if defined(__AVR__)
|
|
|
|
#include "AP_Progmem_AVR.h"
|
2013-01-03 13:56:23 -04:00
|
|
|
#elif CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL || CONFIG_HAL_BOARD == HAL_BOARD_SMACCM
|
2012-10-27 02:32:24 -03:00
|
|
|
#include "AP_Progmem_Identity.h"
|
2012-10-27 08:41:45 -03:00
|
|
|
#else
|
2013-01-01 03:25:47 -04:00
|
|
|
#error "this build type is unknown - please edit AP_Progmem.h"
|
2012-10-27 00:42:49 -03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define PROGMEM_STRING(_v, _s) static const char _v[] PROGMEM = _s
|
|
|
|
|
|
|
|
#endif // __AP_PROGMEM_H__
|
|
|
|
|