2017-01-15 07:39:24 +08:00
|
|
|
.. _hello_world:
|
|
|
|
|
2017-01-05 21:56:21 +08:00
|
|
|
Hello World
|
|
|
|
###########
|
|
|
|
|
|
|
|
Overview
|
2017-01-21 07:58:05 +08:00
|
|
|
********
|
2017-01-05 21:56:21 +08:00
|
|
|
A simple Hello World example that can be used with any supported board and
|
|
|
|
prints 'Hello World' to the console. This application can be built into modes:
|
|
|
|
|
|
|
|
* single thread
|
|
|
|
* multi threading
|
|
|
|
|
|
|
|
Building and Running
|
2017-01-21 07:58:05 +08:00
|
|
|
********************
|
2017-01-05 21:56:21 +08:00
|
|
|
|
|
|
|
This project outputs 'Hello World' to the console. It can be built and executed
|
|
|
|
on QEMU as follows:
|
|
|
|
|
2017-11-12 17:11:39 +08:00
|
|
|
.. zephyr-app-commands::
|
|
|
|
:zephyr-app: samples/hello_world
|
2018-01-18 00:32:31 +08:00
|
|
|
:host-os: unix
|
2017-11-12 17:11:39 +08:00
|
|
|
:board: qemu_x86
|
|
|
|
:goals: run
|
|
|
|
:compact:
|
2017-01-05 21:56:21 +08:00
|
|
|
|
|
|
|
Sample Output
|
2017-01-21 07:58:05 +08:00
|
|
|
=============
|
2017-01-05 21:56:21 +08:00
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
Hello World! x86
|