X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fdrv%2Fkdebug_stm32.c;h=f50f3d89c3d707ad9d2612307be32b585757eb2c;hb=2b387e02ffd797dc8c68e072d29e445821189559;hp=f4368b7e5d5037ba84803ed22efb79192b54bdb3;hpb=537a39cc24ddc234cdd1cbbe21a840933780ea70;p=bertos.git diff --git a/bertos/cpu/cortex-m3/drv/kdebug_stm32.c b/bertos/cpu/cortex-m3/drv/kdebug_stm32.c index f4368b7e..f50f3d89 100644 --- a/bertos/cpu/cortex-m3/drv/kdebug_stm32.c +++ b/bertos/cpu/cortex-m3/drv/kdebug_stm32.c @@ -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)