1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #257 from LudwigOrtmann/uart0_thread_create

use CREATE_WOUT_YIELD on uart0 thread creation
This commit is contained in:
Oleg Hahm 2013-10-23 14:10:51 -07:00
commit cf17a37e24

View File

@ -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]");
}