aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2021-03-09 09:18:46 +0100
committerKristofer Jonsson <kristofer.jonsson@arm.com>2021-03-10 17:14:26 +0100
commitbd59c79d70d9cb2e8bd5fd4b13204cf6df6fcd62 (patch)
treea58fd2eda52f4bced382ba86f2d7a7ff72eb33cd
parentf521be94ac5017dc6be02e6344aef2bd68dc8343 (diff)
downloadethos-u-core-platform-bd59c79d70d9cb2e8bd5fd4b13204cf6df6fcd62.tar.gz
Hello world application
Adding hello world application that is useful when porting the stack to a new target platform. Change-Id: I28ba96d9fac1489d73b84cb7940d05cf9860e4ed
-rw-r--r--applications/CMakeLists.txt2
-rw-r--r--applications/hello_world/CMakeLists.txt20
-rw-r--r--applications/hello_world/main.cpp24
3 files changed, 46 insertions, 0 deletions
diff --git a/applications/CMakeLists.txt b/applications/CMakeLists.txt
index 178fc53..4950c51 100644
--- a/applications/CMakeLists.txt
+++ b/applications/CMakeLists.txt
@@ -18,6 +18,8 @@
add_subdirectory(freertos)
+add_subdirectory(hello_world)
+
if (CMAKE_CXX_COMPILER_ID STREQUAL "ARMClang")
# Only armclang supported for now
add_subdirectory(trustzone_inference)
diff --git a/applications/hello_world/CMakeLists.txt b/applications/hello_world/CMakeLists.txt
new file mode 100644
index 0000000..1b500dc
--- /dev/null
+++ b/applications/hello_world/CMakeLists.txt
@@ -0,0 +1,20 @@
+#
+# Copyright (c) 2021 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# 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
+#
+# 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.
+#
+
+ethosu_add_executable_test(hello_world PRIVATE
+ SOURCES main.cpp)
diff --git a/applications/hello_world/main.cpp b/applications/hello_world/main.cpp
new file mode 100644
index 0000000..6dd745a
--- /dev/null
+++ b/applications/hello_world/main.cpp
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2021 Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * 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
+ *
+ * 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.
+ */
+
+#include <stdio.h>
+
+int main() {
+ printf("Hello world\n");
+ return 0;
+}