Skip to content

Commit

Permalink
[BL602] Enable async log output (project-chip#19980)
Browse files Browse the repository at this point in the history
* [BL602] Enable async log output

* [BL602] Remove log
  • Loading branch information
jczhang777 authored Jun 26, 2022
1 parent 2032aae commit e831046
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions examples/lighting-app/bouffalolab/bl602/src/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <platform/bouffalolab/BL602/OTAImageProcessorImpl.h>
#include <platform/internal/CHIPDeviceLayerInternal.h>

#include <async_log.h>
#include <bl_sys_ota.h>
#include <lib/support/ErrorStr.h>

Expand Down Expand Up @@ -152,6 +153,7 @@ void AppTask::AppTaskMain(void * pvParameter)
CHIP_ERROR err;

log_info("App Task entered\r\n");
enable_async_log();

err = sWiFiNetworkCommissioningInstance.Init();
if (CHIP_NO_ERROR != err)
Expand Down
2 changes: 0 additions & 2 deletions src/platform/bouffalolab/BL602/DnssdImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,6 @@ CHIP_ERROR ChipDnssdPublishService(const DnssdService * service, DnssdPublishCal
int slot;
bool mdns_flag;

log_info("============================== ChipDnssdPublishService.\r\n");

if (!(chip::DeviceLayer::ConnectivityMgrImpl()._IsWiFiStationConnected()))
{
return CHIP_ERROR_NOT_IMPLEMENTED;
Expand Down
3 changes: 2 additions & 1 deletion third_party/bouffalolab/bl602_sdk/bl602_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ template("bl602_sdk") {
"${bl602_sdk_root}/components/utils/include/",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Inc/",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/",
"${bl602_sdk_root}/components/utils/async_log/",
]

# if (bl602_board == "BL-HWC-G1") {
Expand All @@ -155,7 +156,6 @@ template("bl602_sdk") {

"SYS_BLOG_ENABLE=1",
"SYS_VFS_ENABLE=1",
"SYS_VFS_UART_ENABLE=1",
"SYS_AOS_LOOP_ENABLE=1",
"BL602=BL602",
"SYS_LOOPRT_ENABLE=1",
Expand Down Expand Up @@ -539,6 +539,7 @@ template("bl602_sdk") {
"${bl602_sdk_root}/components/sys/bloop/looprt/src/looprt.c",
"${bl602_sdk_root}/components/sys/bloop/loopset/src/loopset_led.c",
"${bl602_sdk_root}/components/sys/bltime/bl_sys_time.c",
"${bl602_sdk_root}/components/utils/async_log/async_log.c",
"${bl602_sdk_root}/components/utils/src/utils_crc.c",
"${bl602_sdk_root}/components/utils/src/utils_dns.c",
"${bl602_sdk_root}/components/utils/src/utils_hmac_sha1_fast.c",
Expand Down

0 comments on commit e831046

Please sign in to comment.