Remove broken debug uart name.
[bertos.git] / bertos / cpu / cortex-m3 / drv / kdebug_stm32.c
index f4368b7e5d5037ba84803ed22efb79192b54bdb3..f50f3d89c3d707ad9d2612307be32b585757eb2c 100644 (file)
@@ -111,8 +111,6 @@ struct stm32_usart
 #define USART_LASTBIT_DISABLE     ((uint16_t)0x0000)
 #define USART_LASTBIT_ENABLE      ((uint16_t)0x0100)
 
-#if CONFIG_KDEBUG_PORT == KDEBUG_PORT_DBGU
-
 #if CONFIG_KDEBUG_PORT == 0
        #define UART_BASE ((struct stm32_usart *)USART1_BASE)
 #elif CONFIG_KDEBUG_PORT == 1
@@ -136,10 +134,6 @@ struct stm32_usart
 
 typedef uint32_t kdbg_irqsave_t;
 
-#else
-#error CONFIG_KDEBUG_PORT should be KDEBUG_PORT_DBGU
-#endif
-
 #define GPIO_USART1_TX_PIN     (1 << 9)
 #define GPIO_USART1_RX_PIN     (1 << 10)