@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/Changelog.md
CHANGED
@@ -1,14 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
+
## [1.2.1] - 2023-09-25
|
5
|
+
|
6
|
+
### New Features
|
7
|
+
- **CC16SCRIP-7641** :- Added notification & inline in secondary device/secondary core when primary/external [with/without PLL] clock source is selected
|
8
|
+
- **CC16SCRIP-7274** :- Clock Source is configurable for dsPIC33CH1024MP712S1 device family
|
9
|
+
|
10
|
+
|
4
11
|
## [1.2.0] - 2023-07-31
|
5
12
|
|
6
13
|
### New Features
|
7
14
|
- **CC16SCRIP-6862** :- Support for Dual Core
|
8
15
|
|
9
|
-
### Bug Fixes
|
10
|
-
- **CC16SCRIP-7135** :- Main Core RC3 : Clock source selection is still editable field(must be non editable upon import)
|
11
|
-
|
12
16
|
|
13
17
|
## [1.1.1] - 2023-01-05
|
14
18
|
|
package/Readme.md
CHANGED
@@ -39,14 +39,18 @@ The Clock Driver helps the user to easily configure the System Clock , Auxiliary
|
|
39
39
|
# Changelog
|
40
40
|
All notable changes to this project will be documented in this file.
|
41
41
|
|
42
|
+
## [1.2.1] - 2023-09-25
|
43
|
+
|
44
|
+
### New Features
|
45
|
+
- **CC16SCRIP-7641** :- Added notification & inline in secondary device/secondary core when primary/external [with/without PLL] clock source is selected
|
46
|
+
- **CC16SCRIP-7274** :- Clock Source is configurable for dsPIC33CH1024MP712S1 device family
|
47
|
+
|
48
|
+
|
42
49
|
## [1.2.0] - 2023-07-31
|
43
50
|
|
44
51
|
### New Features
|
45
52
|
- **CC16SCRIP-6862** :- Support for Dual Core
|
46
53
|
|
47
|
-
### Bug Fixes
|
48
|
-
- **CC16SCRIP-7135** :- Main Core RC3 : Clock source selection is still editable field(must be non editable upon import)
|
49
|
-
|
50
54
|
|
51
55
|
## [1.1.1] - 2023-01-05
|
52
56
|
|
package/output/autoCreator.js
CHANGED
@@ -6459,24 +6459,31 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
6459
6459
|
};
|
6460
6460
|
});
|
6461
6461
|
|
6462
|
-
_defineProperty(this, "
|
6462
|
+
_defineProperty(this, "getFamilyName", function () {
|
6463
6463
|
var _this$dataModel, _this$dataModel$getIm, _this$dataModel$getIm2;
|
6464
6464
|
|
6465
|
-
var
|
6465
|
+
var deviceFamilyName = "";
|
6466
6466
|
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;
|
6467
6467
|
|
6468
6468
|
if (deviceMetaData) {
|
6469
|
-
|
6469
|
+
deviceFamilyName = deviceMetaData === null || deviceMetaData === void 0 ? void 0 : deviceMetaData.familyName;
|
6470
6470
|
}
|
6471
6471
|
|
6472
|
-
return
|
6472
|
+
return deviceFamilyName;
|
6473
6473
|
});
|
6474
6474
|
|
6475
6475
|
_defineProperty(this, "isSecondaryDevice", function () {
|
6476
|
-
var
|
6476
|
+
var _this$getModel$getImp, _this$getModel, _this$getModel$getImp2, _this$getModel$getImp3, _this$getModel$getImp4;
|
6477
6477
|
|
6478
|
+
var deviceFamilyName = _this.getFamilyName();
|
6478
6479
|
|
6479
|
-
|
6480
|
+
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;
|
6481
|
+
/*
|
6482
|
+
Device name ends with "S" followed by a digit.
|
6483
|
+
The second part of the condition is for devices like Centaurus which have their inidividual flash.
|
6484
|
+
*/
|
6485
|
+
|
6486
|
+
if (deviceFamilyName.match(/S\d$/) && !hasSecondaryCoreFlashSupport) {
|
6480
6487
|
return true;
|
6481
6488
|
}
|
6482
6489
|
|
@@ -6657,6 +6664,13 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
6657
6664
|
uiBehavior = _defineProperty({}, "ui:help", "CAN FD clock source frequency should be less than or equal to 640 MHz");
|
6658
6665
|
break;
|
6659
6666
|
|
6667
|
+
case COMPONENT_MAIN_CLOCK_SOURCE:
|
6668
|
+
if (_this.shouldShowSecDeviceNotif()) {
|
6669
|
+
uiBehavior = _defineProperty({}, "ui:help", "Ensure to select ".concat(_this.dataModel.getComponentValue(COMPONENT_MAIN_CLOCK_SOURCE), " as part of Main Device also"));
|
6670
|
+
}
|
6671
|
+
|
6672
|
+
break;
|
6673
|
+
|
6660
6674
|
default:
|
6661
6675
|
break;
|
6662
6676
|
}
|
@@ -6871,9 +6885,32 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
6871
6885
|
}
|
6872
6886
|
}
|
6873
6887
|
|
6888
|
+
if (_this.shouldShowSecDeviceNotif()) {
|
6889
|
+
var _this$dataModel10, _this$dataModel11;
|
6890
|
+
|
6891
|
+
alerts.push({
|
6892
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Hint,
|
6893
|
+
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")
|
6894
|
+
});
|
6895
|
+
}
|
6896
|
+
|
6874
6897
|
return alerts;
|
6875
6898
|
});
|
6876
6899
|
|
6900
|
+
_defineProperty(this, "shouldShowSecDeviceNotif", function () {
|
6901
|
+
var deviceFamilyName = _this.getFamilyName();
|
6902
|
+
|
6903
|
+
if (deviceFamilyName.match(/S\d$/)) {
|
6904
|
+
var _this$dataModel12, _this$dataModel13, _this$dataModel14, _this$dataModel15;
|
6905
|
+
|
6906
|
+
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") {
|
6907
|
+
return true;
|
6908
|
+
}
|
6909
|
+
}
|
6910
|
+
|
6911
|
+
return false;
|
6912
|
+
});
|
6913
|
+
|
6877
6914
|
_defineProperty(this, "calculatedFunction", function () {
|
6878
6915
|
return;
|
6879
6916
|
});
|
@@ -7465,9 +7502,9 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
7465
7502
|
});
|
7466
7503
|
|
7467
7504
|
_defineProperty(this, "canfdClockArg", function () {
|
7468
|
-
var _this$dataModel$getSt, _this$
|
7505
|
+
var _this$dataModel$getSt, _this$dataModel16, _this$dataModel16$get, _this$dataModel16$get2, _this$dataModel16$get3;
|
7469
7506
|
|
7470
|
-
var canClock = (_this$dataModel$getSt = (_this$
|
7507
|
+
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";
|
7471
7508
|
return {
|
7472
7509
|
canfdClockSource: canClock,
|
7473
7510
|
requestedCanfdClockOutputFrequency_Hz: _this.getRequestedCanfdClockFreq()
|
@@ -7479,10 +7516,10 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
7479
7516
|
});
|
7480
7517
|
|
7481
7518
|
_defineProperty(this, "getCanfdClockSrcFreq", function () {
|
7482
|
-
var _this$
|
7519
|
+
var _this$dataModel17, _this$dataModel17$get, _this$dataModel$getCo, _this$dataModel18;
|
7483
7520
|
|
7484
|
-
var interfaceData = (_this$
|
7485
|
-
var canClkSrc = (_this$dataModel$getCo = (_this$
|
7521
|
+
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;
|
7522
|
+
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";
|
7486
7523
|
var canClkFreq = Object(_Util__WEBPACK_IMPORTED_MODULE_3__["getCanfdClockFrequency"])(canClkSrc, interfaceData);
|
7487
7524
|
return Object(_Util__WEBPACK_IMPORTED_MODULE_3__["getCanClkDivFreq"])(canClkSrc, canClkFreq);
|
7488
7525
|
});
|
@@ -7849,7 +7886,7 @@ module.exports = JSON.parse("{\"moduleName\":\"Clock\",\"deviceType\":\"PIC\",\"
|
|
7849
7886
|
|
7850
7887
|
__webpack_require__(/*! core-js/es/set/index */"./node_modules/core-js/es/set/index.js");
|
7851
7888
|
__webpack_require__(/*! core-js/es/map/index */"./node_modules/core-js/es/map/index.js");
|
7852
|
-
module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/Content_clock-16bit-driver_1.2.
|
7889
|
+
module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/Content_clock-16bit-driver_1.2.1/generated_module/src/autoCreator.ts */"./generated_module/src/autoCreator.ts");
|
7853
7890
|
|
7854
7891
|
|
7855
7892
|
/***/ })
|