NV14 touch driver
This commit is contained in:
committed by
Raphael Coeffic
parent
f8d1e4143b
commit
244efed6ba
@@ -23,6 +23,7 @@
|
||||
#include "stm32_pulse_driver.h"
|
||||
|
||||
#include "hal.h"
|
||||
#include "board.h"
|
||||
#include "timers_driver.h"
|
||||
|
||||
static const stm32_pulse_timer_t extmoduleTimer = {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "stm32_i2c_driver.h"
|
||||
#include "hal.h"
|
||||
|
||||
#include "timers_driver.h"
|
||||
#include "debug.h"
|
||||
|
||||
struct _i2c_defs {
|
||||
|
||||
@@ -28,7 +28,7 @@ uint16_t getTmr2MHz();
|
||||
#define watchdogSuspend(timeout)
|
||||
#else
|
||||
|
||||
#include "board.h"
|
||||
#include "hal.h"
|
||||
|
||||
void init2MhzTimer();
|
||||
void init1msTimer();
|
||||
|
||||
Reference in New Issue
Block a user