Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.c/src/platforms/ST_MSP430_F5438_CCS5_HWElevator/etPlatformLifecycle.c')
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/platforms/ST_MSP430_F5438_CCS5_HWElevator/etPlatformLifecycle.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/platforms/ST_MSP430_F5438_CCS5_HWElevator/etPlatformLifecycle.c b/runtime/org.eclipse.etrice.runtime.c/src/platforms/ST_MSP430_F5438_CCS5_HWElevator/etPlatformLifecycle.c
new file mode 100644
index 000000000..481adcc5b
--- /dev/null
+++ b/runtime/org.eclipse.etrice.runtime.c/src/platforms/ST_MSP430_F5438_CCS5_HWElevator/etPlatformLifecycle.c
@@ -0,0 +1,38 @@
+/*******************************************************************************
+ * Copyright (c) 2013 protos software gmbh (http://www.protos.de).
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * CONTRIBUTORS:
+ * Thomas Schuetz, Thomas Jung (initial contribution)
+ *
+ *******************************************************************************/
+
+
+
+#include "osal/etPlatformLifecycle.h"
+#include "etPlatform.h"
+#include "etThread.h"
+/* implemenatation for eTrice interfaces*/
+
+extern etThread * noThread;
+
+void etUserEntry(void){
+ initHw();
+ etTime_init();
+}
+
+void etUserPreRun(void){
+ /* Start the scheduler. */
+ enableInterrupt();
+ etThread_execute(noThread);
+// ToDo: implement the run loop
+// vTaskStartScheduler();
+
+}
+
+void etUserPostRun(void){ }
+void etUserExit(void){ }
+

Back to the top