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