|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
esp-hosted port header: the per-file log tag the core expects. More...
#include "esp_log.h"Go to the source code of this file.
Macros | |
| #define | DEFINE_LOG_TAG(tag) |
| Declare the file-scope s_esp_hosted_tag string the ESP_LOGx macros use. | |
| #define | TAG s_esp_hosted_tag |
| Preserve the tag identifier required by vendored esp-hosted macros. | |
esp-hosted port header: the per-file log tag the core expects.
One of the ten port headers the vendored esp-hosted core includes by name (see docs/SOUP/esp-hosted-host.md); thirteen vendored translation units reach it. Upstream ships its equivalent under host/port/, which this project excludes; this file is its first-party replacement and keeps the upstream file name and macro spelling exactly.
It does two things and nothing else: it pulls in the ESP-IDF-compatible logging surface (port/esp-hosted/inc/idf_compat/esp_log.h, also first-party), and it supplies DEFINE_LOG_TAG, the one-liner every vendored source uses to declare the file-scope s_esp_hosted_tag symbol that the ESP_LOGx macros then take as their first argument.
Definition in file port_esp_hosted_host_log.h.
| #define DEFINE_LOG_TAG | ( | tag | ) |
Declare the file-scope s_esp_hosted_tag string the ESP_LOGx macros use.
Expands to a static const char* initialised to the stringised argument with the upstream H_ prefix, so DEFINE_LOG_TAG(spi) yields "H_spi". That prefix is what distinguishes an esp-hosted line from the rest of the firmware's log in a mixed console capture, and it matches the hand-written tags the vendored drivers that do not use this macro already carry ("H_SDIO_DRV", "H_API").
The declaration carries [[maybe_unused]] because several vendored translation units define the tag near the top of the file and then reach a build configuration in which every one of their log calls compiles out; without the attribute that is an unused-variable diagnostic, and the tree builds with -Werror.
| [in] | tag | Bare identifier naming the module; stringised, so it is not evaluated and does not have to exist as a symbol. |
Definition at line 70 of file port_esp_hosted_host_log.h.
| #define TAG s_esp_hosted_tag |
Preserve the tag identifier required by vendored esp-hosted macros.
Expands only to the first-party s_esp_hosted_tag storage name; no second object or external symbol is introduced. Vendored hex-dump and error-check macros name TAG implicitly, so this compatibility spelling is part of the port boundary while the owned storage still follows RA8 file-scope naming.
Definition at line 83 of file port_esp_hosted_host_log.h.