Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Jung2016-04-22 18:40:04 +0000
committerThomas Jung2016-04-22 18:40:04 +0000
commit7329667dceddda2dd675bf559a709ad4f7a4b1d1 (patch)
treebd3312e39e5ea1014c0b3e8d082d0487a351d8a3 /runtime/org.eclipse.etrice.runtime.c/src/platforms
parent9292ad444804ed8b63c25a520b2e78d5586875a0 (diff)
downloadorg.eclipse.etrice-7329667dceddda2dd675bf559a709ad4f7a4b1d1.tar.gz
org.eclipse.etrice-7329667dceddda2dd675bf559a709ad4f7a4b1d1.tar.xz
org.eclipse.etrice-7329667dceddda2dd675bf559a709ad4f7a4b1d1.zip
Dave Integration ST runtime fixed (missing defines added)
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.c/src/platforms')
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/platforms/ST_XMC_Dave/etPlatform.h17
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/platforms/ST_XMC_Dave/etSingleThreadedProjectSpecific_Examples/etSingleThreadedProjectSpecific_XMC_Dave_simple.c1
2 files changed, 18 insertions, 0 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/platforms/ST_XMC_Dave/etPlatform.h b/runtime/org.eclipse.etrice.runtime.c/src/platforms/ST_XMC_Dave/etPlatform.h
index 4234318ba..6eb199dc7 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/platforms/ST_XMC_Dave/etPlatform.h
+++ b/runtime/org.eclipse.etrice.runtime.c/src/platforms/ST_XMC_Dave/etPlatform.h
@@ -8,6 +8,23 @@
#ifndef ETPLATFORM_H_
#define ETPLATFORM_H_
+/** Dave ST specific definitions */
+
+// define if SYSTIMER App is available or not
+// some higher level Apps requires the SYSTIMER App
+// if SYSTIMER App is not required from the application,
+// eTrice will use the TimerTick Interrupt directly
+#define ET_USE_DAVE_SYSTIMER_APP
+
+// define systimer interrupt period [us]
+// valid with or without SYSTIMER App
+// e.g. 1000 => Systimer will tick every 1ms
+// 500 => Systimer will tick every 500us
+// 4000 => Systimer will tick every 4ms
+#define ET_DAVE_TICK_PERIOD_USEC 1000
+
+/*********************************/
+
void initHw(void);
#endif /* ETPLATFORM_H_ */
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/platforms/ST_XMC_Dave/etSingleThreadedProjectSpecific_Examples/etSingleThreadedProjectSpecific_XMC_Dave_simple.c b/runtime/org.eclipse.etrice.runtime.c/src/platforms/ST_XMC_Dave/etSingleThreadedProjectSpecific_Examples/etSingleThreadedProjectSpecific_XMC_Dave_simple.c
index 75c32de6f..0f4e704c3 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/platforms/ST_XMC_Dave/etSingleThreadedProjectSpecific_Examples/etSingleThreadedProjectSpecific_XMC_Dave_simple.c
+++ b/runtime/org.eclipse.etrice.runtime.c/src/platforms/ST_XMC_Dave/etSingleThreadedProjectSpecific_Examples/etSingleThreadedProjectSpecific_XMC_Dave_simple.c
@@ -28,6 +28,7 @@
#include "Dave.h"
#include "helpers/etTimeHelpers.h"
#include "etRuntimeConfig.h"
+#include "etPlatform.h"
extern etTime etTargetTime;
void DAVE_InstallTickHandler(void);

Back to the top