It is recommended that you search the MICROCHIP site and download the following documents:
The style used in the initial tutorials is to put code for each peripheral in its own .c file with an appropriate .h file listing function prototypes. The streamlined main.c file lists only the general code while the peripheral .c files contain relevant specific code for that peripheral. If there are non-peripheral functions, their prototypes/definitions are placed in user.c and user.h files.
If you wish to comment on this page, please do so here.