mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
* some cosmetics and lpm flags for UART
This commit is contained in:
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…
Reference in New Issue
Block a user