@mchp-mcc/clock-16bit-driver 1.2.0 → 1.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 +7 -3
- package/Readme.md +7 -3
- package/output/autoCreator.js +49 -12
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +49 -12
- package/output/autoProcessor.js.map +1 -1
- package/output/creator.js +49 -12
- package/output/creator.js.map +1 -1
- package/output/index.html +1 -1
- package/output/main.js +1 -1
- package/output/processor.js +49 -12
- package/output/processor.js.map +1 -1
- package/output/reducer.js +49 -12
- package/output/reducer.js.map +1 -1
- package/package.json +2 -2
- package/src/DerivedData.ts +62 -14
package/output/creator.js
CHANGED
@@ -11758,24 +11758,31 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
11758
11758
|
};
|
11759
11759
|
});
|
11760
11760
|
|
11761
|
-
_defineProperty(this, "
|
11761
|
+
_defineProperty(this, "getFamilyName", function () {
|
11762
11762
|
var _this$dataModel, _this$dataModel$getIm, _this$dataModel$getIm2;
|
11763
11763
|
|
11764
|
-
var
|
11764
|
+
var deviceFamilyName = "";
|
11765
11765
|
var deviceMetaData = (_this$dataModel = _this.dataModel) === null || _this$dataModel === void 0 ? void 0 : (_this$dataModel$getIm = _this$dataModel.getImports()) === null || _this$dataModel$getIm === void 0 ? void 0 : (_this$dataModel$getIm2 = _this$dataModel$getIm.device_meta) === null || _this$dataModel$getIm2 === void 0 ? void 0 : _this$dataModel$getIm2.payload;
|
11766
11766
|
|
11767
11767
|
if (deviceMetaData) {
|
11768
|
-
|
11768
|
+
deviceFamilyName = deviceMetaData === null || deviceMetaData === void 0 ? void 0 : deviceMetaData.familyName;
|
11769
11769
|
}
|
11770
11770
|
|
11771
|
-
return
|
11771
|
+
return deviceFamilyName;
|
11772
11772
|
});
|
11773
11773
|
|
11774
11774
|
_defineProperty(this, "isSecondaryDevice", function () {
|
11775
|
-
var
|
11775
|
+
var _this$getModel$getImp, _this$getModel, _this$getModel$getImp2, _this$getModel$getImp3, _this$getModel$getImp4;
|
11776
11776
|
|
11777
|
+
var deviceFamilyName = _this.getFamilyName();
|
11777
11778
|
|
11778
|
-
|
11779
|
+
var hasSecondaryCoreFlashSupport = (_this$getModel$getImp = (_this$getModel = _this.getModel()) === null || _this$getModel === void 0 ? void 0 : (_this$getModel$getImp2 = _this$getModel.getImports()) === null || _this$getModel$getImp2 === void 0 ? void 0 : (_this$getModel$getImp3 = _this$getModel$getImp2.device_meta) === null || _this$getModel$getImp3 === void 0 ? void 0 : (_this$getModel$getImp4 = _this$getModel$getImp3.payload) === null || _this$getModel$getImp4 === void 0 ? void 0 : _this$getModel$getImp4.hasSecondaryCoreFlashSupport) !== null && _this$getModel$getImp !== void 0 ? _this$getModel$getImp : false;
|
11780
|
+
/*
|
11781
|
+
Device name ends with "S" followed by a digit.
|
11782
|
+
The second part of the condition is for devices like Centaurus which have their inidividual flash.
|
11783
|
+
*/
|
11784
|
+
|
11785
|
+
if (deviceFamilyName.match(/S\d$/) && !hasSecondaryCoreFlashSupport) {
|
11779
11786
|
return true;
|
11780
11787
|
}
|
11781
11788
|
|
@@ -11956,6 +11963,13 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
11956
11963
|
uiBehavior = _defineProperty({}, "ui:help", "CAN FD clock source frequency should be less than or equal to 640 MHz");
|
11957
11964
|
break;
|
11958
11965
|
|
11966
|
+
case COMPONENT_MAIN_CLOCK_SOURCE:
|
11967
|
+
if (_this.shouldShowSecDeviceNotif()) {
|
11968
|
+
uiBehavior = _defineProperty({}, "ui:help", "Ensure to select ".concat(_this.dataModel.getComponentValue(COMPONENT_MAIN_CLOCK_SOURCE), " as part of Main Device also"));
|
11969
|
+
}
|
11970
|
+
|
11971
|
+
break;
|
11972
|
+
|
11959
11973
|
default:
|
11960
11974
|
break;
|
11961
11975
|
}
|
@@ -12170,9 +12184,32 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
12170
12184
|
}
|
12171
12185
|
}
|
12172
12186
|
|
12187
|
+
if (_this.shouldShowSecDeviceNotif()) {
|
12188
|
+
var _this$dataModel10, _this$dataModel11;
|
12189
|
+
|
12190
|
+
alerts.push({
|
12191
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Hint,
|
12192
|
+
text: "Ensure to select ".concat((_this$dataModel10 = _this.dataModel) === null || _this$dataModel10 === void 0 ? void 0 : _this$dataModel10.getComponentValue(COMPONENT_MAIN_CLOCK_SOURCE), " as clock source for the Main Device with frequency ").concat((_this$dataModel11 = _this.dataModel) === null || _this$dataModel11 === void 0 ? void 0 : _this$dataModel11.getComponentValue(COMPONENT_MAIN_CLOCK_INPUT_FREQUENCY), "Hz")
|
12193
|
+
});
|
12194
|
+
}
|
12195
|
+
|
12173
12196
|
return alerts;
|
12174
12197
|
});
|
12175
12198
|
|
12199
|
+
_defineProperty(this, "shouldShowSecDeviceNotif", function () {
|
12200
|
+
var deviceFamilyName = _this.getFamilyName();
|
12201
|
+
|
12202
|
+
if (deviceFamilyName.match(/S\d$/)) {
|
12203
|
+
var _this$dataModel12, _this$dataModel13, _this$dataModel14, _this$dataModel15;
|
12204
|
+
|
12205
|
+
if (((_this$dataModel12 = _this.dataModel) === null || _this$dataModel12 === void 0 ? void 0 : _this$dataModel12.getComponentValue(COMPONENT_MAIN_CLOCK_SOURCE)) === "Primary Oscillator" || ((_this$dataModel13 = _this.dataModel) === null || _this$dataModel13 === void 0 ? void 0 : _this$dataModel13.getComponentValue(COMPONENT_MAIN_CLOCK_SOURCE)) === "Primary Oscillator with PLL" || ((_this$dataModel14 = _this.dataModel) === null || _this$dataModel14 === void 0 ? void 0 : _this$dataModel14.getComponentValue(COMPONENT_MAIN_CLOCK_SOURCE)) === "External Oscillator" || ((_this$dataModel15 = _this.dataModel) === null || _this$dataModel15 === void 0 ? void 0 : _this$dataModel15.getComponentValue(COMPONENT_MAIN_CLOCK_SOURCE)) === "External Oscillator with PLL") {
|
12206
|
+
return true;
|
12207
|
+
}
|
12208
|
+
}
|
12209
|
+
|
12210
|
+
return false;
|
12211
|
+
});
|
12212
|
+
|
12176
12213
|
_defineProperty(this, "calculatedFunction", function () {
|
12177
12214
|
return;
|
12178
12215
|
});
|
@@ -12764,9 +12801,9 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
12764
12801
|
});
|
12765
12802
|
|
12766
12803
|
_defineProperty(this, "canfdClockArg", function () {
|
12767
|
-
var _this$dataModel$getSt, _this$
|
12804
|
+
var _this$dataModel$getSt, _this$dataModel16, _this$dataModel16$get, _this$dataModel16$get2, _this$dataModel16$get3;
|
12768
12805
|
|
12769
|
-
var canClock = (_this$dataModel$getSt = (_this$
|
12806
|
+
var canClock = (_this$dataModel$getSt = (_this$dataModel16 = _this.dataModel) === null || _this$dataModel16 === void 0 ? void 0 : (_this$dataModel16$get = _this$dataModel16.getState()) === null || _this$dataModel16$get === void 0 ? void 0 : (_this$dataModel16$get2 = _this$dataModel16$get.main) === null || _this$dataModel16$get2 === void 0 ? void 0 : (_this$dataModel16$get3 = _this$dataModel16$get2.canfdClock) === null || _this$dataModel16$get3 === void 0 ? void 0 : _this$dataModel16$get3.canfdClockSource) !== null && _this$dataModel$getSt !== void 0 ? _this$dataModel$getSt : "FVCO/4";
|
12770
12807
|
return {
|
12771
12808
|
canfdClockSource: canClock,
|
12772
12809
|
requestedCanfdClockOutputFrequency_Hz: _this.getRequestedCanfdClockFreq()
|
@@ -12778,10 +12815,10 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
12778
12815
|
});
|
12779
12816
|
|
12780
12817
|
_defineProperty(this, "getCanfdClockSrcFreq", function () {
|
12781
|
-
var _this$
|
12818
|
+
var _this$dataModel17, _this$dataModel17$get, _this$dataModel$getCo, _this$dataModel18;
|
12782
12819
|
|
12783
|
-
var interfaceData = (_this$
|
12784
|
-
var canClkSrc = (_this$dataModel$getCo = (_this$
|
12820
|
+
var interfaceData = (_this$dataModel17 = _this.dataModel) === null || _this$dataModel17 === void 0 ? void 0 : (_this$dataModel17$get = _this$dataModel17.getImportValue("clock_16bit_config_interface")) === null || _this$dataModel17$get === void 0 ? void 0 : _this$dataModel17$get.componentFrequenciesPayload;
|
12821
|
+
var canClkSrc = (_this$dataModel$getCo = (_this$dataModel18 = _this.dataModel) === null || _this$dataModel18 === void 0 ? void 0 : _this$dataModel18.getComponentValue("canfdClockSource")) !== null && _this$dataModel$getCo !== void 0 ? _this$dataModel$getCo : "FVCO/4";
|
12785
12822
|
var canClkFreq = Object(_Util__WEBPACK_IMPORTED_MODULE_3__["getCanfdClockFrequency"])(canClkSrc, interfaceData);
|
12786
12823
|
return Object(_Util__WEBPACK_IMPORTED_MODULE_3__["getCanClkDivFreq"])(canClkSrc, canClkFreq);
|
12787
12824
|
});
|
@@ -13148,7 +13185,7 @@ module.exports = JSON.parse("{\"moduleName\":\"Clock\",\"deviceType\":\"PIC\",\"
|
|
13148
13185
|
|
13149
13186
|
__webpack_require__(/*! core-js/es/set/index */"./node_modules/core-js/es/set/index.js");
|
13150
13187
|
__webpack_require__(/*! core-js/es/map/index */"./node_modules/core-js/es/map/index.js");
|
13151
|
-
module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/Content_clock-16bit-driver_1.2.
|
13188
|
+
module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/Content_clock-16bit-driver_1.2.1/generated_module/src/creator.ts */"./generated_module/src/creator.ts");
|
13152
13189
|
|
13153
13190
|
|
13154
13191
|
/***/ })
|