drivers/imu/invensense: new ICM20948 driver on SPI with AK09916 mag

This commit is contained in:
Daniel Agar
2020-05-22 00:09:30 -04:00
committed by GitHub
parent 504794eddc
commit 951969ba00
14 changed files with 1965 additions and 7 deletions
+4 -1
View File
@@ -163,7 +163,7 @@ stm32_boardinitialize(void)
px4_gpio_init(gpio, arraySize(gpio));
/* configure SPI interfaces */
stm32_spiinitialize();
px4_arch_gpiowrite(GPIO_VDD_3V3_SENSORS_EN, 0);
/* configure USB interfaces */
stm32_usbinitialize();
@@ -198,11 +198,14 @@ stm32_boardinitialize(void)
__EXPORT int board_app_initialize(uintptr_t arg)
{
/* Power on Interfaces */
px4_arch_gpiowrite(GPIO_VDD_3V3_SENSORS_EN, 1);
board_control_spi_sensors_power(true, 0xffff);
VDD_3V3_SPEKTRUM_POWER_EN(true);
px4_platform_init();
stm32_spiinitialize();
/* configure the DMA allocator */
if (board_dma_alloc_init() < 0) {
syslog(LOG_ERR, "[boot] DMA alloc FAILED\n");