Take a look at the GPIO LED example on the page GPIO LED example
When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu, see Using SDK with CCS Projects.
When using makefiles to build, note the required combination and build using make command, see Using SDK with Makefiles.