Fix Error: chip/stm32_qencoder.c:989:46: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int')
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
ab31236905
commit
a34230c954
@ -576,11 +576,13 @@ static inline int __mpu_write_pwr_mgmt_2(FAR struct mpu_dev_s *dev,
|
|||||||
return __mpu_write_reg(dev, PWR_MGMT_2, &val, sizeof(val));
|
return __mpu_write_reg(dev, PWR_MGMT_2, &val, sizeof(val));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_MPU60X0_SPI
|
||||||
static inline int __mpu_write_user_ctrl(FAR struct mpu_dev_s *dev,
|
static inline int __mpu_write_user_ctrl(FAR struct mpu_dev_s *dev,
|
||||||
uint8_t val)
|
uint8_t val)
|
||||||
{
|
{
|
||||||
return __mpu_write_reg(dev, USER_CTRL, &val, sizeof(val));
|
return __mpu_write_reg(dev, USER_CTRL, &val, sizeof(val));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* __mpu_write_gyro_config() :
|
/* __mpu_write_gyro_config() :
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user