Add new typedef to deal with global variable
Replace all PWM Input Capture Value to the new global struct

I will change all global variable to this type step by step.