HardFOC Core
API reference
Loading...
Searching...
No Matches
PlatformMutexBackend.h File Reference

RTOS mutex backend – bridges PlatformMutex (interface-wrap) with OsAbstraction (rtos-wrap) at the core/ layer. More...

#include "OsAbstraction.h"

Go to the source code of this file.

Detailed Description

RTOS mutex backend – bridges PlatformMutex (interface-wrap) with OsAbstraction (rtos-wrap) at the core/ layer.

This file is the compile-time injection point for PlatformMutex.h. It lives in handlers/common/ which is already on the core/ include path, so PlatformMutex.h discovers it via __has_include("PlatformMutexBackend.h").

=== Architecture ===

hf-internal-interface-wrap/inc/utils/PlatformMutex.h ^ self-contained, defines NullMutexBackend (no-op default) ^ uses __has_include("PlatformMutexBackend.h") to find this file

hf-utils-rtos-wrap/include/OsAbstraction.h ^ self-contained RTOS abstraction (FreeRTOS / NONE)

handlers/common/PlatformMutexBackend.h <- THIS FILE -> Bridges the two independent modules at the core/ layer -> Defines FreeRtosMutexBackend when HF_RTOS_FREERTOS is active -> Falls through to NullMutexBackend when RTOS=NONE

Author
Nebiyu Tadesse
Date
2025