@mchp-mcc/dspic33a-flash 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -100,8 +100,28 @@ void FLASH_Initialize(void)
100
100
 
101
101
  <#if interruptDriven == true>
102
102
  <#if isFlashContextSupported>
103
+ <#if suppressMisraWarning == true>
104
+ /* cppcheck-suppress misra-c2012-8.4
105
+ *
106
+ * (Rule 8.4) REQUIRED: A compatible declaration shall be visible when an object or
107
+ * function with external linkage is defined
108
+ *
109
+ * Reasoning: Interrupt declaration are provided by compiler and are available
110
+ * outside the driver folder
111
+ */
112
+ </#if>
103
113
  void __attribute__ ( ( interrupt, context ) ) ${flashIsrHandlerName}(void)
104
114
  <#else>
115
+ <#if suppressMisraWarning == true>
116
+ /* cppcheck-suppress misra-c2012-8.4
117
+ *
118
+ * (Rule 8.4) REQUIRED: A compatible declaration shall be visible when an object or
119
+ * function with external linkage is defined
120
+ *
121
+ * Reasoning: Interrupt declaration are provided by compiler and are available
122
+ * outside the driver folder
123
+ */
124
+ </#if>
105
125
  void __attribute__ ( ( interrupt ) ) ${flashIsrHandlerName}(void)
106
126
  </#if>
107
127
  {