mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-10 14:58:27 +00:00
[update] disable bflog default
This commit is contained in:
parent
4e77bb637a
commit
e0ebebd4e9
5 changed files with 19 additions and 57 deletions
|
@ -1,14 +1,9 @@
|
|||
#define DBG_TAG "MAIN"
|
||||
|
||||
#include "bflb_mtimer.h"
|
||||
#include <FreeRTOS.h>
|
||||
#include "semphr.h"
|
||||
#include "log.h"
|
||||
#include "board.h"
|
||||
|
||||
BFLOG_DEFINE_TAG(MAIN, DBG_TAG, true);
|
||||
#undef BFLOG_TAG
|
||||
#define BFLOG_TAG BFLOG_GET_TAG(MAIN)
|
||||
#define DBG_TAG "MAIN"
|
||||
#include "log.h"
|
||||
|
||||
static TaskHandle_t consumer_handle;
|
||||
static TaskHandle_t producer_handle;
|
||||
|
@ -84,10 +79,6 @@ int main(void)
|
|||
LOG_I("[OS] Starting producer task...\r\n");
|
||||
xTaskCreate(producer_task, (char *)"producer_task", 512, NULL, configMAX_PRIORITIES - 3, &producer_handle);
|
||||
|
||||
#ifdef CONFIG_BFLOG
|
||||
log_restart();
|
||||
#endif
|
||||
|
||||
vTaskStartScheduler();
|
||||
|
||||
while (1) {
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
set(CONFIG_BFLOG 1)
|
||||
set(CONFIG_BFLOG 0)
|
||||
|
||||
set(CONFIG_VSNPRINTF_FLOAT 1)
|
||||
set(CONFIG_VSNPRINTF_FLOAT_EX 1)
|
||||
set(CONFIG_VSNPRINTF_LONG_LONG 1)
|
||||
|
||||
set(CONFIG_LOG_DISABLE 0)
|
||||
set(CONFIG_ASSERT_DISABLE 0)
|
||||
set(CONFIG_LOG_LEVEL 3)
|
||||
set(CONFIG_BFLOG_POOL_SIZE 1024)
|
||||
#set(CONFIG_LOG_DISABLE 0)
|
||||
#set(CONFIG_ASSERT_DISABLE 0)
|
||||
#set(CONFIG_LOG_LEVEL 3)
|
||||
#set(CONFIG_BFLOG_POOL_SIZE 1024)
|
||||
|
||||
set(CONFIG_FREERTOS 1)
|
Loading…
Add table
Add a link
Reference in a new issue