NV14 touch driver
This commit is contained in:
committed by
Raphael Coeffic
parent
f8d1e4143b
commit
244efed6ba
@@ -19,10 +19,14 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include "gyro.h"
|
||||
|
||||
#if defined(IMU_I2C_BUS) && defined(IMU_I2C_ADDRESS)
|
||||
|
||||
#include "stm32_i2c_driver.h"
|
||||
#include "delays_driver.h"
|
||||
#include "hal.h"
|
||||
#include "gyro.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
@@ -266,3 +270,10 @@ int gyroRead(uint8_t buffer[IMU_BUFFER_LENGTH])
|
||||
{
|
||||
return I2C_LSM6DS_ReadRegister(LSM6DS_GYRO_OUT_X_L_ADDR, buffer, IMU_BUFFER_LENGTH);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
int gyroInit() { return -1; }
|
||||
int gyroRead(uint8_t buffer[IMU_BUFFER_LENGTH]) { return -1; }
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user