zephyr: add default LOG and MULTITHREADING values in kconfig

Add Log processing configuration synchronous as default
if multithreading is disabled.

Additionally Kconfig makes MULTITHREADING default
if USB is selected.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
This commit is contained in:
Andrzej Puzdrowski 2020-02-20 12:39:12 +01:00
parent 5d96bd20a9
commit 9a4946ce9a
2 changed files with 4 additions and 1 deletions

View File

@ -353,9 +353,13 @@ comment "Zephyr configuration options"
# it to n here. Otherwise, having it on by default makes the most
# hardware work.
config MULTITHREADING
default y if BOOT_SERIAL_CDC_ACM #usb driver requires MULTITHREADING
default n if SOC_FAMILY_NRF
default y
config LOG_IMMEDIATE
default n if MULTITHREADING
config UPDATEABLE_IMAGE_NUMBER
int "Number of updateable images"
default 1

View File

@ -45,6 +45,5 @@ CONFIG_FLASH=y
# CONFIG_I2C is not set
CONFIG_LOG=y
CONFIG_LOG_IMMEDIATE=y
### Ensure Zephyr logging changes don't use more resources
CONFIG_LOG_DEFAULT_LEVEL=0