You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2019/05/29 10:13:26 UTC
[mynewt-nimble] 03/04: npl/riot: add ble_npl_time_delay()
This is an automated email from the ASF dual-hosted git repository.
andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit 16a3c5e5745971d903a0db3644a8d91c46bd4314
Author: Hauke Petersen <ha...@fu-berlin.de>
AuthorDate: Thu Apr 25 10:55:48 2019 +0200
npl/riot: add ble_npl_time_delay()
---
porting/npl/riot/include/nimble/nimble_npl_os.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/porting/npl/riot/include/nimble/nimble_npl_os.h b/porting/npl/riot/include/nimble/nimble_npl_os.h
index e039ad6..b8403d5 100644
--- a/porting/npl/riot/include/nimble/nimble_npl_os.h
+++ b/porting/npl/riot/include/nimble/nimble_npl_os.h
@@ -256,6 +256,12 @@ ble_npl_time_ticks_to_ms32(ble_npl_time_t ticks)
return ticks;
}
+static inline void
+ble_npl_time_delay(ble_npl_time_t ticks)
+{
+ xtimer_usleep(ticks * 1000);
+}
+
static inline uint32_t
ble_npl_hw_enter_critical(void)
{