Step 6: Include application specific source code and files
1
Copy the following application source files into the folder containing the project's source files:
app_usb_audio_task.c
app_usb_audio_task.h
app_display_task.c
app_display_task.h
Copy them from this folder:
apps/training/middleware/usb_speaker/usb_speaker_lab/dev_files
to this one:
apps/training/middleware/dev/usb_speaker/usb_speaker_lab/firmware/src

2
Add app_usb_audio_task.c and app_display_task.c to the Source Files/app folder (in the MPLAB X IDE "Projects" pane) by right clicking and selecting Add Existing Item….


3
Add app_usb_audio_task.h and app_display_task.h to the Header Files/app folder by right clicking and selecting Add Existing Item…


The files under the project should look like this:

4
Open the file app.c (in the MPLAB X IDE "Projects" pane under the Source Files/app folder) to add the initialization routines APP_DISPLAY_Initialize and APP_USB_AUDIO_Initialize in APP_Initialize.

5
Add the audio and display task functions APP_USB_AUDIO_Tasks and APP_DISPLAY_Tasks in APP_Tasks.

6
Save all the files before closing.
7

