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
#include "esp_log.h"
2
3
static
const
esp_log_level_t
_pal_level_map
[] = {
4
ESP_LOG_ERROR,
5
ESP_LOG_WARN,
6
ESP_LOG_INFO,
7
ESP_LOG_DEBUG,
8
ESP_LOG_VERBOSE
9
};
10
11
#define PAL_LOGI(tag, fmt, ...) ESP_LOGI(tag, fmt, ##__VA_ARGS__)
12
#define PAL_LOGE(tag, fmt, ...) ESP_LOGE(tag, fmt, ##__VA_ARGS__)
13
#define PAL_LOGW(tag, fmt, ...) ESP_LOGW(tag, fmt, ##__VA_ARGS__)
14
#define PAL_LOGD(tag, fmt, ...) ESP_LOGD(tag, fmt, ##__VA_ARGS__)
15
#define PAL_LOGV(tag, fmt, ...) ESP_LOGV(tag, fmt, ##__VA_ARGS__)
16
17
#define PAL_LOG_BUFFER_HEX(tag, buf, len, level) \
18
ESP_LOG_BUFFER_HEX_LEVEL(tag, buf, len, _pal_level_map[level])
19
#define PAL_LOG_BUFFER_HEXDUMP(tag, buf, len, level) \
20
ESP_LOG_BUFFER_HEXDUMP(tag, buf, len, _pal_level_map[level])
_pal_level_map
static const esp_log_level_t _pal_level_map[]
Definition
pal_log_esp.h:3
components
pal
include
pal_log_esp.h
Generated by
1.13.2