31 #if (CH_CFG_USE_TM == TRUE) || defined(__DOXYGEN__) 58 tmp->
last = (now - tmp->
last) - offset;
99 tmp->
best = (rtcnt_t)-1;
100 tmp->
worst = (rtcnt_t)0;
101 tmp->
last = (rtcnt_t)0;
151 tm_stop(tmp1, tmp2->
last, (rtcnt_t)0);
rtcnt_t worst
Worst measurement.
#define chSysGetRealtimeCounterX()
Returns the current value of the system real time counter.
rtcnt_t best
Best measurement.
void _tm_init(void)
Initializes the time measurement unit.
Type of a Time Measurement object.
rtcnt_t offset
Measurement calibration value.
rtcnt_t last
Last measurement.
rttime_t cumulative
Cumulative measurement.
ch_system_t ch
System data structures.
NOINLINE void chTMStartMeasurementX(time_measurement_t *tmp)
Starts a 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.
ucnt_t n
Number of measurements.
void chTMObjectInit(time_measurement_t *tmp)
Initializes a TimeMeasurement object.
ChibiOS/RT main include file.
tm_calibration_t tm
Time measurement calibration data.
NOINLINE void chTMStopMeasurementX(time_measurement_t *tmp)
Stops a measurement.