Microchip Technology DV164139 Hoja De Datos
© 2009 Microchip Technology Inc.
DS41356B-page 33
Repeat this step to add the usb_function_cdc.c file from the C:\Microchip
Solutions\Microchip\USB\CDC Device Driver
Solutions\Microchip\USB\CDC Device Driver
directory to the same “USB
Stack” folder.
4.
In the Project window create two new sub-folders under the Header Files folder
called “Common” and “USB Stack” as per step 2 of this lab.
called “Common” and “USB Stack” as per step 2 of this lab.
5.
Right click on the “USB Stack” folder and add the following files from the
C:\Microchip Solutions\Microchip\Include\Usb
C:\Microchip Solutions\Microchip\Include\Usb
directory as was
done in step 3 of this lab:
•
usb.h
•
usb_ch9.h
•
usb_common.h
•
usb_device.h
•
usb_function_cdc.h
•
usb_hal.h
•
usb_hal_pic18.h
6.
Right click on the “Common” folder and add the following files from the
C:\Microchip Solutions\Microchip\Include
C:\Microchip Solutions\Microchip\Include
directory as was done in
step 3 of this lab:
•
Compiler.h
•
GenericTypeDefs.h
7.
Ensure that the Project Build Options are configured as was done in Lab 1 steps
11 through 15.
11 through 15.
8.
Compile the project. There should be no errors.
The Project window should now resemble Figure 2-10.