@mchp-mcc/scf-pic8-clc-v1 4.1.3 → 4.2.1

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/Changelog.md CHANGED
@@ -1,19 +1,19 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [4.1.3] - 2024-03-28
4
+ ## [4.2.1] - 2024-09-13
5
+
6
+ ### Bug Fixes
7
+ - **M8PD-7564** :- CLCINxPPS options not showing in pin grid view on Q24 devices
5
8
 
6
- ### New Features
7
- - **CC8SCRIP-19437** :- Added Support for Melody View Library
8
9
 
10
+ ## [4.2.0] - 2024-06-19
9
11
 
10
- ## [4.1.2] - 2023-12-21
11
12
 
12
- ### Improvements
13
- - **CC8SCRIP-19015** :- Fixed Missing CLC Output pin issue
13
+ No changes from previous version
14
14
 
15
15
 
16
- ## [4.1.1] - 2023-10-10
16
+ ## [4.1.3] - 2024-03-28
17
+
17
18
 
18
- ### New Features
19
- - **CC8SCRIP-17527** :- Added APFCON Support on Content
19
+ No changes from previous version
package/Readme.md CHANGED
@@ -7,19 +7,19 @@ The Configurable Logic Cell (CLC) module provides programmable logic that operat
7
7
  # Changelog
8
8
  All notable changes to this project will be documented in this file.
9
9
 
10
- ## [4.1.3] - 2024-03-28
10
+ ## [4.2.1] - 2024-09-13
11
+
12
+ ### Bug Fixes
13
+ - **M8PD-7564** :- CLCINxPPS options not showing in pin grid view on Q24 devices
11
14
 
12
- ### New Features
13
- - **CC8SCRIP-19437** :- Added Support for Melody View Library
14
15
 
16
+ ## [4.2.0] - 2024-06-19
15
17
 
16
- ## [4.1.2] - 2023-12-21
17
18
 
18
- ### Improvements
19
- - **CC8SCRIP-19015** :- Fixed Missing CLC Output pin issue
19
+ No changes from previous version
20
20
 
21
21
 
22
- ## [4.1.1] - 2023-10-10
22
+ ## [4.1.3] - 2024-03-28
23
+
23
24
 
24
- ### New Features
25
- - **CC8SCRIP-17527** :- Added APFCON Support on Content
25
+ No changes from previous version
@@ -4377,7 +4377,6 @@ var MyDerivedData = /*#__PURE__*/_createClass(function MyDerivedData(dataModel)
4377
4377
  initializer_system_results: _this.initializer_system_results,
4378
4378
  isrCallback: _this.isrCallback,
4379
4379
  clc_connections_results: _this.clc_connections_results,
4380
- isEnabled: _this.isEnabled,
4381
4380
  getRequestedModule: _this.getRequestedModule,
4382
4381
  getPinsLogic: _generated_module_src_pins_PCPHelper__WEBPACK_IMPORTED_MODULE_11__["getPinsLogic"],
4383
4382
  componentNameValidator: _this.componentNameValidator,
@@ -4385,22 +4384,6 @@ var MyDerivedData = /*#__PURE__*/_createClass(function MyDerivedData(dataModel)
4385
4384
  pins_interface_args: _this.getPinsinterfaceArgs
4386
4385
  });
4387
4386
  });
