misc: use K_THREAD_STACK_DEFINE macros
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
e87eacacfa
commit
567c6c7683
12 changed files with 34 additions and 30 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue