summaryrefslogtreecommitdiff
path: root/cesar/ecos
diff options
context:
space:
mode:
authorCyril Jourdan2012-09-24 10:25:45 +0200
committerCyril Jourdan2012-09-24 16:55:26 +0200
commit739dbdb077c704541fa52010e545e17b22b062c4 (patch)
treef32af36a60ce29ac0a44fc4014a0d32a98d62a68 /cesar/ecos
parenta3090657ce2a865774279829fc3bc3e895e46d8f (diff)
cesar/ecos/pkg: move cyg_hal_uart_clock_freq def to sparc file, no refs
This is done to correct the compilation of unitary tests using eCos after a modification we made for MSE500 firmware.
Diffstat (limited to 'cesar/ecos')
-rw-r--r--cesar/ecos/packages/hal/sparc/leon/current/src/hal_priv.c6
-rw-r--r--cesar/ecos/packages/infra/current/src/diag.cxx4
2 files changed, 6 insertions, 4 deletions
diff --git a/cesar/ecos/packages/hal/sparc/leon/current/src/hal_priv.c b/cesar/ecos/packages/hal/sparc/leon/current/src/hal_priv.c
index 3f3d42aac6..8149bba9b5 100644
--- a/cesar/ecos/packages/hal/sparc/leon/current/src/hal_priv.c
+++ b/cesar/ecos/packages/hal/sparc/leon/current/src/hal_priv.c
@@ -49,6 +49,7 @@
//
//===========================================================================
+#include <pkgconf/hal.h>
#include <cyg/hal/hal_intr.h>
#include <cyg/hal/hal_arch.h>
@@ -57,6 +58,11 @@
// Clock static to keep period recorded.
cyg_int32 cyg_hal_sparc_clock_period = 0;
+/* Variable to configure the uart clock.
+ * This variable is used for an automatic configuration for the SPC300 and the
+ * MSE500. */
+cyg_int32 cyg_hal_uart_clock_freq = CYGNUM_HAL_UART_TRACE_FREQ;
+
// ------------------------------------------------------------------------
// Board specific startups.
diff --git a/cesar/ecos/packages/infra/current/src/diag.cxx b/cesar/ecos/packages/infra/current/src/diag.cxx
index 9e390b6f51..2311627f8c 100644
--- a/cesar/ecos/packages/infra/current/src/diag.cxx
+++ b/cesar/ecos/packages/infra/current/src/diag.cxx
@@ -69,10 +69,6 @@ CYG_HAL_DIAG_LOCK_DATA_DEFN;
#endif
/*----------------------------------------------------------------------*/
-/* Variable to configure the uart clock.
- * This variable is used for an automatic configuration for the SPC300 and the
- * MSE500. */
-cyg_int32 cyg_hal_uart_clock_freq = CYGNUM_HAL_UART_TRACE_FREQ;
externC void diag_write_num(
cyg_uint32 n, /* number to write */