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/03/01 11:10:52 UTC

[mynewt-nimble] branch master updated (cd055e9 -> a39b15b)

This is an automated email from the ASF dual-hosted git repository.

andk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git.


    from cd055e9  nimble/ll: Fix indentation
     new 3ac8966  porting: Add missing include
     new a39b15b  porting: Fix build error

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 porting/nimble/include/os/os.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


[mynewt-nimble] 01/02: porting: Add missing include

Posted by an...@apache.org.
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 3ac89668f872957da5124799e6e22eec53a6087d
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Thu Feb 28 15:22:59 2019 +0100

    porting: Add missing include
    
    We use assert in macro so good to have prototype included.
---
 porting/nimble/include/os/os.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/porting/nimble/include/os/os.h b/porting/nimble/include/os/os.h
index 6dc304b..40fc267 100644
--- a/porting/nimble/include/os/os.h
+++ b/porting/nimble/include/os/os.h
@@ -20,6 +20,8 @@
 #ifndef _OS_H
 #define _OS_H
 
+#include <assert.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif


[mynewt-nimble] 02/02: porting: Fix build error

Posted by an...@apache.org.
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 a39b15bf4bf51b6eedc6890b2e94ba39f2f447a2
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Thu Feb 28 15:23:53 2019 +0100

    porting: Fix build error
    
    'OS_ASSERT_CRITICAL();' won't build if assert is defined as 'if () {}'.
---
 porting/nimble/include/os/os.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/porting/nimble/include/os/os.h b/porting/nimble/include/os/os.h
index 40fc267..f7a7ef9 100644
--- a/porting/nimble/include/os/os.h
+++ b/porting/nimble/include/os/os.h
@@ -47,7 +47,7 @@ extern "C" {
 typedef uint32_t os_sr_t;
 #define OS_ENTER_CRITICAL(_sr) (_sr = ble_npl_hw_enter_critical())
 #define OS_EXIT_CRITICAL(_sr) (ble_npl_hw_exit_critical(_sr))
-#define OS_ASSERT_CRITICAL() (assert(ble_npl_hw_is_in_critical()))
+#define OS_ASSERT_CRITICAL() assert(ble_npl_hw_is_in_critical())
 
 /* Mynewt components (not abstracted in NPL) */
 #include "os/endian.h"