Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User high resolution timer fix #20099

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 2 additions & 12 deletions platforms/nuttx/src/px4/common/usr_hrt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,6 @@ hrt_absolute_time(void)
return abstime;
}

/**
* Store the absolute time in an interrupt-safe fashion
*/
void
hrt_store_absolute_time(volatile hrt_abstime *t)
{
irqstate_t flags = px4_enter_critical_section();
pussuw marked this conversation as resolved.
Show resolved Hide resolved
*t = hrt_absolute_time();
px4_leave_critical_section(flags);
}

/**
* Event dispatcher thread
*/
Expand Down Expand Up @@ -122,7 +111,8 @@ void
hrt_init(void)
{
px4_register_shutdown_hook(hrt_request_stop);
g_usr_hrt_task = px4_task_spawn_cmd("usr_hrt", SCHED_DEFAULT, SCHED_PRIORITY_MAX, 1000, event_thread, NULL);
g_usr_hrt_task = px4_task_spawn_cmd("usr_hrt", SCHED_DEFAULT, SCHED_PRIORITY_MAX, PX4_STACK_ADJUSTED(1024),
event_thread, NULL);
}

/**
Expand Down