HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
Loading...
Searching...
No Matches
TaskTiming Namespace Reference

Centralized timing constants for FreeRTOS tasks in this application. More...

Variables

static constexpr int64_t LOG_INTERVAL_US = 5'000'000
 
static constexpr int64_t LOG_INTERVAL_LONG_US = 30'000'000
 
static constexpr uint32_t MOTION_UPDATE_PERIOD_MS = 10
 
static constexpr int64_t SG_LOG_INTERVAL_US = 200'000
 
static constexpr int64_t SG_LOG_INTERVAL_ALWAYS_US = 1'000'000
 
static constexpr uint32_t STATUS_UPDATE_PERIOD_MS = 1'000
 
static constexpr uint32_t UART_POLL_PERIOD_MS = 50
 

Detailed Description

Centralized timing constants for FreeRTOS tasks in this application.

This namespace provides a single source of truth for all task timing parameters. These are intentionally static constexpr so:

  • all tasks share a single source of truth
  • the compiler can still fold constants
  • values can be easily tuned in one place

Change values here to tune logging cadence and control-loop update rates.

Variable Documentation

◆ LOG_INTERVAL_LONG_US

constexpr int64_t TaskTiming::LOG_INTERVAL_LONG_US = 30'000'000
staticconstexpr

◆ LOG_INTERVAL_US

constexpr int64_t TaskTiming::LOG_INTERVAL_US = 5'000'000
staticconstexpr

◆ MOTION_UPDATE_PERIOD_MS

constexpr uint32_t TaskTiming::MOTION_UPDATE_PERIOD_MS = 10
staticconstexpr

◆ SG_LOG_INTERVAL_ALWAYS_US

constexpr int64_t TaskTiming::SG_LOG_INTERVAL_ALWAYS_US = 1'000'000
staticconstexpr

◆ SG_LOG_INTERVAL_US

constexpr int64_t TaskTiming::SG_LOG_INTERVAL_US = 200'000
staticconstexpr

◆ STATUS_UPDATE_PERIOD_MS

constexpr uint32_t TaskTiming::STATUS_UPDATE_PERIOD_MS = 1'000
staticconstexpr

◆ UART_POLL_PERIOD_MS

constexpr uint32_t TaskTiming::UART_POLL_PERIOD_MS = 50
staticconstexpr