mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 16:13:35 +08:00
PX4 SPI default to thread locking mode
This commit is contained in:
@@ -124,14 +124,7 @@ MS5611_SPI::MS5611_SPI(uint8_t bus, uint32_t device, ms5611::prom_u &prom_buf) :
|
||||
int
|
||||
MS5611_SPI::init()
|
||||
{
|
||||
int ret;
|
||||
|
||||
#if defined(PX4_SPI_BUS_RAMTRON) && \
|
||||
(PX4_SPI_BUS_BARO == PX4_SPI_BUS_RAMTRON)
|
||||
SPI::set_lockmode(LOCK_THREADS);
|
||||
#endif
|
||||
|
||||
ret = SPI::init();
|
||||
int ret = SPI::init();
|
||||
|
||||
if (ret != OK) {
|
||||
PX4_DEBUG("SPI init failed");
|
||||
|
||||
@@ -341,9 +341,6 @@ PMW3901::init()
|
||||
_yaw_rotation = (enum Rotation)val;
|
||||
}
|
||||
|
||||
/* For devices competing with NuttX SPI drivers on a bus (Crazyflie SD Card expansion board) */
|
||||
SPI::set_lockmode(LOCK_THREADS);
|
||||
|
||||
/* do SPI init (and probe) first */
|
||||
if (SPI::init() != OK) {
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user