Microchip has something like 6 versions of some peripherals.
The header files support a system of #ifdefs to ensure that it uses the right function prototype from the .h files for your chip.
When you look at the library documentation it shows several version of the function call, they differ by the number and type of input parameters depending on which version of the peripheral your chip has. The problem is they are not identified by chip number.
I dig through the header files to find which one to use. Has anyone found a better way ?
The header files support a system of #ifdefs to ensure that it uses the right function prototype from the .h files for your chip.
When you look at the library documentation it shows several version of the function call, they differ by the number and type of input parameters depending on which version of the peripheral your chip has. The problem is they are not identified by chip number.
I dig through the header files to find which one to use. Has anyone found a better way ?
Last edited: