mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 05:21:36 +08:00
mtd:spi_dev_e is now uint32_t in NuttX
Using new type of uint32_t for spi device
This commit is contained in:
committed by
Daniel Agar
parent
0d2124ce13
commit
25c8ceaf91
@@ -212,7 +212,7 @@ ramtron_attach(void)
|
|||||||
SPI_SETFREQUENCY(spi, 10 * 1000 * 1000);
|
SPI_SETFREQUENCY(spi, 10 * 1000 * 1000);
|
||||||
SPI_SETBITS(spi, 8);
|
SPI_SETBITS(spi, 8);
|
||||||
SPI_SETMODE(spi, SPIDEV_MODE3);
|
SPI_SETMODE(spi, SPIDEV_MODE3);
|
||||||
SPI_SELECT(spi, SPIDEV_FLASH, false);
|
SPI_SELECT(spi, SPIDEV_FLASH(0), false);
|
||||||
|
|
||||||
if (spi == NULL) {
|
if (spi == NULL) {
|
||||||
PX4_ERR("failed to locate spi bus");
|
PX4_ERR("failed to locate spi bus");
|
||||||
|
|||||||
Reference in New Issue
Block a user