Browse Source

examples: adapted to renamed THREAD_FLAGS

cc430
Hauke Petersen 7 years ago
parent
commit
4216f9fef0
  1. 2
      examples/ipc_pingpong/main.c
  2. 3
      examples/posix_sockets/udp.c
  3. 4
      examples/riot_and_cpp/main.cpp

2
examples/ipc_pingpong/main.c

@ -51,7 +51,7 @@ int main(void)
msg_t m;
kernel_pid_t pid = thread_create(second_thread_stack, sizeof(second_thread_stack),
THREAD_PRIORITY_MAIN - 1, CREATE_STACKTEST,
THREAD_PRIORITY_MAIN - 1, THREAD_CREATE_STACKTEST,
second_thread, NULL, "pong");
m.content.value = 1;

3
examples/posix_sockets/udp.c

@ -130,7 +130,8 @@ static int udp_start_server(char *port_str)
}
/* start server (which means registering pktdump for the chosen port) */
if (thread_create(server_stack, sizeof(server_stack), THREAD_PRIORITY_MAIN - 1,
CREATE_STACKTEST, _server_thread, port_str, "UDP server") <= KERNEL_PID_UNDEF) {
THREAD_CREATE_STACKTEST,
_server_thread, port_str, "UDP server") <= KERNEL_PID_UNDEF) {
server_socket = -1;
puts("error initializing thread");
return 1;

4
examples/riot_and_cpp/main.cpp

@ -49,7 +49,9 @@ int main()
printf("\n");
/* create thread A */
thread_create(threadA_stack, sizeof(threadA_stack), 0, CREATE_WOUT_YIELD, threadA_func, NULL, "thread A");
thread_create(threadA_stack, sizeof(threadA_stack), 0,
THREAD_CREATE_WOUT_YIELD,
threadA_func, NULL, "thread A");
printf("******** Hello, you're in thread #%" PRIkernel_pid " ********\n", sched_active_pid);
printf("We'll test C++ class and methods here!\n");

Loading…
Cancel
Save