4.2 Understanding MPLAB Harmony v3 Driver Code

When MPLAB Harmony v3 Drivers or System Services are used, the following additional files and folders are generated as compared to a PLIB only project:

  • driver: Source and header files of all the drivers used in the project are listed inside the driver folder. Usually there will be one .c and two .h files per driver used.
  • configuration.h: This file is similar to the system_config.h file of MPLAB Harmony v2. It is used to define the configuration macros for drivers, system services and middleware libraries.
  • user.h: This is a new file in MPLAB Harmony v3, which is by default empty. It should be used to define application specific macros. In MPLAB Harmony v2, those application specific macros are generally defined in the system_config.h file.
  • app.h: This file is same as that in MPLAB Harmony v2, and it is used to develop the application.
  • app.c: This file is same as that in MPLAB Harmony v2, and it is used to develop the application.