mirror of
https://github.com/apache/nuttx.git
synced 2025-12-11 12:57:57 +08:00
timers/oneshot: Remove all private callback.
This commit removed all private callback and handle it on the upperhalf of oneshot. Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
committed by
Alin Jerpelea
parent
f70ec7384b
commit
5c113f79b7
@@ -328,6 +328,8 @@ void nxsched_oneshot_extclk(FAR struct oneshot_lowerhalf_s *lower)
|
||||
/* Then start the oneshot */
|
||||
|
||||
g_sched_oneshot.oneshot = lower;
|
||||
lower->callback = nxsched_oneshot_callback;
|
||||
lower->arg = NULL;
|
||||
nxsched_oneshot_start();
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user