mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-07 03:21:36 +08:00
Updated PX4 use / API of low level GPIO and other hardware-centric system facilities
This commit is contained in:
@@ -486,14 +486,14 @@ MS5611::ioctl(struct file *filp, int cmd, unsigned long arg)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
irqstate_t flags = irqsave();
|
||||
irqstate_t flags = px4_enter_critical_section();
|
||||
|
||||
if (!_reports->resize(arg)) {
|
||||
irqrestore(flags);
|
||||
px4_leave_critical_section(flags);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
irqrestore(flags);
|
||||
px4_leave_critical_section(flags);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -152,11 +152,6 @@ MS5611_SPI::init()
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* sharing a bus with NuttX drivers */
|
||||
#if defined (CONFIG_ARCH_BOARD_PX4FMU_V4)
|
||||
//set_lockmode(SPI::LOCK_THREADS);
|
||||
#endif
|
||||
|
||||
/* send reset command */
|
||||
ret = _reset();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user