ESP32-P4 OBC Firmware
ESP-IDF firmware for Plant-B CubeSat OBC
Loading...
Searching...
No Matches
pal_log_esp.h
Go to the documentation of this file.
1
24
36
37
#include "esp_log.h"
38
45
static
const
esp_log_level_t
_pal_level_map
[] = {
46
ESP_LOG_ERROR,
47
ESP_LOG_WARN,
48
ESP_LOG_INFO,
49
ESP_LOG_DEBUG,
50
ESP_LOG_VERBOSE
51
};
52
56
57
#define PAL_LOGI(tag, fmt, ...) ESP_LOGI(tag, fmt, ##__VA_ARGS__)
58
#define PAL_LOGE(tag, fmt, ...) ESP_LOGE(tag, fmt, ##__VA_ARGS__)
59
#define PAL_LOGW(tag, fmt, ...) ESP_LOGW(tag, fmt, ##__VA_ARGS__)
60
#define PAL_LOGD(tag, fmt, ...) ESP_LOGD(tag, fmt, ##__VA_ARGS__)
61
#define PAL_LOGV(tag, fmt, ...) ESP_LOGV(tag, fmt, ##__VA_ARGS__)
62
63
#define PAL_LOG_BUFFER_HEX(tag, buf, len, level) \
64
ESP_LOG_BUFFER_HEX_LEVEL(tag, buf, len, _pal_level_map[level])
65
#define PAL_LOG_BUFFER_HEXDUMP(tag, buf, len, level) \
66
ESP_LOG_BUFFER_HEXDUMP(tag, buf, len, _pal_level_map[level])
67
// end of ESP32 Logging Macro Aliases
69
// end of pal_log_esp32 group
71
_pal_level_map
static const esp_log_level_t _pal_level_map[]
Mapping table from pal_log_level_t to esp_log_level_t.
Definition
pal_log_esp.h:45
components
pal
include
pal_log_esp.h
Generated by
1.13.2