mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Wow ... don't set clock divisor against plain i/o port...
This commit is contained in:
parent
8b4ab25efa
commit
df277c4465
2 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ void ms5611BusInit(busDevice_t *busdev)
|
||||||
IOInit(busdev->busdev_u.spi.csnPin, OWNER_BARO_CS, 0);
|
IOInit(busdev->busdev_u.spi.csnPin, OWNER_BARO_CS, 0);
|
||||||
IOConfigGPIO(busdev->busdev_u.spi.csnPin, IOCFG_OUT_PP);
|
IOConfigGPIO(busdev->busdev_u.spi.csnPin, IOCFG_OUT_PP);
|
||||||
IOHi(busdev->busdev_u.spi.csnPin); // Disable
|
IOHi(busdev->busdev_u.spi.csnPin); // Disable
|
||||||
spiSetDivisor(busdev->busdev_u.spi.csnPin, SPI_CLOCK_STANDARD);
|
spiSetDivisor(busdev->busdev_u.spi.instance, SPI_CLOCK_STANDARD); // XXX
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
UNUSED(busdev);
|
UNUSED(busdev);
|
||||||
|
|
|
@ -64,7 +64,7 @@ void pgResetFn_barometerConfig(barometerConfig_t *barometerConfig)
|
||||||
// a. Precedence is in the order of popularity; BMP280, MS5611 then BMP085, then
|
// a. Precedence is in the order of popularity; BMP280, MS5611 then BMP085, then
|
||||||
// b. If SPI variant is specified, it is likely onboard, so take it.
|
// b. If SPI variant is specified, it is likely onboard, so take it.
|
||||||
|
|
||||||
#if !(defined(DEFAULT_BARO_SPI_BMP280) || defined(DEFAULT_BARO_BMP280) || defined(DEFAULT_BARO_SPI_MS5611) || defined(DEFAULT_BARO_BARO_MS5611) || defined(DEFAULT_BARO_BMP085))
|
#if !(defined(DEFAULT_BARO_SPI_BMP280) || defined(DEFAULT_BARO_BMP280) || defined(DEFAULT_BARO_SPI_MS5611) || defined(DEFAULT_BARO_MS5611) || defined(DEFAULT_BARO_BMP085))
|
||||||
#if defined(USE_BARO_BMP280) || defined(USE_BARO_SPI_BMP280)
|
#if defined(USE_BARO_BMP280) || defined(USE_BARO_SPI_BMP280)
|
||||||
#if defined(USE_BARO_SPI_BMP280)
|
#if defined(USE_BARO_SPI_BMP280)
|
||||||
#define DEFAULT_BARO_SPI_BMP280
|
#define DEFAULT_BARO_SPI_BMP280
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue