mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_Linux: Add SPI driver for bebop
This commit is contained in:
parent
d0114eac05
commit
c22d791bfc
|
@ -70,6 +70,9 @@ SPIDeviceDriver SPIDeviceManager::_device[] = {
|
|||
SPIDeviceDriver SPIDeviceManager::_device[] = {
|
||||
SPIDeviceDriver("mpu9250", 0, 0, AP_HAL::SPIDevice_MPU9250, SPI_MODE_0, 8, RPI_GPIO_7, 1*MHZ, 20*MHZ),
|
||||
SPIDeviceDriver("ublox", 0, 0, AP_HAL::SPIDevice_Ublox, SPI_MODE_0, 8, RPI_GPIO_8, 250*KHZ, 5*MHZ),
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP
|
||||
SPIDeviceDriver SPIDeviceManager::_device[] = {
|
||||
SPIDeviceDriver("bebop", 1, 0, AP_HAL::SPIDevice_Bebop, SPI_MODE_0, 8, SPI_CS_KERNEL, 320*KHZ, 320*KHZ),
|
||||
};
|
||||
#else
|
||||
// empty device table
|
||||
|
|
Loading…
Reference in New Issue