Commit e87eacac authored by Andrew Boie's avatar Andrew Boie Committed by Anas Nashif
Browse files

samples: use K_THREAD_STACK_DEFINE macros

parent 2d4a36fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -351,7 +351,7 @@ void main(void)
	 * controller
	 */
	k_thread_create(&tx_thread_data, tx_thread_stack,
			sizeof(tx_thread_stack), tx_thread,
			K_THREAD_STACK_SIZEOF(tx_thread_stack), tx_thread,
			NULL, NULL, NULL, K_PRIO_COOP(7), 0, K_NO_WAIT);

	while (1) {
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ static struct in6_addr in6addr_my = MY_IP6ADDR;
#define MY_PORT 4242

#define STACKSIZE 2000
char __noinit __stack thread_stack[STACKSIZE];
K_THREAD_STACK_DEFINE(thread_stack, STACKSIZE);
static struct k_thread thread_data;

#define MAX_DBG_PRINT 64
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ public:
#define STACKSIZE 2000

struct k_thread coop_thread;
char __stack coop_stack[STACKSIZE];
K_THREAD_STACK_DEFINE(coop_stack, STACKSIZE);

/*
 * @class cpp_semaphore
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@
#include <net/net_mgmt.h>

#define STACKSIZE 2000
char __noinit __stack thread_stack[STACKSIZE];
K_THREAD_STACK_DEFINE(thread_stack, STACKSIZE);
static struct k_thread thread_data;

static struct net_mgmt_event_callback mgmt_cb;
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@
#include <net/dns_resolve.h>

#define STACKSIZE 2000
char __noinit __stack thread_stack[STACKSIZE];
K_THREAD_STACK_DEFINE(thread_stack, STACKSIZE);
static struct k_thread thread_data;

#define DNS_TIMEOUT 2000 /* ms */
Loading