#include <drv/ser_lm3s.h>
#include "kdebug_lm3s.h"
-#if CONFIG_KDEBUG_PORT == KDEBUG_PORT_DBGU
-
#if CONFIG_KDEBUG_PORT == 0
#define UART_BASE UART0_BASE
#define UART_GPIO_BASE GPIO_PORTA_BASE
typedef uint32_t kdbg_irqsave_t;
-#else
-#error CONFIG_KDEBUG_PORT should be KDEBUG_PORT_DBGU
-#endif
-
INLINE void uart_hw_config(void)
{
unsigned long div, baud = CONFIG_KDEBUG_BAUDRATE;
#ifndef DRV_KDEBUG_LM3S_H
#define DRV_KDEBUG_LM3S_H
-/**
- * \name Values for CONFIG_KDEBUG_PORT.
- *
- * Select which hardware UART to use for system debug.
- *
- * \{
- */
-#define KDEBUG_PORT_DBGU 0 ///< Debug on Debug Unit.
-
-#define KDEBUG_PORT_DEFAULT KDEBUG_PORT_DBGU ///< Default debug port.
+#define KDEBUG_PORT_DEFAULT 0 ///< Default debug port.
/* \} */
#endif /* DRV_KDEBUG_LM3S_H */
#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
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)
#ifndef DRV_KDEBUG_STM32_H
#define DRV_KDEBUG_STM32_H
-/**
- * \name Values for CONFIG_KDEBUG_PORT.
- *
- * Select which hardware UART to use for system debug.
- *
- * \{
- */
-#define KDEBUG_PORT_DBGU 1 ///< Debug on Debug Unit.
-
-#define KDEBUG_PORT_DEFAULT KDEBUG_PORT_DBGU ///< Default debug port.
+#define KDEBUG_PORT_DEFAULT 1 ///< Default debug port.
/* \} */
#endif /* DRV_KDEBUG_STM32_H */