Skip to content

Commit

Permalink
Merge pull request #257 from LudwigOrtmann/uart0_thread_create
Browse files Browse the repository at this point in the history
use CREATE_WOUT_YIELD on uart0 thread creation
  • Loading branch information
OlegHahm committed Oct 23, 2013
2 parents 9f0aed2 + 05987cb commit cf17a37
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sys/uart0/uart0.c
Expand Up @@ -25,7 +25,14 @@ static void uart0_loop(void)
void board_uart0_init(void)
{
ringbuffer_init(&uart0_ringbuffer, buffer, UART0_BUFSIZE);
int pid = thread_create(uart0_thread_stack, sizeof(uart0_thread_stack), PRIORITY_MAIN - 1, CREATE_STACKTEST, uart0_loop, "uart0");
int pid = thread_create(
uart0_thread_stack,
sizeof(uart0_thread_stack),
PRIORITY_MAIN - 1,
CREATE_STACKTEST|CREATE_WOUT_YIELD,
uart0_loop,
"uart0"
);
uart0_handler_pid = pid;
puts("uart0_init() [OK]");
}
Expand Down

0 comments on commit cf17a37

Please sign in to comment.