ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
nimble_npl_os_log.h File Reference

NPL logging hook for the ThreadX port (compiled out). More...

Go to the source code of this file.

Macros

#define BLE_NPL_LOG_IMPL(lvl)
 Define one no-op NPL log entry point for the given level.

Detailed Description

NPL logging hook for the ThreadX port (compiled out).

Tag
[Ring 4 / PORT] {World: S}

Upstream nimble/nimble_npl_log.h chains to this per-port header to pick up BLE_NPL_LOG_IMPL, which defines the BLE_NPL_LOG_DEBUG and friends for one log module. This port has no NimBLE log sink – the project logs through ra8_log – so the macro emits empty static inline functions and every NPL log call compiles away.

It exists so the port supplies the complete pair of headers upstream expects. The build previously borrowed the upstream "dummy" port for this file, and that dropped the dummy's nimble_npl_os.h into the same include path, giving translation units a struct ble_npl_event of { int dummy; } while the port's own TUs saw the real ThreadX-backed layout.

Definition in file nimble_npl_os_log.h.

Macro Definition Documentation

◆ BLE_NPL_LOG_IMPL

#define BLE_NPL_LOG_IMPL ( lvl)
Value:
static inline void _BLE_NPL_LOG_CAT(BLE_NPL_LOG_MODULE, \
_BLE_NPL_LOG_CAT(_, lvl))(const char* fmt, ...) \
{ \
(void)fmt; \
}

Define one no-op NPL log entry point for the given level.

Expands to an empty static inline function named after the enclosing BLE_NPL_LOG_MODULE, matching the signature upstream call sites use so the calls type-check and then optimise away.

Parameters
[in]lvlLog level token (DEBUG, INFO, WARN, ERROR, CRITICAL) as passed by nimble_npl_log.h.
Note
Vendored NimBLE headers use this; first-party code logs through ra8_log instead.
Example:
#define BLE_NPL_LOG_IMPL(lvl)
Define one no-op NPL log entry point for the given level.
Since
0.1.0

Definition at line 49 of file nimble_npl_os_log.h.