summaryrefslogtreecommitdiff
path: root/cesar/ecos/packages/kernel/current/src/common/clock.cxx
diff options
context:
space:
mode:
authorNĂ©lio Laranjeiro2012-06-06 10:45:56 +0200
committerCyril Jourdan2012-09-20 17:00:08 +0200
commit15163a61d2f8280608afdef1de0d3668b5121225 (patch)
tree1bc5b32e9f7e5ae73c32b89042d30b1be6daba14 /cesar/ecos/packages/kernel/current/src/common/clock.cxx
parent5d26e826dd195bd3ac55a357ad32334d2c23258e (diff)
cesar/{ecos,hal}: add sysclock support in boot params, refs #3147
eCos system clock is provided by boot params, this is useful to have the same plc.rom file for mse500 and spc300 without knowing the system clock frequency. This system clock differs from one chip to another (147Mhz for spc300 and ~250Mhz for mse500).
Diffstat (limited to 'cesar/ecos/packages/kernel/current/src/common/clock.cxx')
-rw-r--r--cesar/ecos/packages/kernel/current/src/common/clock.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/cesar/ecos/packages/kernel/current/src/common/clock.cxx b/cesar/ecos/packages/kernel/current/src/common/clock.cxx
index 917b588a39..1f21ddf369 100644
--- a/cesar/ecos/packages/kernel/current/src/common/clock.cxx
+++ b/cesar/ecos/packages/kernel/current/src/common/clock.cxx
@@ -71,6 +71,11 @@
// -------------------------------------------------------------------------
// Static variables
+/* Variable to configure the system clock.
+ * This variable is used for an automatic configuration for the SPC300 and the
+ * MSE500. */
+cyg_int32 cyg_hal_system_clock_freq = CYGNUM_HAL_SYSTEM_CLOCK_FREQ;
+
#ifdef CYGVAR_KERNEL_COUNTERS_CLOCK
Cyg_Clock *Cyg_Clock::real_time_clock = NULL; // System real time clock