aboutsummaryrefslogtreecommitdiff
path: root/zephyr/src
diff options
context:
space:
mode:
authorPaul Sokolovsky2016-07-22 20:19:17 +0300
committerPaul Sokolovsky2016-10-10 01:35:24 +0300
commit9d9efc0c5aaf889e8c041278e0fec7baa9e6dc40 (patch)
treeda494e1fd52b392cf51e457ab871f124232106fe /zephyr/src
parentcff9f02cd735d344552f8c1d6c176e51f5c7f94b (diff)
zephyr: Initial Zephyr RTOS port, Zephyr part.
Diffstat (limited to 'zephyr/src')
-rw-r--r--zephyr/src/Makefile17
-rw-r--r--zephyr/src/zephyr_start.c9
2 files changed, 26 insertions, 0 deletions
diff --git a/zephyr/src/Makefile b/zephyr/src/Makefile
new file mode 100644
index 000000000..36dd8c64e
--- /dev/null
+++ b/zephyr/src/Makefile
@@ -0,0 +1,17 @@
+#
+# Copyright (c) 2016 Intel Corporation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+obj-y += zephyr_start.o zephyr_getchar.o
diff --git a/zephyr/src/zephyr_start.c b/zephyr/src/zephyr_start.c
new file mode 100644
index 000000000..b490cc770
--- /dev/null
+++ b/zephyr/src/zephyr_start.c
@@ -0,0 +1,9 @@
+#include <zephyr.h>
+#include "zephyr_getchar.h"
+
+int real_main(void);
+
+void main(void) {
+ zephyr_getchar_init();
+ real_main();
+}