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>
|
||
|---|---|---|
| .. | ||
| src | ||
| CMakeLists.txt | ||
| prj.conf | ||
| README.rst | ||
| sample.yaml | ||
.. _kscan-touch-sample: KSCAN touch panel example #################################### Overview ******** This sample demonstrates how to interface with a touch panel. When touches are detected a log message is output on the console. Building and Running ******************** The sample can be built and executed on boards with a touch panel for example stm32f746g_disco or mimxrt1060_evk. The boards dts file should contain an alias to kscan0 Sample output ============= .. code-block:: console KSCAN test for touch panels. Note: You are expected to see several callbacks as you touch the screen.