mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
fix code style
This commit is contained in:
committed by
Lorenz Meier
parent
5d588d98be
commit
4d7fe08069
@@ -301,12 +301,12 @@ __EXPORT int nsh_archinitialize(void)
|
|||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Default SPI2 to 12MHz and de-assert the known chip selects.
|
/* Default SPI2 to 12MHz and de-assert the known chip selects.
|
||||||
* MS5611 has max SPI clock speed of 20MHz
|
* MS5611 has max SPI clock speed of 20MHz
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// XXX start with 10.4 MHz and go up to 20 once validated
|
// XXX start with 10.4 MHz and go up to 20 once validated
|
||||||
SPI_SETFREQUENCY(spi2, 12 * 1000 * 1000);
|
SPI_SETFREQUENCY(spi2, 12 * 1000 * 1000);
|
||||||
SPI_SETBITS(spi2, 8);
|
SPI_SETBITS(spi2, 8);
|
||||||
SPI_SETMODE(spi2, SPIDEV_MODE3);
|
SPI_SETMODE(spi2, SPIDEV_MODE3);
|
||||||
SPI_SELECT(spi2, SPIDEV_FLASH, false);
|
SPI_SELECT(spi2, SPIDEV_FLASH, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user