A bug in the driver fsl_capt.c for LPC845 SDK v2.8.0

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

A bug in the driver fsl_capt.c for LPC845 SDK v2.8.0

574 次查看
PXU
Contributor I

In the function of CAPT_GetTouchDat, 

data->count = (uint8_t)((CAPT_TOUCH_COUNT_MASK & tmp32) >> CAPT_TOUCH_COUNT_SHIFT)

should be

data->count = (uint16_t)((CAPT_TOUCH_COUNT_MASK & tmp32) >> CAPT_TOUCH_COUNT_SHIFT)

0 项奖励
回复
1 回复

559 次查看
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello PXU

 

Thank you for letting us know about this bug. I confirmed that the cast needs to be uint16_t since the variable count is 16bits wide.

I will inform this to the corresponding team in order to fix it in further releases.

 

Best regards,

Omar

0 项奖励
回复