@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/autoProcessor.js
CHANGED
@@ -6461,24 +6461,31 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
6461
6461
|
};
|
6462
6462
|
});
|
6463
6463
|
|
6464
|
-
_defineProperty(this, "
|
6464
|
+
_defineProperty(this, "getFamilyName", function () {
|
6465
6465
|
var _this$dataModel, _this$dataModel$getIm, _this$dataModel$getIm2;
|
6466
6466
|
|
6467
|
-
var
|
6467
|
+
var deviceFamilyName = "";
|
6468
6468
|
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;
|
6469
6469
|
|
6470
6470
|
if (deviceMetaData) {
|
6471
|
-
|
6471
|
+
deviceFamilyName = deviceMetaData === null || deviceMetaData === void 0 ? void 0 : deviceMetaData.familyName;
|
6472
6472
|
}
|
6473
6473
|
|
6474
|
-
return
|
6474
|
+
return deviceFamilyName;
|
6475
6475
|
});
|
6476
6476
|
|
6477
6477
|
_defineProperty(this, "isSecondaryDevice", function () {
|
6478
|
-
var
|
6478
|
+
var _this$getModel$getImp, _this$getModel, _this$getModel$getImp2, _this$getModel$getImp3, _this$getModel$getImp4;
|
6479
6479
|
|
6480
|
+
var deviceFamilyName = _this.getFamilyName();
|
6480
6481
|
|
6481
|
-
|
6482
|
+
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;
|
6483
|
+
/*
|
6484
|
+
Device name ends with "S" followed by a digit.
|
6485
|
+
The second part of the condition is for devices like Centaurus which have their inidividual flash.
|
6486
|
+
*/
|
6487
|
+
|
6488
|
+
if (deviceFamilyName.match(/S\d$/) && !hasSecondaryCoreFlashSupport) {
|
6482
6489
|
return true;
|
6483
6490
|
}
|
6484
6491
|
|
@@ -6659,6 +6666,13 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
6659
6666
|
uiBehavior = _defineProperty({}, "ui:help", "CAN FD clock source frequency should be less than or equal to 640 MHz");
|
6660
6667
|
break;
|
6661
6668
|
|
6669
|
+
case COMPONENT_MAIN_CLOCK_SOURCE:
|
6670
|
+
if (_this.shouldShowSecDeviceNotif()) {
|
6671
|
+
uiBehavior = _defineProperty({}, "ui:help", "Ensure to select ".concat(_this.dataModel.getComponentValue(COMPONENT_MAIN_CLOCK_SOURCE), " as part of Main Device also"));
|
6672
|
+
}
|
6673
|
+
|
6674
|
+
break;
|
6675
|
+
|
6662
6676
|
default:
|
6663
6677
|
break;
|
6664
6678
|
}
|
@@ -6873,9 +6887,32 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
6873
6887
|
}
|
6874
6888
|
}
|
6875
6889
|
|
6890
|
+
if (_this.shouldShowSecDeviceNotif()) {
|
6891
|
+
var _this$dataModel10, _this$dataModel11;
|
6892
|
+
|
6893
|
+
alerts.push({
|
6894
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Hint,
|
6895
|
+
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")
|
6896
|
+
});
|
6897
|
+
}
|
6898
|
+
|
6876
6899
|
return alerts;
|
6877
6900
|
});
|
6878
6901
|
|
6902
|
+
_defineProperty(this, "shouldShowSecDeviceNotif", function () {
|
6903
|
+
var deviceFamilyName = _this.getFamilyName();
|
6904
|
+
|
6905
|
+
if (deviceFamilyName.match(/S\d$/)) {
|
6906
|
+
var _this$dataModel12, _this$dataModel13, _this$dataModel14, _this$dataModel15;
|
6907
|
+
|
6908
|
+
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") {
|
6909
|
+
return true;
|
6910
|
+
}
|
6911
|
+
}
|
6912
|
+
|
6913
|
+
return false;
|
6914
|
+
});
|
6915
|
+
|
6879
6916
|
_defineProperty(this, "calculatedFunction", function () {
|
6880
6917
|
return;
|
6881
6918
|
});
|
@@ -7467,9 +7504,9 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
7467
7504
|
});
|
7468
7505
|
|
7469
7506
|
_defineProperty(this, "canfdClockArg", function () {
|
7470
|
-
var _this$dataModel$getSt, _this$
|
7507
|
+
var _this$dataModel$getSt, _this$dataModel16, _this$dataModel16$get, _this$dataModel16$get2, _this$dataModel16$get3;
|
7471
7508
|
|
7472
|
-
var canClock = (_this$dataModel$getSt = (_this$
|
7509
|
+
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";
|
7473
7510
|
return {
|
7474
7511
|
canfdClockSource: canClock,
|
7475
7512
|
requestedCanfdClockOutputFrequency_Hz: _this.getRequestedCanfdClockFreq()
|
@@ -7481,10 +7518,10 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
7481
7518
|
});
|
7482
7519
|
|
7483
7520
|
_defineProperty(this, "getCanfdClockSrcFreq", function () {
|
7484
|
-
var _this$
|
7521
|
+
var _this$dataModel17, _this$dataModel17$get, _this$dataModel$getCo, _this$dataModel18;
|
7485
7522
|
|
7486
|
-
var interfaceData = (_this$
|
7487
|
-
var canClkSrc = (_this$dataModel$getCo = (_this$
|
7523
|
+
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;
|
7524
|
+
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";
|
7488
7525
|
var canClkFreq = Object(_Util__WEBPACK_IMPORTED_MODULE_3__["getCanfdClockFrequency"])(canClkSrc, interfaceData);
|
7489
7526
|
return Object(_Util__WEBPACK_IMPORTED_MODULE_3__["getCanClkDivFreq"])(canClkSrc, canClkFreq);
|
7490
7527
|
});
|
@@ -7851,7 +7888,7 @@ module.exports = JSON.parse("{\"moduleName\":\"Clock\",\"deviceType\":\"PIC\",\"
|
|
7851
7888
|
|
7852
7889
|
__webpack_require__(/*! core-js/es/set/index */"./node_modules/core-js/es/set/index.js");
|
7853
7890
|
__webpack_require__(/*! core-js/es/map/index */"./node_modules/core-js/es/map/index.js");
|
7854
|
-
module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/Content_clock-16bit-driver_1.2.
|
7891
|
+
module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/Content_clock-16bit-driver_1.2.1/generated_module/src/autoProcessor.ts */"./generated_module/src/autoProcessor.ts");
|
7855
7892
|
|
7856
7893
|
|
7857
7894
|
/***/ })
|