aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/obldc/usart_irq/usart_irq.c
diff options
context:
space:
mode:
authorGareth McMullin2011-03-13 14:50:53 +1300
committerGareth McMullin2011-03-13 14:50:53 +1300
commit95286a22f0bb6a822b4d2a62611bcc7b2c2daa8b (patch)
tree8aa7847736ac65a5d6e7e9f0e1bf6d0715994484 /examples/stm32/obldc/usart_irq/usart_irq.c
parent08990e5243de216a599add8d5c2b4b5740cf6a7b (diff)
More build improvements and fixed broken examples.
Diffstat (limited to 'examples/stm32/obldc/usart_irq/usart_irq.c')
-rw-r--r--examples/stm32/obldc/usart_irq/usart_irq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32/obldc/usart_irq/usart_irq.c b/examples/stm32/obldc/usart_irq/usart_irq.c
index 7e5f971..82320c1 100644
--- a/examples/stm32/obldc/usart_irq/usart_irq.c
+++ b/examples/stm32/obldc/usart_irq/usart_irq.c
@@ -80,7 +80,7 @@ void usart1_isr(void)
static u8 data = 'A';
/* Check if we were called because of RXNE. */
- if (((USART_CR1(USART1) & USART_SR_RXNEIE) != 0) &&
+ if (((USART_CR1(USART1) & USART_CR1_RXNEIE) != 0) &&
((USART_SR(USART1) & USART_SR_RXNE) != 0)) {
/* Indicate that we got data. */
gpio_toggle(GPIOA, GPIO6);
@@ -93,7 +93,7 @@ void usart1_isr(void)
}
/* Check if we were called because of TXE. */
- if ((USART_CR1(USART1) & USART_SR_TXEIE) != 0) &&
+ if (((USART_CR1(USART1) & USART_CR1_TXEIE) != 0) &&
((USART_SR(USART1) & USART_SR_TXE) != 0)) {
/* Indicate that we are sending out data. */
gpio_toggle(GPIOA, GPIO7);