LPC11C24 warning fixes

This commit is contained in:
Pavel Kirienko
2014-08-28 17:43:12 +04:00
parent 8a8bb78d38
commit 0bfd5a95df
5 changed files with 19 additions and 5 deletions
@@ -35,7 +35,7 @@ const int32_t MaxUtcSpeedCorrectionX16 = 100 * 16;
#if __GNUC__
__attribute__((noreturn))
#endif
void fail()
static void fail()
{
while (true) { }
}
@@ -130,7 +130,7 @@ void adjustUtc(uavcan::UtcDuration adjustment)
}
else
{
time_utc += adj_usec;
time_utc = uint64_t(int64_t(time_utc) + adj_usec);
}
}
if (!utc_set)
@@ -168,7 +168,7 @@ void SysTick_Handler()
if (utc_set)
{
// Values below 16 are ignored
time_utc += USecPerOverflow + (utc_correction_usec_per_overflow_x16 / 16);
time_utc += uint64_t(int32_t(USecPerOverflow) + (utc_correction_usec_per_overflow_x16 / 16));
}
}
else