File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed
samples/subsys/logging/logger Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.8.2 )
2
2
3
+ set (KCONFIG_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /Kconfig )
4
+
3
5
include ($ENV{ZEPHYR_BASE} /cmake/app/boilerplate.cmake NO_POLICY_SCOPE )
4
6
project (NONE )
5
7
Original file line number Diff line number Diff line change
1
+ # Kconfig - Config options for logger sample app
2
+ #
3
+ # Copyright (c) 2018 Nordic Semiconductor ASA
4
+ #
5
+ # SPDX-License-Identifier: Apache-2.0
6
+ #
7
+
8
+ mainmenu "Logger sample application"
9
+
10
+ menu "Application configuration"
11
+
12
+ module = SAMPLE_MODULE
13
+ module-str = Sample module
14
+ source "subsys/logging/Kconfig.template.log_config"
15
+
16
+ endmenu
17
+
18
+ source "$(ZEPHYR_BASE)/Kconfig.zephyr"
Original file line number Diff line number Diff line change 4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
6
6
#include <zephyr.h>
7
-
8
- #define LOG_MODULE_NAME foo
9
7
#include <logging/log.h>
10
8
9
+ #define LOG_MODULE_NAME sample_module
10
+ #define LOG_LEVEL CONFIG_SAMPLE_MODULE_LOG_LEVEL
11
11
LOG_MODULE_REGISTER (LOG_MODULE_NAME );
12
12
13
13
const char * sample_module_name_get (void )
You can’t perform that action at this time.
0 commit comments