diff --git a/samples/boards/google_kukui/CMakeLists.txt b/samples/boards/google_kukui/CMakeLists.txt new file mode 100644 index 00000000000..c7e6017e06c --- /dev/null +++ b/samples/boards/google_kukui/CMakeLists.txt @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: Apache-2.0 + +cmake_minimum_required(VERSION 3.13.1) + +find_package(Zephyr HINTS $ENV{ZEPHYR_BASE}) +project(google_kukui) + +FILE(GLOB app_sources src/*.c) +target_sources(app PRIVATE ${app_sources}) diff --git a/samples/boards/google_kukui/README.rst b/samples/boards/google_kukui/README.rst new file mode 100644 index 00000000000..444ad4a5eea --- /dev/null +++ b/samples/boards/google_kukui/README.rst @@ -0,0 +1,33 @@ +.. _google_kukui: + +Kukui general features +###################### + +Overview +******** + +This provides access to :ref:`Kukui ` through a serial shell +so you can try out the supported features, including I2C, GPIO and flash access. + +Building +******** + +The sample can be built as follows: + +.. zephyr-app-commands:: + :zephyr-app: samples/boards/google_kukui + :board: google_kukui + :goals: build + :compact: + +Sample Output +============= + +.. code-block:: console + + Welcome to Google Kukui + + uart:~$ (press tab) + clear flash gpio help history i2c resize shell + uart:~$ i2c read I2C_2 36 + 00000000: 82 00 00 ff 80 7f 00 ff 00 00 c1 0a c8 5b 0c 62 |........ .....[.b| diff --git a/samples/boards/google_kukui/prj.conf b/samples/boards/google_kukui/prj.conf new file mode 100644 index 00000000000..f6f8124f52b --- /dev/null +++ b/samples/boards/google_kukui/prj.conf @@ -0,0 +1,6 @@ +# Enable all useful shell commands (i.e. those with driver support) +CONFIG_SHELL=y +CONFIG_SHELL_BACKENDS=y +CONFIG_SHELL_BACKEND_SERIAL=y +CONFIG_GPIO_SHELL=y +CONFIG_I2C_SHELL=y diff --git a/samples/boards/google_kukui/sample.yaml b/samples/boards/google_kukui/sample.yaml new file mode 100644 index 00000000000..4ed777fc72a --- /dev/null +++ b/samples/boards/google_kukui/sample.yaml @@ -0,0 +1,6 @@ +sample: + name: Kukui general features +tests: + sample.board.google_kukui: + platform_whitelist: google_kukui + tags: ec diff --git a/samples/boards/google_kukui/src/main.c b/samples/boards/google_kukui/src/main.c new file mode 100644 index 00000000000..96ca3d119d0 --- /dev/null +++ b/samples/boards/google_kukui/src/main.c @@ -0,0 +1,13 @@ +/* + * Copyright 2020 Google LLC + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include +#include + +void main(void) +{ + printk("Welcome to Google Kukui\n"); +}