Go to the documentation of this file.
31 #if (CH_CFG_USE_TM == TRUE) || defined(__DOXYGEN__)
42 #define TM_CALIBRATION_LOOP 4U
65 tmp->
last = (now - tmp->
last) - offset;
111 tmp->
best = (rtcnt_t)-1;
112 tmp->
worst = (rtcnt_t)0;
113 tmp->
last = (rtcnt_t)0;
163 tm_stop(tmp1, tmp2->
last, (rtcnt_t)0);
rttime_t cumulative
Cumulative measurement.
rtcnt_t last
Last measurement.
#define TM_CALIBRATION_LOOP
Number of iterations in the calibration loop.
#define chSysGetRealtimeCounterX()
Returns the current value of the system real time counter.
rtcnt_t offset
Measurement calibration value.
rtcnt_t worst
Worst measurement.
ucnt_t n
Number of measurements.
Type of a Time Measurement object.
void _tm_init(void)
Initializes the time measurement unit.
void chTMObjectInit(time_measurement_t *tmp)
Initializes a TimeMeasurement object.
ch_system_t ch
System data structures.
ChibiOS/RT main include file.
NOINLINE void chTMStopMeasurementX(time_measurement_t *tmp)
Stops a measurement.
rtcnt_t best
Best measurement.
NOINLINE void chTMChainMeasurementToX(time_measurement_t *tmp1, time_measurement_t *tmp2)
Stops a measurement and chains to the next one using the same time stamp.
tm_calibration_t tm
Time measurement calibration data.
NOINLINE void chTMStartMeasurementX(time_measurement_t *tmp)
Starts a measurement.