@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.
package/output/creator.js CHANGED
@@ -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) {