@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/reducer.js
CHANGED
@@ -33477,24 +33477,31 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
33477
33477
|
};
|
33478
33478
|
});
|
33479
33479
|
|
33480
|
-
_defineProperty(this, "
|
33480
|
+
_defineProperty(this, "getFamilyName", function () {
|
33481
33481
|
var _this$dataModel, _this$dataModel$getIm, _this$dataModel$getIm2;
|
33482
33482
|
|
33483
|
-
var
|
33483
|
+
var deviceFamilyName = "";
|
33484
33484
|
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;
|
33485
33485
|
|
33486
33486
|
if (deviceMetaData) {
|
33487
|
-
|
33487
|
+
deviceFamilyName = deviceMetaData === null || deviceMetaData === void 0 ? void 0 : deviceMetaData.familyName;
|
33488
33488
|
}
|
33489
33489
|
|
33490
|
-
return
|
33490
|
+
return deviceFamilyName;
|
33491
33491
|
});
|
33492
33492
|
|
33493
33493
|
_defineProperty(this, "isSecondaryDevice", function () {
|
33494
|
-
var
|
33494
|
+
var _this$getModel$getImp, _this$getModel, _this$getModel$getImp2, _this$getModel$getImp3, _this$getModel$getImp4;
|
33495
33495
|
|
33496
|
+
var deviceFamilyName = _this.getFamilyName();
|
33496
33497
|
|
33497
|
-
|
33498
|
+
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;
|
33499
|
+
/*
|
33500
|
+
Device name ends with "S" followed by a digit.
|
33501
|
+
The second part of the condition is for devices like Centaurus which have their inidividual flash.
|
33502
|
+
*/
|
33503
|
+
|
33504
|
+
if (deviceFamilyName.match(/S\d$/) && !hasSecondaryCoreFlashSupport) {
|
33498
33505
|
return true;
|
33499
33506
|
}
|
33500
33507
|
|
@@ -33675,6 +33682,13 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
33675
33682
|
uiBehavior = _defineProperty({}, "ui:help", "CAN FD clock source frequency should be less than or equal to 640 MHz");
|
33676
33683
|
break;
|
33677
33684
|
|
33685
|
+
case COMPONENT_MAIN_CLOCK_SOURCE:
|
33686
|
+
if (_this.shouldShowSecDeviceNotif()) {
|
33687
|
+
uiBehavior = _defineProperty({}, "ui:help", "Ensure to select ".concat(_this.dataModel.getComponentValue(COMPONENT_MAIN_CLOCK_SOURCE), " as part of Main Device also"));
|
33688
|
+
}
|
33689
|
+
|
33690
|
+
break;
|
33691
|
+
|
33678
33692
|
default:
|
33679
33693
|
break;
|
33680
33694
|
}
|
@@ -33889,9 +33903,32 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
33889
33903
|
}
|
33890
33904
|
}
|
33891
33905
|
|
33906
|
+
if (_this.shouldShowSecDeviceNotif()) {
|
33907
|
+
var _this$dataModel10, _this$dataModel11;
|
33908
|
+
|
33909
|
+
alerts.push({
|
33910
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Hint,
|
33911
|
+
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")
|
33912
|
+
});
|
33913
|
+
}
|
33914
|
+
|
33892
33915
|
return alerts;
|
33893
33916
|
});
|
33894
33917
|
|
33918
|
+
_defineProperty(this, "shouldShowSecDeviceNotif", function () {
|
33919
|
+
var deviceFamilyName = _this.getFamilyName();
|
33920
|
+
|
33921
|
+
if (deviceFamilyName.match(/S\d$/)) {
|
33922
|
+
var _this$dataModel12, _this$dataModel13, _this$dataModel14, _this$dataModel15;
|
33923
|
+
|
33924
|
+
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") {
|
33925
|
+
return true;
|
33926
|
+
}
|
33927
|
+
}
|
33928
|
+
|
33929
|
+
return false;
|
33930
|
+
});
|
33931
|
+
|
33895
33932
|
_defineProperty(this, "calculatedFunction", function () {
|
33896
33933
|
return;
|
33897
33934
|
});
|
@@ -34483,9 +34520,9 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
34483
34520
|
});
|
34484
34521
|
|
34485
34522
|
_defineProperty(this, "canfdClockArg", function () {
|
34486
|
-
var _this$dataModel$getSt, _this$
|
34523
|
+
var _this$dataModel$getSt, _this$dataModel16, _this$dataModel16$get, _this$dataModel16$get2, _this$dataModel16$get3;
|
34487
34524
|
|
34488
|
-
var canClock = (_this$dataModel$getSt = (_this$
|
34525
|
+
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";
|
34489
34526
|
return {
|
34490
34527
|
canfdClockSource: canClock,
|
34491
34528
|
requestedCanfdClockOutputFrequency_Hz: _this.getRequestedCanfdClockFreq()
|
@@ -34497,10 +34534,10 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
34497
34534
|
});
|
34498
34535
|
|
34499
34536
|
_defineProperty(this, "getCanfdClockSrcFreq", function () {
|
34500
|
-
var _this$
|
34537
|
+
var _this$dataModel17, _this$dataModel17$get, _this$dataModel$getCo, _this$dataModel18;
|
34501
34538
|
|
34502
|
-
var interfaceData = (_this$
|
34503
|
-
var canClkSrc = (_this$dataModel$getCo = (_this$
|
34539
|
+
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;
|
34540
|
+
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";
|
34504
34541
|
var canClkFreq = Object(_Util__WEBPACK_IMPORTED_MODULE_3__["getCanfdClockFrequency"])(canClkSrc, interfaceData);
|
34505
34542
|
return Object(_Util__WEBPACK_IMPORTED_MODULE_3__["getCanClkDivFreq"])(canClkSrc, canClkFreq);
|
34506
34543
|
});
|
@@ -34977,7 +35014,7 @@ var updateValue = function updateValue(key, existingValue, componentName, newVal
|
|
34977
35014
|
|
34978
35015
|
__webpack_require__(/*! core-js/es/set/index */"./node_modules/core-js/es/set/index.js");
|
34979
35016
|
__webpack_require__(/*! core-js/es/map/index */"./node_modules/core-js/es/map/index.js");
|
34980
|
-
module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/Content_clock-16bit-driver_1.2.
|
35017
|
+
module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/Content_clock-16bit-driver_1.2.1/src/reducer.tsx */"./src/reducer.tsx");
|
34981
35018
|
|
34982
35019
|
|
34983
35020
|
/***/ })
|