Select one of the symbols to view example projects that use it.
 
Outline
#include <stdio.h>
#include <stdarg.h>
#include <sdkconfig.h>
#include "SEGGER_SYSVIEW_Int.h"
#include "freertos/FreeRTOS.h"
s_log_mutex
esp_sysview_vprintf(const char *, va_list)
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/app_trace/sys_view/ext/logging.c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2018-2021 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #include <stdio.h> #include <stdarg.h> #include <sdkconfig.h> #include "SEGGER_SYSVIEW_Int.h" #include "freertos/FreeRTOS.h"5 includes static portMUX_TYPE s_log_mutex = portMUX_INITIALIZER_UNLOCKED; int esp_sysview_vprintf(const char * format, va_list args) { static char log_buffer[SEGGER_SYSVIEW_MAX_STRING_LEN]; portENTER_CRITICAL(&s_log_mutex); size_t len = vsnprintf(log_buffer, sizeof(log_buffer), format, args); if (len > sizeof(log_buffer) - 1) { log_buffer[sizeof(log_buffer) - 1] = 0; }{...} SEGGER_SYSVIEW_Print(log_buffer); portEXIT_CRITICAL(&s_log_mutex); return len; }{ ... }
Details
Show:
from
Types: Columns: