55ee53ce91
Prepend the text 'cmake_minimum_required(VERSION 3.8.2)' into the application and test build scripts. Modern versions of CMake will spam users with a deprecation warning when the toplevel CMakeLists.txt does not specify a CMake version. This is documented in bug #8355. To resolve this we include a cmake_minimum_required() line into the toplevel build scripts. Additionally, cmake_minimum_required is invoked from within boilerplate.cmake. The highest version will be enforced. This patch allows us to afterwards change CMake policy CMP000 from OLD to NEW which in turn finally rids us of the verbose warning. The extra boilerplate is considered more acceptable than the verbosity of the CMP0000 policy. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no> |
||
---|---|---|
.. | ||
src | ||
CMakeLists.txt | ||
README.rst | ||
prj.conf | ||
sample.yaml |
README.rst
.. _blinky-sample: Blinky Application ################## Overview ******** The Blinky example shows how to configure GPIO pins as outputs which can also be used to drive LEDs on the hardware usually delivered as "User LEDs" on many of the supported boards in Zephyr. Requirements ************ The demo assumes that an LED is connected to one of GPIO lines. The sample code is configured to work on boards with user defined buttons and that have defined the LED0\_* variables in :file:`board.h`. The :file:`board.h` must define the following variables: - LED0_GPIO_NAME (or LED0_GPIO_CONTROLLER) - LED0_GPIO_PIN Building and Running ******************** This samples does not output anything to the console. It can be built and flashed to a board as follows: .. zephyr-app-commands:: :zephyr-app: samples/basic/blinky :board: arduino_101 :goals: build flash :compact: After flashing the image to the board, the user LED on the board should start to blink.