- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Simple problem but I can't seem to do it. How do you clear the Rx interrupt for an SCB UART block? The datasheet says write 1 to clear but where or how do I write this?
Thanks!
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
First you will have to read the data using SCB_UartGetChar() or SCB_UartGetByte().
Then you may clear the interrupt causes by SCB_ClearRxInterruptSource(). The parameter is a bit mask which interrupt to clear, 0xff clears all, SCB_GetRxInterruptSource() gets all currently due interrupts SCB_GetRxInterruptSourceMasked() gets all enabled and due interrupts..
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
First you will have to read the data using SCB_UartGetChar() or SCB_UartGetByte().
Then you may clear the interrupt causes by SCB_ClearRxInterruptSource(). The parameter is a bit mask which interrupt to clear, 0xff clears all, SCB_GetRxInterruptSource() gets all currently due interrupts SCB_GetRxInterruptSourceMasked() gets all enabled and due interrupts..
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ahh, thanks a bunch! Didn't think about checking the header file for that function.