MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / getFreeRtosTimerAffinity

Function getFreeRtosTimerAffinity

TactilityCore/Source/CpuAffinity.cpp:43–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43static CpuAffinity getFreeRtosTimerAffinity() {
44#if CONFIG_FREERTOS_NUMBER_OF_CORES == 1
45 return 0;
46#elif defined(CONFIG_FREERTOS_TIMER_TASK_NO_AFFINITY)
47 return None;
48#elif defined(CONFIG_FREERTOS_TIMER_TASK_AFFINITY_CPU0)
49 return 0;
50#elif defined(CONFIG_FREERTOS_TIMER_TASK_AFFINITY_CPU1)
51 return 1;
52#else
53 static_assert(false);
54#endif
55}
56
57#if CONFIG_FREERTOS_NUMBER_OF_CORES == 1
58static const CpuAffinityConfiguration esp = {

Callers 1

CpuAffinity.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected