mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 16:07:34 +08:00
Kinetis:hrt stub - to get to command prompt
This commit is contained in:
committed by
Daniel Agar
parent
9a0fbe5623
commit
790da4dec3
@@ -555,7 +555,7 @@ hrt_abstime
|
||||
hrt_absolute_time(void)
|
||||
{
|
||||
hrt_abstime abstime;
|
||||
uint32_t count;
|
||||
static uint32_t count = 0;
|
||||
irqstate_t flags;
|
||||
|
||||
/*
|
||||
@@ -571,7 +571,7 @@ hrt_absolute_time(void)
|
||||
flags = px4_enter_critical_section();
|
||||
|
||||
/* get the current counter value */
|
||||
count = rCNT;
|
||||
count++;
|
||||
|
||||
/*
|
||||
* Determine whether the counter has wrapped since the
|
||||
|
||||
Reference in New Issue
Block a user