Hi!
First of all you have to know that the PWM used in the demo-board works via the output compare interface. This is good if you want to drive a servomotor, otherwise you should use the PWM interface of the dsPIC on your own.
The code with the API for the PWM with the demo-board should be in
ERIKA_INSTALLATION_DIR/ee/pkg/board/ee_flex/inc/ee_board.h file, but unfortunately it seems that something is missing.
Anyhow the period should refer to the period of the timer2 bound to the OC interface, but the is commented.
If you want to drive a servomotor you can try to adapt the code I am attaching, I already used and tested, to the demo-board (just choose the right Output Compare - OC - interfaces).
The code as two file to manage the PWM on the OC interface, in order to obtain an abstraction of it, and two file to implement the abstraction of the servomotor (the latter is just a wrapper for the first one, allowing to drive the servomotor in degree).
The init functions should be called before using the start and set functions.
I hope this will help.
Fill free to do any further question.
Regards.