2 Specific MISRA C:2012 Deviations

Global INTCONREG

Advisory: misra-c2012-15.1  

Justification: To adhere to misra-c2012-15.5, a goto statement is used instead of having an additional return statement when detecting invalid input parameters. This is done because the implementation of this function requires the usage of goto statements regardless. This is because the diagnostic function needs to return as soon as an error is detected. Finally, as misra-c2012-15.2 and misra-c2012-15.3 (regarding the usage of goto) is adhered to, the deviation is deemed safe.