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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

75 Views
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 Kudos
1 Reply

60 Views
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 Kudos