Microstick Plus USB code examples for MPLAB X IDEThe Microchip Libraries for Applications USB software library’s code examples are usable on Microstick Plus USB peripheral panel and the Microstick II development tool together. Before testing the USB software library code examples, some minor changes should be made in the project settings:
After changing project settings, copy this two header files to the project folder:
Let the compiler know about new hardware profile file, place these lines at the beginning of general HarwareProfile.h file located in project directory:
// HardwareProfile.h #ifndef _HARDWARE_PROFILE_H_ #define _HARDWARE_PROFILE_H_ #define DEMO_BOARD MICROSTICK_PLUS_USB #if DEMO_BOARD==MICROSTICK_PLUS_USB #include "HardwareProfile - Microstick Plus USB.h" #endif The modified HardwareProfile.h files are available through the links below:
The settings of the configurations bits can be found at the beginning of the main program.
To load the new hardware specified configuration file, include the Configuration Bits – Microstick Plus USB.h header file in conditional compilation mode at the beginning of the Configuration part of the main program.
/** CONFIGURATION **************************************************/ #if defined(MICROSTICK_PLUS_USB) #include "Configuration Bits - Microstick Plus USB.h" #elif defined(...) // Configuration bits for.... The Device and Host main programs can be downloaded through the links below:
|
Microstick Plus USB >