@mchp-mcc/scf-pic8-clc-v1 4.1.0 → 4.1.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 +6 -9
- package/Readme.md +6 -9
- package/output/autoCreator.js +79 -81
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +79 -81
- package/output/autoProcessor.js.map +1 -1
- package/output/creator.js +472 -84
- package/output/creator.js.map +1 -1
- package/output/processor.js +472 -84
- package/output/processor.js.map +1 -1
- package/output/reducer.js +1 -1
- package/output/view.js +1 -1
- package/package.json +3 -2
package/Changelog.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
## [4.1.1] - 2023-10-10
|
|
5
|
+
|
|
6
|
+
### New Features
|
|
7
|
+
- **CC8SCRIP-17527** :- Added APFCON Support on Content
|
|
8
|
+
|
|
9
|
+
|
|
4
10
|
## [4.1.0] - 2023-09-03
|
|
5
11
|
|
|
6
12
|
### New Features
|
|
@@ -19,12 +25,3 @@ All notable changes to this project will be documented in this file.
|
|
|
19
25
|
|
|
20
26
|
### New Features
|
|
21
27
|
- **CC8SCRIP-17337** :- Added support for PIC12/16(L)F150x device family
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
## [4.0.14] - 2022-12-15
|
|
25
|
-
|
|
26
|
-
### Bug Fixes
|
|
27
|
-
- **CC8SCRIP-11417** :- CLC module does not show on the Pin Grid View
|
|
28
|
-
|
|
29
|
-
### Improvements
|
|
30
|
-
- **CC8SCRIP-11127** :- Added a validator for the Custom Name in Easy View
|
package/Readme.md
CHANGED
|
@@ -7,6 +7,12 @@ 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.1] - 2023-10-10
|
|
11
|
+
|
|
12
|
+
### New Features
|
|
13
|
+
- **CC8SCRIP-17527** :- Added APFCON Support on Content
|
|
14
|
+
|
|
15
|
+
|
|
10
16
|
## [4.1.0] - 2023-09-03
|
|
11
17
|
|
|
12
18
|
### New Features
|
|
@@ -25,12 +31,3 @@ All notable changes to this project will be documented in this file.
|
|
|
25
31
|
|
|
26
32
|
### New Features
|
|
27
33
|
- **CC8SCRIP-17337** :- Added support for PIC12/16(L)F150x device family
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## [4.0.14] - 2022-12-15
|
|
31
|
-
|
|
32
|
-
### Bug Fixes
|
|
33
|
-
- **CC8SCRIP-11417** :- CLC module does not show on the Pin Grid View
|
|
34
|
-
|
|
35
|
-
### Improvements
|
|
36
|
-
- **CC8SCRIP-11127** :- Added a validator for the Custom Name in Easy View
|
package/output/autoCreator.js
CHANGED
|
@@ -315,6 +315,7 @@ var QueryAdapterKey;
|
|
|
315
315
|
QueryAdapterKey["ALLPINS"] = "allpins";
|
|
316
316
|
QueryAdapterKey["ALLPINS_FOR_ATTRIBS"] = "allpins_for_attribs";
|
|
317
317
|
QueryAdapterKey["PPS"] = "pps";
|
|
318
|
+
QueryAdapterKey["APFCON"] = "apfcon";
|
|
318
319
|
QueryAdapterKey["PORTMUX"] = "portmux";
|
|
319
320
|
QueryAdapterKey["HASPPS"] = "hasPPS";
|
|
320
321
|
})(QueryAdapterKey = exports.QueryAdapterKey || (exports.QueryAdapterKey = {}));
|
|
@@ -4407,7 +4408,7 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
4407
4408
|
|
|
4408
4409
|
_defineProperty(this, "getPinstandardArgs", function () {
|
|
4409
4410
|
var args = {
|
|
4410
|
-
|
|
4411
|
+
queryAdapters: [_microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_13__["QueryAdapterKey"].PPS, _microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_13__["QueryAdapterKey"].APFCON]
|
|
4411
4412
|
};
|
|
4412
4413
|
return args;
|
|
4413
4414
|
});
|
|
@@ -4922,39 +4923,40 @@ var getCompletePinData = function getCompletePinData(appModel) {
|
|
|
4922
4923
|
}; // overrides pin data for a particular row based on model.
|
|
4923
4924
|
|
|
4924
4925
|
function getRowData(appModel, rowData) {
|
|
4925
|
-
var _appModel$
|
|
4926
|
+
var _appModel$getImportVa, _appModel$getImportVa2, _appModel$getImportVa3, _appModel$getImportVa4, _appModel$getImportVa5, _appModel$getImportVa6, _appModel$getHardware, _appModel$getHardware2, _appModel$getComponen, _appModel$getComponen2, _appModel$getComponen3;
|
|
4926
4927
|
|
|
4927
4928
|
var retRowJSONdata = rowData;
|
|
4929
|
+
var getPPSPins = (_appModel$getImportVa = appModel.getImportValue("pin_standard")) === null || _appModel$getImportVa === void 0 ? void 0 : (_appModel$getImportVa2 = _appModel$getImportVa["pps"]) === null || _appModel$getImportVa2 === void 0 ? void 0 : (_appModel$getImportVa3 = _appModel$getImportVa2["data"]) === null || _appModel$getImportVa3 === void 0 ? void 0 : _appModel$getImportVa3[appModel.getName()];
|
|
4930
|
+
var getAPFCONPins = (_appModel$getImportVa4 = appModel.getImportValue("pin_standard")) === null || _appModel$getImportVa4 === void 0 ? void 0 : (_appModel$getImportVa5 = _appModel$getImportVa4["apfcon"]) === null || _appModel$getImportVa5 === void 0 ? void 0 : (_appModel$getImportVa6 = _appModel$getImportVa5["data"]) === null || _appModel$getImportVa6 === void 0 ? void 0 : _appModel$getImportVa6[appModel.getName()];
|
|
4928
4931
|
var moduleName = (_appModel$getHardware = (_appModel$getHardware2 = appModel.getHardware()) === null || _appModel$getHardware2 === void 0 ? void 0 : _appModel$getHardware2.getName()) !== null && _appModel$getHardware !== void 0 ? _appModel$getHardware : "CLC";
|
|
4929
|
-
var allPinsData = (_appModel$getImportVa = appModel.getImportValue("pin_standard")) === null || _appModel$getImportVa === void 0 ? void 0 : _appModel$getImportVa.allpins;
|
|
4930
|
-
var modulePins = getModulePins(allPinsData, moduleName);
|
|
4931
|
-
var pinName = getPinName(modulePins, retRowJSONdata.filter.aliasReEx);
|
|
4932
|
-
var pinBehaviour = getpinBehaviour(allPinsData, moduleName, pinName);
|
|
4933
|
-
var isPPS = pinBehaviour === "pps";
|
|
4934
|
-
var isAPFCON = pinBehaviour === "apfcon";
|
|
4935
4932
|
var inputSelections = [appModel.getComponentValue("lcd1sClcsel0"), (_appModel$getComponen = appModel.getComponentValue("lcd2sClcsel1")) !== null && _appModel$getComponen !== void 0 ? _appModel$getComponen : appModel.getComponentValue("lcd2sClcsel0"), (_appModel$getComponen2 = appModel.getComponentValue("lcd3sClcsel2")) !== null && _appModel$getComponen2 !== void 0 ? _appModel$getComponen2 : appModel.getComponentValue("lcd3sClcsel1"), (_appModel$getComponen3 = appModel.getComponentValue("lcd4sClcsel3")) !== null && _appModel$getComponen3 !== void 0 ? _appModel$getComponen3 : appModel.getComponentValue("lcd4sClcsel1")];
|
|
4936
|
-
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
4937
|
-
module: moduleName,
|
|
4938
|
-
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
4939
|
-
module: moduleName
|
|
4940
|
-
}),
|
|
4941
|
-
behaviour: isPPS ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS : isAPFCON ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].APFCON : _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK
|
|
4942
|
-
});
|
|
4943
4933
|
|
|
4944
|
-
if (rowData.name === "clcout" &&
|
|
4934
|
+
if (rowData.name === "clcout" && getpinBehaviour(getAPFCONPins, getPPSPins, retRowJSONdata.filter.aliasReEx)) {
|
|
4945
4935
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
4946
|
-
"function": moduleName,
|
|
4947
4936
|
module: moduleName,
|
|
4948
|
-
|
|
4937
|
+
"function": moduleName,
|
|
4938
|
+
behaviour: getpinBehaviour(getAPFCONPins, getPPSPins, retRowJSONdata.filter.aliasReEx),
|
|
4939
|
+
filter: {
|
|
4949
4940
|
module: moduleName,
|
|
4950
4941
|
aliasReEx: "^".concat(moduleName, "$")
|
|
4951
|
-
}
|
|
4942
|
+
}
|
|
4952
4943
|
});
|
|
4953
4944
|
} else if (rowData.name === "clcin0") {
|
|
4954
4945
|
if (inputSelections.indexOf("CLCIN0 (CLCIN0PPS)") !== -1) {
|
|
4955
|
-
retRowJSONdata = _objectSpread({}, retRowJSONdata)
|
|
4946
|
+
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
4947
|
+
module: moduleName,
|
|
4948
|
+
behaviour: getpinBehaviour(getAPFCONPins, getPPSPins, retRowJSONdata.filter.aliasReEx),
|
|
4949
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
4950
|
+
module: moduleName
|
|
4951
|
+
})
|
|
4952
|
+
});
|
|
4956
4953
|
} else if (inputSelections.indexOf("CLCIN0") !== -1) {
|
|
4957
4954
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
4955
|
+
module: moduleName,
|
|
4956
|
+
behaviour: getpinBehaviour(getAPFCONPins, getPPSPins, retRowJSONdata.filter.aliasReEx),
|
|
4957
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
4958
|
+
module: moduleName
|
|
4959
|
+
}),
|
|
4958
4960
|
behaviourMeta: {
|
|
4959
4961
|
lockPinRegEx: "^CLC[1-9]IN0$"
|
|
4960
4962
|
}
|
|
@@ -4964,9 +4966,20 @@ function getRowData(appModel, rowData) {
|
|
|
4964
4966
|
}
|
|
4965
4967
|
} else if (rowData.name === "clcin1") {
|
|
4966
4968
|
if (inputSelections.indexOf("CLCIN1 (CLCIN1PPS)") !== -1) {
|
|
4967
|
-
retRowJSONdata = _objectSpread({}, retRowJSONdata)
|
|
4969
|
+
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
4970
|
+
module: moduleName,
|
|
4971
|
+
behaviour: getpinBehaviour(getAPFCONPins, getPPSPins, retRowJSONdata.filter.aliasReEx),
|
|
4972
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
4973
|
+
module: moduleName
|
|
4974
|
+
})
|
|
4975
|
+
});
|
|
4968
4976
|
} else if (inputSelections.indexOf("CLCIN1") !== -1) {
|
|
4969
4977
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
4978
|
+
module: moduleName,
|
|
4979
|
+
behaviour: getpinBehaviour(getAPFCONPins, getPPSPins, retRowJSONdata.filter.aliasReEx),
|
|
4980
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
4981
|
+
module: moduleName
|
|
4982
|
+
}),
|
|
4970
4983
|
behaviourMeta: {
|
|
4971
4984
|
lockPinRegEx: "^CLC[1-9]IN1$"
|
|
4972
4985
|
}
|
|
@@ -4978,10 +4991,9 @@ function getRowData(appModel, rowData) {
|
|
|
4978
4991
|
if (inputSelections.indexOf("CLCIN2 (CLCIN2PPS)") !== -1) {
|
|
4979
4992
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
4980
4993
|
module: moduleName,
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
}]
|
|
4994
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
4995
|
+
module: moduleName
|
|
4996
|
+
})
|
|
4985
4997
|
});
|
|
4986
4998
|
} else {
|
|
4987
4999
|
return undefined; // hide row
|
|
@@ -4989,10 +5001,10 @@ function getRowData(appModel, rowData) {
|
|
|
4989
5001
|
} else if (rowData.name === "clcin3") {
|
|
4990
5002
|
if (inputSelections.indexOf("CLCIN3 (CLCIN3PPS)") !== -1) {
|
|
4991
5003
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
}
|
|
5004
|
+
module: moduleName,
|
|
5005
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
5006
|
+
module: moduleName
|
|
5007
|
+
})
|
|
4996
5008
|
});
|
|
4997
5009
|
} else {
|
|
4998
5010
|
return undefined; // hide row
|
|
@@ -5000,10 +5012,10 @@ function getRowData(appModel, rowData) {
|
|
|
5000
5012
|
} else if (rowData.name === "clcin4") {
|
|
5001
5013
|
if (inputSelections.indexOf("CLCIN4 (CLCIN4PPS)") !== -1) {
|
|
5002
5014
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
}
|
|
5015
|
+
module: moduleName,
|
|
5016
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
5017
|
+
module: moduleName
|
|
5018
|
+
})
|
|
5007
5019
|
});
|
|
5008
5020
|
} else {
|
|
5009
5021
|
return undefined; // hide row
|
|
@@ -5011,10 +5023,10 @@ function getRowData(appModel, rowData) {
|
|
|
5011
5023
|
} else if (rowData.name === "clcin5") {
|
|
5012
5024
|
if (inputSelections.indexOf("CLCIN5 (CLCIN5PPS)") !== -1) {
|
|
5013
5025
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
}
|
|
5026
|
+
module: moduleName,
|
|
5027
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
5028
|
+
module: moduleName
|
|
5029
|
+
})
|
|
5018
5030
|
});
|
|
5019
5031
|
} else {
|
|
5020
5032
|
return undefined; // hide row
|
|
@@ -5022,10 +5034,10 @@ function getRowData(appModel, rowData) {
|
|
|
5022
5034
|
} else if (rowData.name === "clcin6") {
|
|
5023
5035
|
if (inputSelections.indexOf("CLCIN6 (CLCIN6PPS)") !== -1) {
|
|
5024
5036
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
}
|
|
5037
|
+
module: moduleName,
|
|
5038
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
5039
|
+
module: moduleName
|
|
5040
|
+
})
|
|
5029
5041
|
});
|
|
5030
5042
|
} else {
|
|
5031
5043
|
return undefined; // hide row
|
|
@@ -5033,17 +5045,17 @@ function getRowData(appModel, rowData) {
|
|
|
5033
5045
|
} else if (rowData.name === "clcin7") {
|
|
5034
5046
|
if (inputSelections.indexOf("CLCIN7 (CLCIN7PPS)") !== -1) {
|
|
5035
5047
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
}
|
|
5048
|
+
module: moduleName,
|
|
5049
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
5050
|
+
module: moduleName
|
|
5051
|
+
})
|
|
5040
5052
|
});
|
|
5041
5053
|
} else {
|
|
5042
5054
|
return undefined; // hide row
|
|
5043
5055
|
}
|
|
5044
5056
|
}
|
|
5045
5057
|
|
|
5046
|
-
if (
|
|
5058
|
+
if (getpinBehaviour(getAPFCONPins, getPPSPins, retRowJSONdata.filter.aliasReEx) === "LOCK_UNLOCK") {
|
|
5047
5059
|
var _appModel$getAutoModu, _appModel$getAutoModu2, _appModel$getAutoModu3, _appModel$getAutoModu4;
|
|
5048
5060
|
|
|
5049
5061
|
var rowActions = []; // attach actions if pin to register update is required
|
|
@@ -5088,48 +5100,34 @@ function getRowData(appModel, rowData) {
|
|
|
5088
5100
|
}
|
|
5089
5101
|
}
|
|
5090
5102
|
|
|
5091
|
-
var
|
|
5092
|
-
var
|
|
5093
|
-
|
|
5094
|
-
for (var portPin in allPins) {
|
|
5095
|
-
var _allPins$portPin;
|
|
5103
|
+
var getpinBehaviour = function getpinBehaviour(apfconPins, ppsPins, regEx) {
|
|
5104
|
+
var pinBehaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK;
|
|
5096
5105
|
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
pins.push(modulePin);
|
|
5106
|
+
if (apfconPins) {
|
|
5107
|
+
for (var key in apfconPins) {
|
|
5108
|
+
if (key.match(regEx)) {
|
|
5109
|
+
pinBehaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].APFCON;
|
|
5102
5110
|
}
|
|
5103
5111
|
}
|
|
5104
5112
|
}
|
|
5105
5113
|
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
var
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
}
|
|
5118
|
-
|
|
5119
|
-
var getpinBehaviour = function getpinBehaviour(allPins, moduleName, pinName) {
|
|
5120
|
-
for (var portPin in allPins) {
|
|
5121
|
-
var _allPins$portPin2, _allPins$portPin2$mod;
|
|
5122
|
-
|
|
5123
|
-
var pinData = (_allPins$portPin2 = allPins[portPin]) === null || _allPins$portPin2 === void 0 ? void 0 : (_allPins$portPin2$mod = _allPins$portPin2[moduleName]) === null || _allPins$portPin2$mod === void 0 ? void 0 : _allPins$portPin2$mod[pinName];
|
|
5124
|
-
|
|
5125
|
-
if (pinData === null || pinData === void 0 ? void 0 : pinData["pps"]) {
|
|
5126
|
-
return "pps";
|
|
5127
|
-
} else if (pinData === null || pinData === void 0 ? void 0 : pinData["apfcon"]) {
|
|
5128
|
-
return "apfcon";
|
|
5114
|
+
if (ppsPins) {
|
|
5115
|
+
for (var _key in ppsPins) {
|
|
5116
|
+
if (_key === "pps_out") {
|
|
5117
|
+
for (var key1 in ppsPins[_key]) {
|
|
5118
|
+
if (key1.match(regEx)) {
|
|
5119
|
+
pinBehaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS;
|
|
5120
|
+
}
|
|
5121
|
+
}
|
|
5122
|
+
} else {
|
|
5123
|
+
if (_key.match(regEx)) {
|
|
5124
|
+
pinBehaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS;
|
|
5125
|
+
}
|
|
5126
|
+
}
|
|
5129
5127
|
}
|
|
5130
5128
|
}
|
|
5131
5129
|
|
|
5132
|
-
return
|
|
5130
|
+
return pinBehaviour;
|
|
5133
5131
|
};
|
|
5134
5132
|
|
|
5135
5133
|
/***/ }),
|
|
@@ -5437,7 +5435,7 @@ module.exports = JSON.parse("{\"rows\":[{\"name\":\"clcout\",\"module\":\"CLC1\"
|
|
|
5437
5435
|
|
|
5438
5436
|
__webpack_require__(/*! core-js/es/set/index */"./node_modules/core-js/es/set/index.js");
|
|
5439
5437
|
__webpack_require__(/*! core-js/es/map/index */"./node_modules/core-js/es/map/index.js");
|
|
5440
|
-
module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/ed_Content_scf-pic8-clc-v1_4.1.
|
|
5438
|
+
module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/ed_Content_scf-pic8-clc-v1_4.1.1/generated_module/src/autoCreator.ts */"./generated_module/src/autoCreator.ts");
|
|
5441
5439
|
|
|
5442
5440
|
|
|
5443
5441
|
/***/ })
|