JerrySlhao commented on PR #15428: URL: https://github.com/apache/nuttx/pull/15428#issuecomment-2572721007
add bmi088 device used spi,now support spi. By the way, the STM32G4 series SPI driver is added to the SPI driver of STM32. ## Summary This PR adds a new driver for the Bosch BMI088 accelerometer and gyroscope sensor, utilizing the SPI bus. This sensor is commonly used in robotics and drone applications and provides high-precision inertial measurement. The driver support users in the application layer through the ioctl to set the accelerometer and gyroscope range, data output rate, etc. This PR also includes updates to the STM32G4 series SPI driver to support the BMI088's specific communication requirements. This change is necessary because NuttX currently lacks support for this sensor. ## Impact ### Is new feature added? Yes,Add a New Feature. ### Impact on user (will user need to adapt to change)? Yes,User need to open the macro definition. CONFIG_SENSORS=y CONFIG_SENSORS_BMI088=y CONFIG_SENSORS_BMI088_APP=y CONFIG_SENSORS_BMI088_SPI=y CONFIG_STM32_SPI2=y CONFIG_STM32_SPI=y CONFIG_FS_NAMED_SEMAPHORES=y CONFIG_FS_NAMED_SEMAPHORES_VFS_PATH="/var/sem" ### Impact on build (will build process change)? No. ### Impact on hardware (will arch(s) / board(s) / driver(s) change)? Yes. arch/arm/src/stm32/stm32_spi.c: add macro to support stm32g4. drivers/sensor: add bmi088.c、bmi088_base.c、bmi088_base.h、bmi088_uorb.c include/nuttx/sensor: add bmi088.h ### Impact on documentation (is update required / provided)? No. ### Impact on security (any sort of implications)? No. ### Impact on compatibility (backward/forward/interoperability)? No. ## Testing host machine: ubuntu20.04 complier and version: gcc 9.4.0 board: myself board and chip type is stm32g474ret6  -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
