@mchp-mcc/scf-pic8-interrupt-v3 1.0.2 → 1.0.4

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.
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * @brief This file contains the API implementation for the Interrupt Manager driver.
9
9
  *
10
- * @version Interrupt Manager Driver Version 2.0.5
10
+ * @version Interrupt Manager Driver Version 2.0.6
11
11
  */
12
12
 
13
13
  ${disclaimer}
@@ -64,7 +64,7 @@ void __interrupt() INTERRUPT_InterruptManager (void)
64
64
  </#if>
65
65
  <#if (!interrupt.isPeripheralInterrupt || !pieAvailable)>
66
66
  <#assign isIfCondUsedBefore = true>
67
- ${if_cmd}(${interrupt.enable} == 1 && ${interrupt.flag} == 1)
67
+ ${if_cmd}(${interrupt.enable} == 1U && ${interrupt.flag} == 1U)
68
68
  {
69
69
  <#if interrupt.generateISR>
70
70
  ${interrupt.isrCallback.name}();
@@ -82,7 +82,7 @@ void __interrupt() INTERRUPT_InterruptManager (void)
82
82
  <#else>
83
83
  <#assign if_cmd = "if">
84
84
  </#if>
85
- ${if_cmd}(${INTCON.settings.PEIE.bitName} == 1)
85
+ ${if_cmd}(${INTCON.settings.PEIE.bitName} == 1U)
86
86
  {
87
87
  <#assign isIfCondUsedBefore = false>
88
88
  <#list highInterrupts as interrupt>
@@ -93,7 +93,7 @@ void __interrupt() INTERRUPT_InterruptManager (void)
93
93
  </#if>
94
94
  <#if (interrupt.isPeripheralInterrupt && pieAvailable)>
95
95
  <#assign isIfCondUsedBefore = true>
96
- ${if_cmd}(${interrupt.enable} == 1 && ${interrupt.flag} == 1)
96
+ ${if_cmd}(${interrupt.enable} == 1U && ${interrupt.flag} == 1U)
97
97
  {
98
98
  <#if interrupt.generateISR>
99
99
  ${interrupt.isrCallback.name}();
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * @brief This file contains API prototypes and other data types for the Interrupt Manager driver.
9
9
  *
10
- * @version Interrupt Manager Driver Version 2.0.5
10
+ * @version Interrupt Manager Driver Version 2.0.6
11
11
  */
12
12
 
13
13
  ${disclaimer}
@@ -22,7 +22,7 @@ ${disclaimer}
22
22
  * @param None.
23
23
  * @return None.
24
24
  */
25
- #define INTERRUPT_GlobalInterruptEnable() (${INTCON.settings.GIE.bitName} = 1)
25
+ #define INTERRUPT_GlobalInterruptEnable() (${INTCON.settings.GIE.bitName} = 1U)
26
26
 
27
27
  /**
28
28
  * @ingroup interrupt
@@ -30,7 +30,7 @@ ${disclaimer}
30
30
  * @param None.
31
31
  * @return None.
32
32
  */
33
- #define INTERRUPT_GlobalInterruptDisable() (${INTCON.settings.GIE.bitName} = 0)
33
+ #define INTERRUPT_GlobalInterruptDisable() (${INTCON.settings.GIE.bitName} = 0U)
34
34
 
35
35
  /**
36
36
  * @ingroup interrupt
@@ -48,7 +48,7 @@ ${disclaimer}
48
48
  * @param None.
49
49
  * @return None.
50
50
  */
51
- #define INTERRUPT_PeripheralInterruptEnable() (${INTCON.settings.PEIE.bitName} = 1)
51
+ #define INTERRUPT_PeripheralInterruptEnable() (${INTCON.settings.PEIE.bitName} = 1U)
52
52
 
53
53
  /**
54
54
  * @ingroup interrupt
@@ -56,7 +56,7 @@ ${disclaimer}
56
56
  * @param None.
57
57
  * @return None.
58
58
  */
59
- #define INTERRUPT_PeripheralInterruptDisable() (${INTCON.settings.PEIE.bitName} = 0)
59
+ #define INTERRUPT_PeripheralInterruptDisable() (${INTCON.settings.PEIE.bitName} = 0U)
60
60
  </#if>
61
61
 
62
62
  /**
@@ -76,7 +76,7 @@ void INTERRUPT_Initialize (void);
76
76
  * @param None.
77
77
  * @return None.
78
78
  */
79
- #define ${intPin.customName}_InterruptFlagClear() (${intPin.flagName} = 0)
79
+ #define ${intPin.customName}_InterruptFlagClear() (${intPin.flagName} = 0U)
80
80
 
81
81
  /**
82
82
  * @ingroup interrupt
@@ -84,7 +84,7 @@ void INTERRUPT_Initialize (void);
84
84
  * @param None.
85
85
  * @return None.
86
86
  */
87
- #define ${intPin.customName}_InterruptDisable() (${intPin.enableBitName} = 0)
87
+ #define ${intPin.customName}_InterruptDisable() (${intPin.enableBitName} = 0U)
88
88
 
89
89
  /**
90
90
  * @ingroup interrupt
@@ -92,7 +92,7 @@ void INTERRUPT_Initialize (void);
92
92
  * @param None.
93
93
  * @return None.
94
94
  */
95
- #define ${intPin.customName}_InterruptEnable() (${intPin.enableBitName} = 1)
95
+ #define ${intPin.customName}_InterruptEnable() (${intPin.enableBitName} = 1U)
96
96
 
97
97
  <#if intPin.edge?? && intPin.SFREdgeDetectFromPin??>
98
98
  /**
@@ -101,7 +101,7 @@ void INTERRUPT_Initialize (void);
101
101
  * @param None.
102
102
  * @return None.
103
103
  */
104
- #define ${intPin.customName}_risingEdgeSet() (${intPin.SFREdgeDetectFromPin} = 1)
104
+ #define ${intPin.customName}_risingEdgeSet() (${intPin.SFREdgeDetectFromPin} = 1U)
105
105
  </#if>
106
106
 
107
107
  <#if intPin.edge?? && intPin.SFREdgeDetectFromPin??>
@@ -111,7 +111,7 @@ void INTERRUPT_Initialize (void);
111
111
  * @param None.
112
112
  * @return None.
113
113
  */
114
- #define ${intPin.customName}_fallingEdgeSet() (${intPin.SFREdgeDetectFromPin} = 0)
114
+ #define ${intPin.customName}_fallingEdgeSet() (${intPin.SFREdgeDetectFromPin} = 0U)
115
115
  </#if>
116
116
  <#-- /#if -->
117
117
  </#list>
@@ -8234,9 +8234,9 @@ var MyDerivedData = function MyDerivedData(dataModel) {
8234
8234
  var initSectionMessage = "// If using interrupts in PIC18 High/Low Priority Mode you need to enable the Global High and Low Interrupts \n" + " // If using interrupts in PIC Mid-Range Compatibility Mode you need to enable the Global and Peripheral Interrupts \n" + " // Use the following macros to: \n\n";
8235
8235
 
8236
8236
  if (!_this.getModel().isComponentValue("ipenIntcon")) {
8237
- initSectionMessage += " // Enable the Global Interrupts \n" + " //INTERRUPT_GlobalInterruptEnable(); \n\n" + " // Disable the Global Interrupts \n" + " //INTERRUPT_GlobalInterruptDisable(); \n\n" + " // Enable the Peripheral Interrupts \n" + " //INTERRUPT_PeripheralInterruptEnable(); \n\n" + " // Disable the Peripheral Interrupts \n" + " //INTERRUPT_PeripheralInterruptDisable(); \n";
8237
+ initSectionMessage += " // Enable the Peripheral Interrupts \n" + " //INTERRUPT_PeripheralInterruptEnable(); \n" + " // Disable the Peripheral Interrupts \n" + " //INTERRUPT_PeripheralInterruptDisable(); \n\n" + " // Enable the Global Interrupts \n" + " //INTERRUPT_GlobalInterruptEnable(); \n" + " // Disable the Global Interrupts \n" + " //INTERRUPT_GlobalInterruptDisable(); \n\n";
8238
8238
  } else {
8239
- initSectionMessage += " // Enable the Global High Interrupts \n" + " //INTERRUPT_GlobalInterruptHighEnable(); \n\n" + " // Disable the Global High Interrupts \n" + " //INTERRUPT_GlobalInterruptHighDisable(); \n\n" + " // Enable the Global Low Interrupts \n" + " //INTERRUPT_GlobalInterruptLowEnable(); \n\n" + " // Disable the Global Low Interrupts \n" + " //INTERRUPT_GlobalInterruptLowDisable(); \n\n" + " // Enable the Peripheral Interrupts \n" + " //INTERRUPT_PeripheralInterruptEnable(); \n\n" + " // Disable the Peripheral Interrupts \n" + " //INTERRUPT_PeripheralInterruptDisable(); \n";
8239
+ initSectionMessage += " // Enable the Peripheral Interrupts \n" + " //INTERRUPT_PeripheralInterruptEnable(); \n" + " // Disable the Peripheral Interrupts \n" + " //INTERRUPT_PeripheralInterruptDisable(); \n" + " // Enable the Global High Interrupts \n\n" + " //INTERRUPT_GlobalInterruptHighEnable(); \n" + " // Disable the Global High Interrupts \n" + " //INTERRUPT_GlobalInterruptHighDisable(); \n\n" + " // Enable the Global Low Interrupts \n" + " //INTERRUPT_GlobalInterruptLowEnable(); \n" + " // Disable the Global Low Interrupts \n" + " //INTERRUPT_GlobalInterruptLowDisable(); \n\n";
8240
8240
  }
8241
8241
 
8242
8242
  return {
@@ -8357,10 +8357,10 @@ var getGeneratorModel = function getGeneratorModel(model, noPrioIntList) {
8357
8357
  if (!registerValues) return {};
8358
8358
  var pieAvailable = (registerValues === null || registerValues === void 0 ? void 0 : (_registerValues$INTCO = registerValues["INTCON"]) === null || _registerValues$INTCO === void 0 ? void 0 : (_registerValues$INTCO2 = _registerValues$INTCO.settings) === null || _registerValues$INTCO2 === void 0 ? void 0 : _registerValues$INTCO2.PEIE) != undefined;
8359
8359
  highInterrupts = noPrioIntList.filter(function (interrupt) {
8360
- return interrupt.isEnabled;
8360
+ return interrupt.generateISR;
8361
8361
  }).map(function (data) {
8362
8362
  return _objectSpread(_objectSpread({}, data), {}, {
8363
- isPeripheralInterrupt: data.module !== _Constants__WEBPACK_IMPORTED_MODULE_0__["EXTINT_NAME"] && data.module !== "PIN_MANAGER"
8363
+ isPeripheralInterrupt: data.module !== _Constants__WEBPACK_IMPORTED_MODULE_0__["EXTINT_NAME"] && data.module !== "PIN_MANAGER" && data.module !== "TMR0"
8364
8364
  });
8365
8365
  });
8366
8366
  extIntList = (_extIntList = extIntList).concat.apply(_extIntList, _toConsumableArray(noPrioIntList.filter(function (data) {