-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Missing log function in Zephyr standalone platform (#34413)
* Add missing log option Signed-off-by: Caldeira, Quentin <[email protected]> * Add missing logging Kconfig I've created this one with the previous PR, but I didn't see that it was ignored by .gitignore because I named it Kconfig.log, so rename it to Kconfig.logging Always with the purpose to separate each function in a dedicated Kconfig to source in your application, to avoid Kconfig warning, and let your prj.conf be application configuration only Signed-off-by: Caldeira, Quentin <[email protected]> * Move CHIP_APP_LOG_LEVEL Because every zephyr's user seems to rely on the zephyr logging system, move the log declaration into the zephyr folder Signed-off-by: Caldeira, Quentin <[email protected]> --------- Signed-off-by: Caldeira, Quentin <[email protected]>
- Loading branch information
1 parent
8ec715b
commit 1500040
Showing
5 changed files
with
50 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# | ||
# Copyright (c) 2021 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
config LOG | ||
default y | ||
|
||
if LOG | ||
|
||
choice LOG_MODE | ||
default LOG_MODE_MINIMAL | ||
endchoice | ||
|
||
choice MATTER_LOG_LEVEL_CHOICE | ||
default MATTER_LOG_LEVEL_DBG | ||
endchoice | ||
|
||
config CHIP_APP_LOG_LEVEL | ||
default 4 # debug | ||
|
||
config LOG_DEFAULT_LEVEL | ||
default 1 # error | ||
|
||
# disable synchronous printk to avoid blocking IRQs which | ||
# may affect time sensitive components | ||
config PRINTK_SYNC | ||
default n | ||
|
||
endif # LOG |