4388
- _defineProperty(this, "isEnabled", function (compName) {
4389
- var status;
4390
- if (_this.dataModel.getComponentValue("clci") === false) {
4391
- switch (compName) {
4392
- case "lcintnClccon":
4393
- status = false;
4394
- break;
4395
- case "lcintpClccon":
4396
- status = false;
4397
- break;
4398
- default:
4399
- status = undefined;
4400
- }
4401
- return status;
4402
- }
4403
- });
4404
4387
  _defineProperty(this, "componentNameValidator", function () {
4405
4388
  return {
4406
4389
  pattern: _this.cValidator.getRjsfValidation().pattern
@@ -4516,9 +4499,6 @@ var MyDerivedData = /*#__PURE__*/_createClass(function MyDerivedData(dataModel)
4516
4499
  });
4517
4500
  _defineProperty(this, "getMyAlerts", function () {
4518
4501
  var alerts = [];
4519
- var getValue = function getValue(name) {
4520
- return _this.dataModel.getComponentValue(name);
4521
- };
4522
4502
  var inputs = [];
4523
4503
  _Constants__WEBPACK_IMPORTED_MODULE_7__["GATES"].forEach(function (gate) {
4524
4504
  var setting = Object(_SettingNameCalculator__WEBPACK_IMPORTED_MODULE_8__["getGateSourceSetting"])(gate);
@@ -4535,19 +4515,6 @@ var MyDerivedData = /*#__PURE__*/_createClass(function MyDerivedData(dataModel)
4535
4515
  text: "".concat(name, " uses ").concat(input, ". Ensure ").concat(input, " has been configured.")
4536
4516
  });
4537
4517
  });
4538
- if (!getValue("clci") && (getValue("lcintpClccon") === "enabled" || getValue("lcintnClccon") === "enabled")) {
4539
- var msg = "";
4540
- if (getValue("lcintpClccon") === "enabled") {
4541
- msg = "Rising Edge Interrupt";
4542
- }
4543
- if (getValue("lcintnClccon") === "enabled") {
4544
- msg = msg.length > 1 ? "Rising and Falling Edge Interrupts" : "Falling Edge Interrupt";
4545
- }
4546
- alerts.push({
4547
- type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
4548
- text: "CLC Interrupt is disabled, ".concat(msg, " API will not be generated.")
4549
- });
4550
- }
4551
4518
  return alerts;
4552
4519
  });
4553
4520
  _defineProperty(this, "getDataConfigInvertedProcessedArg", function (gate, input) {
@@ -4725,11 +4692,14 @@ __webpack_require__.r(__webpack_exports__);
4725
4692
 
4726
4693
 
4727
4694
  var getGeneratorModel = function getGeneratorModel(model) {
4728
- var _clcInterface$headerF, _intPayload$vectoredI, _intPayload$isHighPri, _intPayload$isHighPri2, _intPayload$ivtBaseAd, _interrupts$CLCI$hand, _interrupts$CLCI$hand2;
4695
+ var _model$getName, _clcInterface$headerF, _intPayload$vectoredI, _intPayload$isHighPri, _intPayload$isHighPri2, _intPayload$ivtBaseAd, _interrupts$CLCI$hand, _interrupts$CLCI$hand2, _registerValues$CLCSE;
4729
4696
  if (!model.getHardware()) return {};
4730
4697
  var interrupts = model.getInterrupts();
4698
+ var moduleName = (_model$getName = model === null || model === void 0 ? void 0 : model.getName()) !== null && _model$getName !== void 0 ? _model$getName : "CLC1";
4731
4699
  var registerValues = model.getRegisterValues();
4732
4700
  if (!registerValues || !interrupts) return {};
4701
+ var clcsel = registerValues.CLCSELECT ? true : false; //check if CLCSELECT reg is avaliable
4702
+
4733
4703
  var initRegisters = Object(_generated_module_src_Utils__WEBPACK_IMPORTED_MODULE_1__["values"])(registerValues).filter(function (reg) {
4734
4704
  return reg.alias !== registerValues.CLCCON.alias;
4735
4705
  });
@@ -4738,11 +4708,10 @@ var getGeneratorModel = function getGeneratorModel(model) {
4738
4708
  var clcInterface = _interfaces_cla_clc_stacked__WEBPACK_IMPORTED_MODULE_0__["Interface"].createFirmwareApi(model.getComponentValue("componentName"), getHeaderFiles(model));
4739
4709
  var intPayload = model.getImportValue("interrupt_standard");
4740
4710
  return {
4741
- compiler: "XC8 v2.20",
4742
- tool: "MPLABX v5.40",
4711
+ instance: parseInt(moduleName[3]),
4743
4712
  customName: model.getComponentValue("componentName"),
4744
- moduleNameLowerCase: model.getName().toLowerCase(),
4745
- moduleNameUpperCase: model.getName().toUpperCase(),
4713
+ moduleNameLowerCase: moduleName.toLowerCase(),
4714
+ moduleNameUpperCase: moduleName.toUpperCase(),
4746
4715
  header: (_clcInterface$headerF = clcInterface.headerFiles) === null || _clcInterface$headerF === void 0 ? void 0 : _clcInterface$headerF[0],
4747
4716
  api: clcInterface.api,
4748
4717
  simpleApi: clcInterface.simpleApi,
@@ -4753,9 +4722,11 @@ var getGeneratorModel = function getGeneratorModel(model) {
4753
4722
  interruptFlagName: interrupts["CLCI"].flag,
4754
4723
  interruptEnableBitName: interrupts["CLCI"].enable,
4755
4724
  IRQname: (_interrupts$CLCI$hand = (_interrupts$CLCI$hand2 = interrupts["CLCI"].handlerName) === null || _interrupts$CLCI$hand2 === void 0 ? void 0 : _interrupts$CLCI$hand2.replace("_", "")) !== null && _interrupts$CLCI$hand !== void 0 ? _interrupts$CLCI$hand : "",
4725
+ clcselDef: clcsel,
4756
4726
  initRegisters: initRegisters,
4757
4727
  CLCDATA: registerValues.CLCDATA,
4758
- CLCCON: registerValues.CLCCON
4728
+ CLCCON: registerValues.CLCCON,
4729
+ CLCSELECT: (_registerValues$CLCSE = registerValues.CLCSELECT) !== null && _registerValues$CLCSE !== void 0 ? _registerValues$CLCSE : ""
4759
4730
  };
4760
4731
  };
4761
4732
  var getHeaderFiles = function getHeaderFiles(model) {
@@ -4886,7 +4857,9 @@ function getRowData(appModel, rowData) {
4886
4857
  }
4887
4858
  });
4888
4859
  } else if (rowData.name === "clcin0") {
4889
- if (inputSelections.indexOf("CLCIN0 (CLCIN0PPS)") !== -1) {
4860
+ if (inputSelections.some(function (input) {
4861
+ return input.includes("CLCIN0PPS");
4862
+ })) {
4890
4863
  retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
4891
4864
  module: moduleName,
4892
4865
  behaviour: getpinBehaviour(getAPFCONPins, getPPSPins, retRowJSONdata.filter.aliasReEx),
@@ -4909,7 +4882,9 @@ function getRowData(appModel, rowData) {
4909
4882
  return undefined; // hide row
4910
4883
  }
4911
4884
  } else if (rowData.name === "clcin1") {
4912
- if (inputSelections.indexOf("CLCIN1 (CLCIN1PPS)") !== -1) {
4885
+ if (inputSelections.some(function (input) {
4886
+ return input.includes("CLCIN1PPS");
4887
+ })) {
4913
4888
  retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
4914
4889
  module: moduleName,
4915
4890
  behaviour: getpinBehaviour(getAPFCONPins, getPPSPins, retRowJSONdata.filter.aliasReEx),
@@ -4932,9 +4907,12 @@ function getRowData(appModel, rowData) {
4932
4907
  return undefined; // hide row
4933
4908
  }
4934
4909
  } else if (rowData.name === "clcin2") {
4935
- if (inputSelections.indexOf("CLCIN2 (CLCIN2PPS)") !== -1) {
4910
+ if (inputSelections.some(function (input) {
4911
+ return input.includes("CLCIN2PPS");
4912
+ })) {
4936
4913
  retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
4937
4914
  module: moduleName,
4915
+ behaviour: getpinBehaviour(getAPFCONPins, getPPSPins, retRowJSONdata.filter.aliasReEx),
4938
4916
  filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
4939
4917
  module: moduleName
4940
4918
  })
@@ -4943,9 +4921,12 @@ function getRowData(appModel, rowData) {
4943
4921
  return undefined; // hide row
4944
4922
  }
4945
4923
  } else if (rowData.name === "clcin3") {
4946
- if (inputSelections.indexOf("CLCIN3 (CLCIN3PPS)") !== -1) {
4924
+ if (inputSelections.some(function (input) {
4925
+ return input.includes("CLCIN3PPS");
4926
+ })) {
4947
4927
  retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
4948
4928
  module: moduleName,
4929
+ behaviour: getpinBehaviour(getAPFCONPins, getPPSPins, retRowJSONdata.filter.aliasReEx),
4949
4930
  filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
4950
4931
  module: moduleName
4951
4932
  })
@@ -4954,9 +4935,12 @@ function getRowData(appModel, rowData) {
4954
4935
  return undefined; // hide row
4955
4936
  }
4956
4937
  } else if (rowData.name === "clcin4") {
4957
- if (inputSelections.indexOf("CLCIN4 (CLCIN4PPS)") !== -1) {
4938
+ if (inputSelections.some(function (input) {
4939
+ return input.includes("CLCIN4PPS");
4940
+ })) {
4958
4941
  retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
4959
4942
  module: moduleName,
4943
+ behaviour: getpinBehaviour(getAPFCONPins, getPPSPins, retRowJSONdata.filter.aliasReEx),
4960
4944
  filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
4961
4945
  module: moduleName
4962
4946
  })
@@ -4965,9 +4949,12 @@ function getRowData(appModel, rowData) {
4965
4949
  return undefined; // hide row
4966
4950
  }
4967
4951
  } else if (rowData.name === "clcin5") {
4968
- if (inputSelections.indexOf("CLCIN5 (CLCIN5PPS)") !== -1) {
4952
+ if (inputSelections.some(function (input) {
4953
+ return input.includes("CLCIN5PPS");
4954
+ })) {
4969
4955
  retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
4970
4956
  module: moduleName,
4957
+ behaviour: getpinBehaviour(getAPFCONPins, getPPSPins, retRowJSONdata.filter.aliasReEx),
4971
4958
  filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
4972
4959
  module: moduleName
4973
4960
  })
@@ -4976,9 +4963,12 @@ function getRowData(appModel, rowData) {
4976
4963
  return undefined; // hide row
4977
4964
  }
4978
4965
  } else if (rowData.name === "clcin6") {
4979
- if (inputSelections.indexOf("CLCIN6 (CLCIN6PPS)") !== -1) {
4966
+ if (inputSelections.some(function (input) {
4967
+ return input.includes("CLCIN6PPS");
4968
+ })) {
4980
4969
  retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
4981
4970
  module: moduleName,
4971
+ behaviour: getpinBehaviour(getAPFCONPins, getPPSPins, retRowJSONdata.filter.aliasReEx),
4982
4972
  filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
4983
4973
  module: moduleName
4984
4974
  })
@@ -4987,9 +4977,12 @@ function getRowData(appModel, rowData) {
4987
4977
  return undefined; // hide row
4988
4978
  }
4989
4979
  } else if (rowData.name === "clcin7") {
4990
- if (inputSelections.indexOf("CLCIN7 (CLCIN7PPS)") !== -1) {
4980
+ if (inputSelections.some(function (input) {
4981
+ return input.includes("CLCIN7PPS");
4982
+ })) {
4991
4983
  retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
4992
4984
  module: moduleName,
4985
+ behaviour: getpinBehaviour(getAPFCONPins, getPPSPins, retRowJSONdata.filter.aliasReEx),
4993
4986
  filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
4994
4987
  module: moduleName
4995
4988
  })
@@ -5359,7 +5352,7 @@ module.exports = JSON.parse("{\"rows\":[{\"name\":\"clcout\",\"module\":\"CLC1\"
5359
5352
 
5360
5353
  __webpack_require__(/*! core-js/es/set/index */"./node_modules/core-js/es/set/index.js");
5361
5354
  __webpack_require__(/*! core-js/es/map/index */"./node_modules/core-js/es/map/index.js");
5362
- module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/ed_Content_scf-pic8-clc-v1_4.1.3/generated_module/src/autoCreator.ts */"./generated_module/src/autoCreator.ts");
5355
+ module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/ed_Content_scf-pic8-clc-v1_4.2.1/generated_module/src/autoCreator.ts */"./generated_module/src/autoCreator.ts");
5363
5356
 
5364
5357
 
5365
5358
  /***/ })