Skip to content

Commit e50d42c

Browse files
gmarullcarlescufi
authored andcommitted
app: delete foo sample code
The initial idea behind this code was to showcase documentation. It does not add any special value to the sample, so remove it. A proper library can be added in the future. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent bf4392f commit e50d42c

File tree

4 files changed

+1
-49
lines changed

4 files changed

+1
-49
lines changed

app/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ project(app LANGUAGES C VERSION 1.0.0)
1212
configure_file(app_version.h.in ${CMAKE_BINARY_DIR}/app/include/app_version.h)
1313
target_include_directories(app PRIVATE ${CMAKE_BINARY_DIR}/app/include src)
1414

15-
target_sources(app PRIVATE src/main.c src/foo.c)
15+
target_sources(app PRIVATE src/main.c)

app/src/foo.c

Lines changed: 0 additions & 11 deletions
This file was deleted.

app/src/foo.h

Lines changed: 0 additions & 30 deletions
This file was deleted.

app/src/main.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <drivers/sensor.h>
88

99
#include "app_version.h"
10-
#include "foo.h"
1110

1211
#include <logging/log.h>
1312
LOG_MODULE_REGISTER(main, CONFIG_APP_LOG_LEVEL);
@@ -19,12 +18,6 @@ void main(void)
1918

2019
printk("Zephyr Example Application %s\n", APP_VERSION_STR);
2120

22-
ret = app_foo_bar();
23-
if (ret < 0) {
24-
LOG_ERR("app_foo_bar failed (%d)", ret);
25-
return;
26-
}
27-
2821
sensor = DEVICE_DT_GET(DT_NODELABEL(examplesensor0));
2922
if (!device_is_ready(sensor)) {
3023
LOG_ERR("Sensor not ready");

0 commit comments

Comments
 (0)