mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-24 11:37:45 +08:00
init commit
This commit is contained in:
32
modules/imu/BMI088Middleware.h
Normal file
32
modules/imu/BMI088Middleware.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef BMI088MIDDLEWARE_H
|
||||
#define BMI088MIDDLEWARE_H
|
||||
|
||||
#include "main.h"
|
||||
|
||||
#define BMI088_USE_SPI
|
||||
//#define BMI088_USE_IIC
|
||||
|
||||
/*
|
||||
#define CS1_ACCEL_GPIO_Port ACCEL_NSS_GPIO_Port
|
||||
#define CS1_ACCEL_Pin ACCEL_NSS_Pin
|
||||
#define CS1_GYRO_GPIO_Port GYRO_NSS_GPIO_Port
|
||||
#define CS1_GYRO_Pin GYRO_NSS_Pin
|
||||
*/
|
||||
|
||||
|
||||
#if defined(BMI088_USE_SPI)
|
||||
extern void BMI088_ACCEL_NS_L(void);
|
||||
extern void BMI088_ACCEL_NS_H(void);
|
||||
|
||||
extern void BMI088_GYRO_NS_L(void);
|
||||
extern void BMI088_GYRO_NS_H(void);
|
||||
|
||||
extern uint8_t BMI088_read_write_byte(uint8_t reg);
|
||||
|
||||
extern SPI_HandleTypeDef *BMI088_SPI;
|
||||
|
||||
#elif defined(BMI088_USE_IIC)
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user