First you have to generate initialization code using pin configuration tool:
- Go to the configuration tab.
- Ensure you have selected the correct project.
- If you need only LED or Buttons select a appropriate pin function group from dropdown menu.
- Ensure the pin function group is enabled (the flag next to the dropdown menu should be filled).
- If you are adding pins, make sure the pins are set as GPIO, have correct direction and initial value.
- Click on "Update Code" button.
To find macros corresponding to your pins visit board/pin_mux.h
file in the project structure.