I have already a complete queuing system for another controller and I would like to port it to the SAM4L architecture.
The questions are related to the following datasheet:
http://www.atmel.com/Images/Atmel-42023 ... asheet.pdf
For this I had to rewrite the interrupt handler, but I have here 2 questions:
1. What interrupt flags should I use to signal the handler that a byte can be transmitted (maybe TXEMPTY) and for receiving (I think RXBUFF)?
2. The interrupt is fired again and again so I think I had to reset the flags?
Currently the flag is read with:
Code: Select all
/* Read USART Status. */ ul_status = usart_get_status(USART1);
is marked, how can I stop the interrupt from triggering again?
Thanks a lot for answers.