summaryrefslogtreecommitdiff
path: root/bsps/sparc/leon3/include/bsp/leon3.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/sparc/leon3/include/bsp/leon3.h')
-rw-r--r--bsps/sparc/leon3/include/bsp/leon3.h5
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 aa3898e530..1402dfca1b 100644
--- a/bsps/sparc/leon3/include/bsp/leon3.h
+++ b/bsps/sparc/leon3/include/bsp/leon3.h
@@ -39,6 +39,7 @@
#include <grlib/apbuart-regs.h>
#include <grlib/gptimer-regs.h>
+#include <bspopts.h>
#include <bsp/irqimpl.h>
#include <grlib/ambapp.h>
@@ -266,7 +267,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
/** @} */