diff options
Diffstat (limited to 'os/rt/src/chtm.c')
-rw-r--r-- | os/rt/src/chtm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/rt/src/chtm.c b/os/rt/src/chtm.c index 07f365114..a0001cb62 100644 --- a/os/rt/src/chtm.c +++ b/os/rt/src/chtm.c @@ -82,7 +82,7 @@ void _tm_init(void) { /* Time Measurement subsystem calibration, it does a null measurement
and calculates the call overhead which is subtracted to real
measurements.*/
- ch.tm.offset = 0;
+ ch.tm.offset = (rtcnt_t)0;
chTMObjectInit(&tm);
chTMStartMeasurementX(&tm);
chTMStopMeasurementX(&tm);
@@ -150,7 +150,7 @@ NOINLINE void chTMChainMeasurementToX(time_measurement_t *tmp1, tmp2->last = chSysGetRealtimeCounterX();
/* Stops previous measurement using the same time stamp.*/
- tm_stop(tmp1, tmp2->last, 0);
+ tm_stop(tmp1, tmp2->last, (rtcnt_t)0);
}
#endif /* CH_CFG_USE_TM == TRUE */
|