zephyr/samples/drivers/misc/ft800
Keith Packard 0b90fd5adf samples, tests, boards: Switch main return type from void to int
As both C and C++ standards require applications running under an OS to
return 'int', adapt that for Zephyr to align with those standard. This also
eliminates errors when building with clang when not using -ffreestanding,
and reduces the need for compiler flags to silence warnings for both clang
and gcc.

Most of these changes were automated using coccinelle with the following
script:

@@
@@
- void
+ int
main(...) {
	...
-	return;
+	return 0;
	...
}

Approximately 40 files had to be edited by hand as coccinelle was unable to
fix them.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-04-14 07:49:41 +09:00
..
src samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
CMakeLists.txt
prj.conf
README.rst
sample.yaml

.. _display-ft800-sample:

FT800
#####

Overview
********

This sample displays a hello message and an incrementing counter using FT800
Embedded Video Engine.

Requirements
************

To use this sample, the following hardware is required:

* A board with SPI support
* Display with `FT800 EVE`_ like `VM800C board`_

Wiring
******

You will need to connect the `FT800 EVE`_ SPI interface onto a board that
supports Arduino shields.

Building and Running
********************

This sample should work on any board that has SPI enabled and has an Arduino
shield interface. For example, it can be run on the nRF52840-DK board as
described below:

.. zephyr-app-commands::
   :zephyr-app: samples/drivers/misc/ft800
   :board: nrf52840dk_nrf52840
   :goals: flash
   :compact:

To build the sample for `VM800C board`_ the shield must be defined as described
below:

.. zephyr-app-commands::
   :zephyr-app: samples/drivers/misc/ft800
   :board: nrf52840dk_nrf52840
   :shield: ftdi_vm800c
   :goals: flash
   :compact:

.. _VM800C board: https://www.ftdichip.com/old2020/Products/Modules/VM800C.html
.. _FT800 EVE: https://www.ftdichip.com/old2020/Products/ICs/FT800.html