mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-07 18:08:53 +08:00
LPC11C24 clock initialization validation
This commit is contained in:
@@ -82,6 +82,10 @@ std::uint64_t getUtcUSecFromCanInterrupt()
|
||||
|
||||
uavcan::MonotonicTime getMonotonic()
|
||||
{
|
||||
if (!initialized)
|
||||
{
|
||||
fail();
|
||||
}
|
||||
std::uint64_t usec = 0;
|
||||
{
|
||||
CriticalSectionLocker locker;
|
||||
@@ -92,6 +96,10 @@ uavcan::MonotonicTime getMonotonic()
|
||||
|
||||
uavcan::UtcTime getUtc()
|
||||
{
|
||||
if (!initialized)
|
||||
{
|
||||
fail();
|
||||
}
|
||||
std::uint64_t usec = 0;
|
||||
if (utc_set)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user