How to create a 7000hz signal from PWM ?

Hi expert,

Wants understand how to generate a signal of 7000hz by  the pwmout mbed's library,

I read a lot of explainations but i can't find a simple sample code with a good explaination.

Thanks