Low level PWM input

I’m searching the low level code for PWM input in APM’s code. Can someone tell me where can I find it in the project ?

Thanks for your help !