mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
[nRF52840] Enable default logging option for certification tests. (#1940)
This commit is contained in:
@@ -79,6 +79,10 @@ COMMONCFLAGS := \
|
||||
-I$(CONFIG_FILE_PATH) \
|
||||
$(NULL)
|
||||
|
||||
ifeq ($(CERT_LOG),1)
|
||||
COMMONCFLAGS += -DOPENTHREAD_CONFIG_ENABLE_DEFAULT_LOG_OUTPUT=1
|
||||
endif
|
||||
|
||||
CPPFLAGS += \
|
||||
$(COMMONCFLAGS) \
|
||||
$(target_CPPFLAGS) \
|
||||
|
||||
@@ -48,7 +48,7 @@ void PlatformInit(int argc, char *argv[])
|
||||
|
||||
nrf_drv_clock_init();
|
||||
|
||||
#if (OPENTHREAD_ENABLE_DEFAULT_LOGGING == 0)
|
||||
#if (OPENTHREAD_CONFIG_ENABLE_DEFAULT_LOG_OUTPUT == 0)
|
||||
nrf5LogInit();
|
||||
#endif
|
||||
nrf5AlarmInit();
|
||||
@@ -67,7 +67,7 @@ void PlatformDeinit(void)
|
||||
nrf5UartDeinit();
|
||||
nrf5RandomDeinit();
|
||||
nrf5AlarmDeinit();
|
||||
#if (OPENTHREAD_ENABLE_DEFAULT_LOGGING == 0)
|
||||
#if (OPENTHREAD_CONFIG_ENABLE_DEFAULT_LOG_OUTPUT == 0)
|
||||
nrf5LogDeinit();
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user