mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
LPC11C24 clock initialization validation
This commit is contained in:
parent
3f8a61a4c1
commit
5a649eb11b
@ -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)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user