* some cosmetics and lpm flags for UART

dev/timer
Oliver Hahm 13 years ago
parent 5787828f80
commit 8a041b8a3c

@ -35,6 +35,7 @@ and the mailinglist (subscription via web site)
#include <stdio.h>
#include "lpc23xx.h"
#include "VIC.h"
#include <kernel.h>
#include <board_uart0.h>
@ -78,12 +79,14 @@ static inline void dequeue(void) {
static void push_queue(void) {
running = 1;
lpm_prevent_sleep |= LPM_PREVENT_SLEEP_UART;
start:
if (!actual) {
if (queue_items) {
dequeue();
} else {
running = 0;
lpm_prevent_sleep &= ~LPM_PREVENT_SLEEP_UART;
if (!fifo)
while(!(U0LSR & BIT6)){};
return;

Loading…
Cancel
Save