33 lines
609 B
C
33 lines
609 B
C
#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
|