Go to the documentation of this file.
31 #if (CH_CFG_USE_TM == TRUE) || defined(__DOXYGEN__)
42 #define TM_CALIBRATION_LOOP 4U
52 #if PORT_SUPPORTS_RT == FALSE
53 #error "CH_CFG_USE_TM requires PORT_SUPPORTS_RT"
Type of a time measurement calibration data.
rttime_t cumulative
Cumulative measurement.
rtcnt_t last
Last measurement.
#define NOINLINE
Makes functions not inlineable.
#define TM_CALIBRATION_LOOP
Number of iterations in the calibration loop.
rtcnt_t offset
Measurement calibration value.
rtcnt_t worst
Worst measurement.
ucnt_t n
Number of measurements.
Type of a Time Measurement object.
static void __tm_calibration_object_init(tm_calibration_t *tcp)
Time measurement initialization.
void chTMObjectInit(time_measurement_t *tmp)
Initializes a TimeMeasurement object.
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.
NOINLINE void chTMStartMeasurementX(time_measurement_t *tmp)
Starts a measurement.