ardupilot/libraries/AP_HAL_SMACCM/Util.cpp
James Bielman a4af314b57 Add AP_HAL_SMACCM implementation.
- Add a board definition for SMACCMPilot.
- Support the SMACCM HAL in required utility libraries.
2013-01-03 13:48:06 -08:00

36 lines
694 B
C++

#include "Util.h"
using namespace SMACCM;
int SMACCMUtil::snprintf(char* str, size_t size, const char *format, ...)
{
va_list ap;
va_start(ap, format);
int res = this->vsnprintf(str, size, format, ap);
va_end(ap);
return res;
}
int SMACCMUtil::snprintf_P(char* str, size_t size, const prog_char_t *format, ...)
{
va_list ap;
va_start(ap, format);
int res = this->vsnprintf_P(str, size, format, ap);
va_end(ap);
return res;
}
int SMACCMUtil::vsnprintf(char* str, size_t size, const char *format, va_list ap)
{
return 0;
}
int SMACCMUtil::vsnprintf_P(char* str, size_t size, const prog_char_t *format,
va_list ap)
{
return 0;
}