The CVD framework will automatically choose the correct header files for your chosen device. You only need to add the mTouchCVD.h and mTouchCVD_Config.h files to your project and it will handle the rest. However, some may prefer to keep a local copy of all files being used by the framework for a specific application.
Due to the way the framework is designed, the compiler will check the local project's includes/ folder for the desired file before accessing the framework's library files. So if you wish to keep local versions of the files so you may make edits without affecting other projects, simply copy them to your local includes directory.
Each framework-supported PIC microcontroller has an associated HardwareProfile header file to define the relationship between the AN channel and its port/pin assignment, how to initialize the communications module, and which communications methods are available. This file will also perform some error checking on the current configuration to determine if your microcontroller will be able to correctly implement the requested framework features.
Copy the hardware profile that is associated with your microcontroller's family.
Hardware Profile Options:
The CVD acquisition function is implemented using a combination of C and assembly. To support multiple cores with different assembly instruction sets, separate macro definitions are required. These macros perform the CVD scanning routine and initial signal processing on the results. Due to noise concerns, we do not recommend editting these macros.
Copy the macro library that is associated with your microcontroller's instruction set.
Macro Library Options:
This file is used in all cases to prepare the framework for compiling. If you want to make edits to it, you should copy this file as well.