1
0
forked from me/IronOS
Files
IronOS/source/Core/Drivers/accelerometers_common.h
Ben V. Brown 1396363eaa Make all accelerometers I2C bus aware
Update accelerometers_common.h
2023-10-24 08:27:05 +11:00

15 lines
357 B
C

#ifndef CORE_DRIVERS_ACCELEROMTERS_COMMON_H_
#define CORE_DRIVERS_ACCELEROMTERS_COMMON_H_
#include "configuration.h"
#if defined(ACCEL_I2CBB2)
#include "I2CBB2.hpp"
#define ACCEL_I2C_CLASS I2CBB2
#elif defined(ACCEL_I2CBB1)
#include "I2CBB1.hpp"
#define ACCEL_I2C_CLASS I2CBB1
#else
#include "I2C_Wrapper.hpp"
#define ACCEL_I2C_CLASS FRToSI2C
#endif
#endif