Re: Disabling peripheral modules to use pin as gpio
2. In the PIC32MK General Purpose and Motor Control (GP/MC) Family Data Sheet > TABLE 32-2: PERIPHERAL MODULE DISABLE REGISTER SUMMARY, it seems to suggests the peripheral modules are enabled by default.
3. There may be some code that was generated by MCC but now I am using harmony