You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by pa...@apache.org on 2016/09/14 23:42:34 UTC
[3/3] incubator-mynewt-core git commit: add stubs for mynewt
implememtations for iotivity
add stubs for mynewt implememtations for iotivity
abort,clock, random are complete but untested
storage -- stub that we probably won't need until we turn on security
oc_loop, ip_adator -- need to fill these out with mynewt content
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/aa0f2596
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/aa0f2596
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/aa0f2596
Branch: refs/heads/develop
Commit: aa0f2596fb9d9cd959fe27abbc0af3d984228d55
Parents: 3204c60
Author: Paul Dietrich <pa...@yahoo.com>
Authored: Wed Sep 14 13:58:36 2016 -0700
Committer: Paul Dietrich <pa...@yahoo.com>
Committed: Wed Sep 14 16:42:22 2016 -0700
----------------------------------------------------------------------
libs/iotivity/src/messaging/coap/transactions.c | 4 ++--
libs/iotivity/src/port/mynewt/config.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/aa0f2596/libs/iotivity/src/messaging/coap/transactions.c
----------------------------------------------------------------------
diff --git a/libs/iotivity/src/messaging/coap/transactions.c b/libs/iotivity/src/messaging/coap/transactions.c
index facd95f..e52362a 100644
--- a/libs/iotivity/src/messaging/coap/transactions.c
+++ b/libs/iotivity/src/messaging/coap/transactions.c
@@ -112,10 +112,10 @@ coap_send_transaction(coap_transaction_t *t)
COAP_RESPONSE_TIMEOUT_TICKS +
(oc_random_rand() %
(oc_clock_time_t)COAP_RESPONSE_TIMEOUT_BACKOFF_MASK);
- LOG("Initial interval %llu\n", t->retrans_timer.timer.interval);
+ LOG("Initial interval %lu\n", t->retrans_timer.timer.interval);
} else {
t->retrans_timer.timer.interval <<= 1; /* double */
- LOG("Doubled %llu\n", t->retrans_timer.timer.interval);
+ LOG("Doubled %lu\n", t->retrans_timer.timer.interval);
}
OC_PROCESS_CONTEXT_BEGIN(transaction_handler_process);
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/aa0f2596/libs/iotivity/src/port/mynewt/config.h
----------------------------------------------------------------------
diff --git a/libs/iotivity/src/port/mynewt/config.h b/libs/iotivity/src/port/mynewt/config.h
index 803a99d..673ec1c 100644
--- a/libs/iotivity/src/port/mynewt/config.h
+++ b/libs/iotivity/src/port/mynewt/config.h
@@ -6,7 +6,7 @@
#include <stdint.h>
#include <os/os.h>
-typedef uint64_t oc_clock_time_t;
+typedef os_time_t oc_clock_time_t;
#define OC_CLOCK_CONF_TICKS_PER_SECOND (OS_TICKS_PER_SEC)
/* Memory pool sizes */