misc: use K_THREAD_STACK_DEFINE macros

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-06-02 14:10:09 -07:00 committed by Anas Nashif
commit 567c6c7683
12 changed files with 34 additions and 30 deletions

View file

@ -95,9 +95,9 @@ static inline __printf_like(1, 2) void _bt_log_dummy(const char *fmt, ...) {};
}
#define BT_STACK(name, size) \
char __stack name[(size) + BT_STACK_DEBUG_EXTRA]
K_THREAD_STACK_MEMBER(name, (size) + BT_STACK_DEBUG_EXTRA)
#define BT_STACK_NOINIT(name, size) \
char __noinit __stack name[(size) + BT_STACK_DEBUG_EXTRA]
K_THREAD_STACK_DEFINE(name, (size) + BT_STACK_DEBUG_EXTRA)
/* This helper is only available when BLUETOOTH_DEBUG is enabled */
const char *bt_hex(const void *buf, size_t len);