From 739dbdb077c704541fa52010e545e17b22b062c4 Mon Sep 17 00:00:00 2001 From: Cyril Jourdan Date: Mon, 24 Sep 2012 10:25:45 +0200 Subject: 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. --- cesar/ecos/packages/hal/sparc/leon/current/src/hal_priv.c | 6 ++++++ cesar/ecos/packages/infra/current/src/diag.cxx | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'cesar/ecos') 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 #include #include @@ -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 */ -- cgit v1.2.3