Newcomers to Astrobe and Oberon are welcome to ask any beginner-level questions here
- Posts: 8
- Joined: Tue Sep 06, 2011 3:53 pm
- Location: Russia
I need non blocking UART read function in my program.
In the examples to lpc2103 educational board form Embedded Artists was the exaple in C. How to realise this in Astrobe?
How to set up an interrupt for UART buffer to run procedure if smth new comes?
Code: Select all
/* buffer is empty */
if(uart0RxHead == uart0RxTail)
tmpTail = (uart0RxTail + 1) & RX_BUFFER_MASK;
uart0RxTail = tmpTail;
*pRxChar = uart0RxBuf[tmpTail];
- Site Admin
- Posts: 423
- Joined: Fri Dec 31, 2010 12:30 pm
I don't know whether it answers your specific question but there is a sample of interrupt driven UART code in the topic "Buffered UART Routines":