mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00: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
|
||||
|
||||
Reference in New Issue
Block a user