Skip to content

Commit

Permalink
[uart] if USE_UARTx instead of defined USE_UARTx
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Dec 29, 2013
1 parent ad75f15 commit 6f22616
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions sw/airborne/arch/omap/mcu_periph/uart_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
#define UART3_irq_handler usart3_irq_handler
#define UART5_irq_handler usart5_irq_handler

#if defined USE_UART0 || OVERRIDE_UART0_IRQ_HANDLER
#if USE_UART0 || OVERRIDE_UART0_IRQ_HANDLER
extern void uart0_handler(void);
#endif

#if defined USE_UART1 || OVERRIDE_UART1_IRQ_HANDLER
#if USE_UART1 || OVERRIDE_UART1_IRQ_HANDLER
extern void uart1_handler(void);
#endif

Expand Down
4 changes: 2 additions & 2 deletions sw/airborne/arch/stm32/mcu_periph/uart_arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ void usart3_isr(void) { usart_isr(&uart3); }
#endif /* USE_UART3 */


#if defined USE_UART4 && defined STM32F4
#if USE_UART4 && defined STM32F4

/* by default enable UART Tx and Rx */
#ifndef USE_UART4_TX
Expand Down Expand Up @@ -477,7 +477,7 @@ void uart5_isr(void) { usart_isr(&uart5); }
#endif /* USE_UART5 */


#if defined USE_UART6 && defined STM32F4
#if USE_UART6 && defined STM32F4

/* by default enable UART Tx and Rx */
#ifndef USE_UART6_TX
Expand Down
4 changes: 2 additions & 2 deletions sw/airborne/firmwares/beth/uart_hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#define UART3_irq_handler usart3_irq_handler
#define UART5_irq_handler usart5_irq_handler

#if defined USE_UART0 || OVERRIDE_UART0_IRQ_HANDLER
#if USE_UART0 || OVERRIDE_UART0_IRQ_HANDLER
extern void uart0_handler(void);
#endif

Expand All @@ -64,7 +64,7 @@ extern uint8_t uart0_tx_buffer[UART0_TX_BUFFER_SIZE];

#endif /* USE_UART0 */

#if defined USE_UART1 || OVERRIDE_UART1_IRQ_HANDLER
#if USE_UART1 || OVERRIDE_UART1_IRQ_HANDLER
extern void uart1_handler(void);
#endif

Expand Down
2 changes: 1 addition & 1 deletion sw/airborne/mcu.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include "subsystems/radio_control.h"
#endif
#endif
#if defined USE_UART0 || defined USE_UART1 || defined USE_UART2 || defined USE_UART3 || defined USE_UART4 || defined USE_UART5 || defined USE_UART6
#if USE_UART0 || USE_UART1 || USE_UART2 || USE_UART3 || USE_UART4 || USE_UART5 || USE_UART6
#include "mcu_periph/uart.h"
#endif
#if defined USE_I2C0 || defined USE_I2C1 || defined USE_I2C2
Expand Down

0 comments on commit 6f22616

Please sign in to comment.