zephyr/samples/subsys/usb/console
Torsten Rasmussen 407b49b35c cmake: use find_package to locate Zephyr
Using find_package to locate Zephyr.

Old behavior was to use $ENV{ZEPHYR_BASE} for inclusion of boiler plate
code.

Whenever an automatic run of CMake happend by the build system / IDE
then it was required that ZEPHYR_BASE was defined.
Using ZEPHYR_BASE only to locate the Zephyr package allows CMake to
cache the base variable and thus allowing subsequent invocation even
if ZEPHYR_BASE is not set in the environment.

It also removes the risk of strange build results if a user switchs
between different Zephyr based project folders and forgetting to reset
ZEPHYR_BASE before running ninja / make.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2020-03-27 16:23:46 +01:00
..
src cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
CMakeLists.txt cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
Kconfig kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
prj.conf usb: console: Initialize USB console after USB Device stack 2019-06-05 11:44:17 +02:00
README.txt boards: remove arduino 101 and related boards 2019-07-29 21:30:25 -07:00
sample.yaml tests: fix test identifiers 2019-12-09 15:53:44 -05:00

Title: USB Console Hello World

Description:

A simple Hello World example, with console output coming to USB UART. Primarily
intended to show the required config options.

Usage
-----
Plug the board into a host device, for example, a PC running Linux.
The board will be detected as a CDC_ACM serial device. To see the console output
from the zephyr board, use a command similar to "minicom -D /dev/ttyACM0".
You may need to stop modemmanager via "sudo stop modemmanager", if it is
trying to access the device in the background.

--------------------------------------------------------------------------------

Building and Running Project:

$ west build -b reel_board

Sample Output:

Hello World! x86
Hello World! x86
Hello World! x86
Hello World! x86
...
...