AP_HAL_Linux: add SPI devices for Edge

This commit is contained in:
Georgii Staroselskii 2017-10-18 20:06:53 +03:00 committed by Lucas De Marchi
parent 3ade179700
commit 4e6fab228c
1 changed files with 6 additions and 0 deletions

View File

@ -123,6 +123,12 @@ SPIDesc SPIDeviceManager::_device[] = {
SPIDesc("aeroio", 1, 1, SPI_MODE_0, 8, SPI_CS_KERNEL, 10*MHZ, 10*MHZ),
SPIDesc("bmi160", 3, 0, SPI_MODE_3, 8, SPI_CS_KERNEL, 1*MHZ, 10*MHZ),
};
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_EDGE
SPIDesc SPIDeviceManager::_device[] = {
SPIDesc("mpu60x0", 0, 1, SPI_MODE_0, 8, SPI_CS_KERNEL, 1*MHZ, 11*MHZ),
SPIDesc("mpu60x0ext", 0, 2, SPI_MODE_0, 8, SPI_CS_KERNEL, 1*MHZ, 11*MHZ),
SPIDesc("ms5611", 0, 0, SPI_MODE_0, 8, SPI_CS_KERNEL, 10*MHZ,10*MHZ),
};
#else
// empty device table
SPIDesc SPIDeviceManager::_device[] = {