16#include <soc/soc_caps.h>
41#if SOC_CPU_CORES_NUM > 1
56#if SOC_CPU_CORES_NUM > 1
61 return "unknown(" + std::to_string(
static_cast<unsigned int>(
c)) +
")";
120 return std::to_string(
p.value());
127#include "sdkconfig.h"
128#ifdef CONFIG_IDFXX_STD_FORMAT
135 constexpr auto parse(format_parse_context& ctx) {
return ctx.begin(); }
137 template<
typename FormatContext>
140 return std::copy(s.begin(), s.end(), ctx.out());
145struct formatter<
idfxx::task_priority> {
146 constexpr auto parse(format_parse_context& ctx) {
return ctx.begin(); }
148 template<
typename FormatContext>
151 return std::copy(s.begin(), s.end(), ctx.out());
Type-safe wrapper for FreeRTOS task priority values.
constexpr task_priority() noexcept
Default constructor.
constexpr auto operator<=>(const task_priority &) const noexcept=default
Default three-way comparison.
constexpr task_priority(unsigned int value) noexcept
Constructs from an unsigned integer value.
constexpr unsigned int value() const noexcept
Returns the raw priority value.
core_id
Identifies a specific CPU core.
std::string to_string(core_id c)
Returns a string representation of a CPU core identifier.
std::expected< T, std::error_code > result
result type wrapping a value or error code.