@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.
@@ -3872,9 +3872,9 @@ var MyDerivedData = function MyDerivedData(dataModel) {
3872
3872
  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";
3873
3873
 
3874
3874
  if (!_this.getModel().isComponentValue("ipenIntcon")) {
3875
- 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";
3875
+ 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";
3876
3876
  } else {
3877
- 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";
3877
+ 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";
3878
3878
  }
3879
3879
 
3880
3880
  return {
@@ -3995,10 +3995,10 @@ var getGeneratorModel = function getGeneratorModel(model, noPrioIntList) {
3995
3995
  if (!registerValues) return {};
3996
3996
  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;
3997
3997
  highInterrupts = noPrioIntList.filter(function (interrupt) {
3998
- return interrupt.isEnabled;
3998
+ return interrupt.generateISR;
3999
3999
  }).map(function (data) {
4000
4000
  return _objectSpread(_objectSpread({}, data), {}, {
4001
- isPeripheralInterrupt: data.module !== _Constants__WEBPACK_IMPORTED_MODULE_0__["EXTINT_NAME"] && data.module !== "PIN_MANAGER"
4001
+ isPeripheralInterrupt: data.module !== _Constants__WEBPACK_IMPORTED_MODULE_0__["EXTINT_NAME"] && data.module !== "PIN_MANAGER" && data.module !== "TMR0"
4002
4002
  });
4003
4003
  });
4004
4004
  extIntList = (_extIntList = extIntList).concat.apply(_extIntList, _toConsumableArray(noPrioIntList.filter(function (data) {