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

418件の閲覧回数
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 返信

403件の閲覧回数
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 件の賞賛