How to control a servo motor using PWM on Android BBB ?

Dear users.

How to control a servo motor using PWM on Android BBB ?

I can not find a sample for controlling servo motor on Android BBB.

I use a BBB A5B model.