mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 05:23:33 +08:00
platforms: add px4_udelay and px4_mdelay
- NuttX: up_udelay and up_mdelay - Linux: usleep and msleep
This commit is contained in:
@@ -48,6 +48,9 @@ __BEGIN_DECLS
|
||||
#define px4_enter_critical_section() enter_critical_section()
|
||||
#define px4_leave_critical_section(flags) leave_critical_section(flags)
|
||||
|
||||
#define px4_udelay(usec) up_udelay(usec)
|
||||
#define px4_mdelay(msec) up_mdelay(msec)
|
||||
|
||||
#include <arch/board/board.h>
|
||||
|
||||
__END_DECLS
|
||||
|
||||
@@ -33,3 +33,6 @@
|
||||
#pragma once
|
||||
|
||||
#define px4_arch_gpiosetevent(pinset,r,f,e,fp,a) -1
|
||||
|
||||
#define px4_udelay(usec) px4_usleep(usec)
|
||||
#define px4_mdelay(msec) px4_msleep(msec)
|
||||
|
||||
Reference in New Issue
Block a user