On Friday 16 January 2015 16:40:01 Agrawal, Sachin wrote:
> >#ifndef ARDUINO
> >void OICLogBuffer(LogLevel level, const char * tag, const uint8_t * buffer,
> >uint16_t bufferSize); #else void OICLogBuffer(LogLevel level, PROGMEM
> >const char * tag, const uint8_t * buffer, uint16_t bufferSize); #en
SUNG ELECTRONICS CO.,LTD
AnyCall +82-10-7311-0206
e-mailsoonhwang.choi at samsung.com<mailto:soonhwang.choi at samsung.com>
[cid:image001.gif at 01D03179.22DDF600]
[http://ext.samsung.net/mailcheck/SeenTimeChecker?do=6db27cebcd8822fb77117ef89cc77e93dc8928a02cb65e9187dfe03c47d8dbcb08c5ce1bd480a15cd4a87a1fb2ad96504bea3c1765014a1208cece8541bc14eacf878f9a26ce15a0]
-- next part --
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 13168 bytes
Desc: image001.gif
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150116/26ad3564/attachment.gif>
CO.,LTD
AnyCall +82-10-7311-0206
e-mailsoonhwang.choi at samsung.com<mailto:soonhwang.choi at samsung.com>
[cid:image001.gif at 01D03179.22DDF600]
[http://ext.samsung.net/mailcheck/SeenTimeChecker?do=6db27cebcd8822fb77117ef89cc77e93dc8928a02cb65e9187dfe03c47d8dbcb08c5ce1bd480a15cd4a87a1fb2ad96504bea3c1765014a1208cece8541bc14eacf878f9a26ce15a0]
-- next part --
An HTML attachment was scrubbed...
Has anyone done cross-platform coding for Arduino and could share some best-
pratices?
I've just noticed that a great deal of our code has #ifdef ARDUINO just so
some functions or variables are declared with PROGMEM.
For example (simplified, from oclogger.h):
#ifndef ARDUINO
void OICLogBuffer
An HTML attachment was scrubbed...
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150116/31f66bf8/attachment.html>
-- next part --
A non-text attachment was scrubbed...
Name: 201501161700168_BEI0XT4N.gif
Type: image/gif
Size: 13168 bytes
Des