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

Merge pull request #273 from LudwigOrtmann/uart0_cleanup

Uart0 cleanup
This commit is contained in:
Oleg Hahm 2013-10-29 12:30:04 -07:00
commit 932b967bd7

View File

@ -1,11 +1,13 @@
#include <chardev_thread.h>
#include <ringbuffer.h>
#include <stdio.h>
#include <thread.h>
#include <msg.h>
#include <posix_io.h>
#include <board_uart0.h>
#include "chardev_thread.h"
#include "ringbuffer.h"
#include "thread.h"
#include "msg.h"
#include "posix_io.h"
#include "irq.h"
#include "board_uart0.h"
#define UART0_BUFSIZE (32)
#define UART0_STACKSIZE (MINIMUM_STACK_SIZE + 256)
@ -29,11 +31,12 @@ void board_uart0_init(void)
uart0_thread_stack,
sizeof(uart0_thread_stack),
PRIORITY_MAIN - 1,
CREATE_STACKTEST|CREATE_WOUT_YIELD,
CREATE_STACKTEST|CREATE_SLEEPING,
uart0_loop,
"uart0"
);
uart0_handler_pid = pid;
thread_wakeup(pid);
puts("uart0_init() [OK]");
}