I found the GPIO ports have no function when enable the lpit module, then I can not detect the gpio port power level changed and can output power level via gpio output port.
If disable the lpit module, the the gpio ports are work normal.
the code as the follow picture:
Solved! Go to Solution.