为什么我设置fifo的水印阈值,映射到中断2上面,但是中断2不会输出电平变化啊
下面是我的代码
Lsm6ds3_SoftwareReset();
// 加速度计26HZ, 2g量程。
LSM6DS3TRC_Set_CTRL1_XL(0x1D);
LSM6DS3TRC_Set_CTRL2_G(0x14);
//Block Data update, Interrupt output active high, Little Endian
iic_writeRegister(LSM6DS_ADDR, LSM6DS3TRC_CTRL3_C, 0x44);
LSM6DS3TRC_Set_FIFO_CTRL4(0x80); //STOP_ON_FTH =1
//FIFO Continuous mode, If the FIFO is full, the new sample overwrites the older one.
//LSM6DS3TRC_Set_FIFO_CTRL5(0x0E); //FIFO Continuous mode
LSM6DS3TRC_Set_FIFO_CTRL5(0x09); //FIFO mode
//Accelerometer FIFO decimation setting 0x02:Decimation with factor 2
LSM6DS3TRC_Set_FIFO_CTRL3(0x09); // XL+GYRO
//set FIFO threshold
Lsm6ds3_SetFifoThresholdInFrames(300);
// enable accelerometer int2
LSM6DS3TRC_Set_INT2_CTRL(0x08);
//disable high-performance mode
LSM6DS3TRC_Set_CTRL6_C(0x10);
// 设置陀螺仪为低功耗模式(bit7 = 1)
LSM6DS3TRC_Set_CTRL7_G(0x80);


