1.1 --- a/main.c Wed Oct 17 17:56:15 2018 +0200
1.2 +++ b/main.c Thu Oct 18 11:13:02 2018 +0200
1.3 @@ -89,7 +89,7 @@
1.4 {
1.5 /* Check for a UART receive interrupt condition (UxRIF). */
1.6
1.7 - if (REG(IFS1) & (1 << 8))
1.8 + if (REG(UARTIFS) & UART_INT_FLAGS(1, UxRIF))
1.9 {
1.10 /* Write the received data back. */
1.11
1.12 @@ -98,7 +98,7 @@
1.13
1.14 /* Clear the UART interrupt condition. */
1.15
1.16 - CLR_REG(IFS1, 1 << 8);
1.17 + CLR_REG(UARTIFS, UART_INT_FLAGS(1, UxRIF));
1.18 INV_REG(PORTA, 1 << 2);
1.19 }
1.20 }