STemWin Touch Input on STM32F429 (STMPE811)
I started to reply but must not have hit 'post.' The confusing code is in the board support package (BSP) for the discovery board and so is the responsibility of ST. I'm away from the computer at the moment so I cannot provide the file name otherwise I could be of more help. The file name is something like stm32f429i_discovery_ts.c IIRC.