diff options
Diffstat (limited to 'bsps/sparc/leon3/include/bsp/leon3.h')
-rw-r--r-- | bsps/sparc/leon3/include/bsp/leon3.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bsps/sparc/leon3/include/bsp/leon3.h b/bsps/sparc/leon3/include/bsp/leon3.h index 1087c8ab58..852d6970ce 100644 --- a/bsps/sparc/leon3/include/bsp/leon3.h +++ b/bsps/sparc/leon3/include/bsp/leon3.h @@ -36,6 +36,7 @@ #ifndef _BSP_LEON3_H #define _BSP_LEON3_H +#include <bspopts.h> #include <rtems.h> #include <grlib/apbuart-regs.h> #include <grlib/gptimer-regs.h> @@ -348,7 +349,11 @@ static inline uint32_t leon3_up_counter_frequency( void ) /** * @brief This pointer provides the debug APBUART register block address. */ +#if defined(LEON3_APBUART_BASE) +#define leon3_debug_uart ((struct apbuart *) LEON3_APBUART_BASE) +#else extern apbuart *leon3_debug_uart; +#endif /** @} */ |