ProtoCore
v0.0.1
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
portable_platform.cpp
Go to the documentation of this file.
1
// Copyright (C) 2026 Douglas Quigg (dstroy0) <dquigg123@gmail.com>
2
// SPDX-License-Identifier: AGPL-3.0-or-later
3
4
/**
5
* @file portable_platform.cpp
6
* @brief Platform answers for a target with no RTOS concept of a task - host builds included.
7
*
8
* Returns a single constant context id. Everything compares equal, so the pools' owner tripwire is
9
* inert here rather than raising a false alarm: with one context there is no cross-task borrow to
10
* catch. A vendor that DOES have tasks must supply its own, exactly as Espressif does.
11
*/
12
13
#include "
board_drivers/board_profiles/pc_platform.h
"
14
15
#if !PC_VENDOR_ESP
16
17
uintptr_t
pc_platform_context_id
(
void
)
18
{
19
return
1;
// any nonzero constant: the tripwire treats 0 as "no owner recorded yet"
20
}
21
22
#endif
// !PC_VENDOR_ESP
pc_platform.h
The one vendor/die selector for the whole library.
pc_platform_context_id
uintptr_t pc_platform_context_id(void)
Definition
portable_platform.cpp:17
src
board_drivers
hal
portable
portable_platform.cpp
Generated by
1.9.8