[nRF52840] Enable default logging option for certification tests. (#1940)

This commit is contained in:
Hubert Miś
2017-06-27 18:14:03 +02:00
committed by Jonathan Hui
parent 50ee0d864e
commit 449841f819
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -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) \
+2 -2
View File
@@ -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
}