mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/wsn430-common/wsn430-uart0: Fix warning about unused variable
This commit is contained in:
parent
d8e9b62c75
commit
49d8e647e3
@ -35,7 +35,7 @@ void usart0irq(void);
|
|||||||
* \brief the interrupt function
|
* \brief the interrupt function
|
||||||
*/
|
*/
|
||||||
interrupt(USART0RX_VECTOR) usart0irq(void) {
|
interrupt(USART0RX_VECTOR) usart0irq(void) {
|
||||||
int dummy = 0;
|
volatile int dummy = 0;
|
||||||
/* Check status register for receive errors. */
|
/* Check status register for receive errors. */
|
||||||
if(U0RCTL & RXERR) {
|
if(U0RCTL & RXERR) {
|
||||||
if (U0RCTL & FE) {
|
if (U0RCTL & FE) {
|
||||||
@ -52,6 +52,7 @@ interrupt(USART0RX_VECTOR) usart0irq(void) {
|
|||||||
}
|
}
|
||||||
/* Clear error flags by forcing a dummy read. */
|
/* Clear error flags by forcing a dummy read. */
|
||||||
dummy = U0RXBUF;
|
dummy = U0RXBUF;
|
||||||
|
(void)dummy;
|
||||||
}
|
}
|
||||||
#ifdef MODULE_UART0
|
#ifdef MODULE_UART0
|
||||||
else if (uart0_handler_pid != KERNEL_PID_UNDEF) {
|
else if (uart0_handler_pid != KERNEL_PID_UNDEF) {
|
||||||
|
Loading…
Reference in New Issue
Block a user