@mchp-mcc/scf-pic8-osc-v1 4.3.3 → 4.3.4
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 -1
- package/Readme.md +6 -1
- package/output/autoCreator.js +41 -8
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +41 -8
- package/output/autoProcessor.js.map +1 -1
- package/output/creator.js +41 -8
- package/output/creator.js.map +1 -1
- package/output/processor.js +41 -8
- package/output/processor.js.map +1 -1
- package/package.json +3 -3
package/output/processor.js
CHANGED
|
@@ -6055,6 +6055,7 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
6055
6055
|
alerts: _this.getMyAlerts,
|
|
6056
6056
|
isEnabled: _this.isEnabled,
|
|
6057
6057
|
isVisible: _this.isVisible,
|
|
6058
|
+
coscOsccon2: _this.getResOscValue,
|
|
6058
6059
|
currentSystemClk: function currentSystemClk() {
|
|
6059
6060
|
return _this.getClockCalculator().getCurrentSystemClk();
|
|
6060
6061
|
},
|
|
@@ -6065,7 +6066,7 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
6065
6066
|
config_device_results: _this.config_device_results,
|
|
6066
6067
|
templateData: _this.getTemplateData,
|
|
6067
6068
|
config_request_args: function config_request_args() {
|
|
6068
|
-
return ["FEXTOSC", "CLKOUTEN", "MCLRE", "LVP"];
|
|
6069
|
+
return ["FEXTOSC", "CLKOUTEN", "MCLRE", "LVP", "RSTOSC"];
|
|
6069
6070
|
},
|
|
6070
6071
|
"osc-clocks_payload": _this.getOscClocksProcessedPayload,
|
|
6071
6072
|
doNotShow: function doNotShow() {
|
|
@@ -6085,6 +6086,42 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
6085
6086
|
return importKey;
|
|
6086
6087
|
});
|
|
6087
6088
|
|
|
6089
|
+
_defineProperty(this, "getResOscValue", function () {
|
|
6090
|
+
var resetOscValue = _this.getDynamicComponetDefaultValue("RSTOSC");
|
|
6091
|
+
|
|
6092
|
+
var actualOscValue;
|
|
6093
|
+
|
|
6094
|
+
if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("4x PLL")) !== -1) {
|
|
6095
|
+
actualOscValue = "EXTOSC with 4x PLL";
|
|
6096
|
+
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("Secondary Oscillator")) !== -1) {
|
|
6097
|
+
actualOscValue = "SOSC";
|
|
6098
|
+
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("Low-Frequency")) !== -1) {
|
|
6099
|
+
actualOscValue = "LFINTOSC";
|
|
6100
|
+
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("HFINTOSC with HFFRQ = 4 MHz and CDIV = 4:1")) !== -1) {
|
|
6101
|
+
actualOscValue = "HFINTOSC";
|
|
6102
|
+
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("FEXTOSC")) !== -1) {
|
|
6103
|
+
actualOscValue = "EXTOSC";
|
|
6104
|
+
} else {
|
|
6105
|
+
actualOscValue = undefined;
|
|
6106
|
+
}
|
|
6107
|
+
|
|
6108
|
+
return actualOscValue;
|
|
6109
|
+
});
|
|
6110
|
+
|
|
6111
|
+
_defineProperty(this, "getPLLStatus", function () {
|
|
6112
|
+
var pllStatus = _this.getResOscValue();
|
|
6113
|
+
|
|
6114
|
+
var pllEnable = _this.dataModel.isComponentValue("pllenOscen");
|
|
6115
|
+
|
|
6116
|
+
if (pllStatus === "EXTOSC with 4x PLL") {
|
|
6117
|
+
return true;
|
|
6118
|
+
} else if (pllEnable === true) {
|
|
6119
|
+
return true;
|
|
6120
|
+
} else {
|
|
6121
|
+
return false;
|
|
6122
|
+
}
|
|
6123
|
+
});
|
|
6124
|
+
|
|
6088
6125
|
_defineProperty(this, "getOscClocksProcessedPayload", function () {
|
|
6089
6126
|
var _this$getClockCalcula, _this$getClockCalcula2, _this$getClockCalcula3, _this$getClockCalcula4, _this$getClockCalcula5, _this$getClockCalcula6, _this$getClockCalcula7;
|
|
6090
6127
|
|
|
@@ -6117,26 +6154,22 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
6117
6154
|
});
|
|
6118
6155
|
|
|
6119
6156
|
_defineProperty(this, "getTemplateData", function () {
|
|
6120
|
-
var _this$
|
|
6157
|
+
var _this$getPLLStatus;
|
|
6121
6158
|
|
|
6122
6159
|
var headers = {
|
|
6123
6160
|
name: "clock.h",
|
|
6124
6161
|
path: "../"
|
|
6125
|
-
}; // const initRegisters = this.dataModel.getRegisterValues();
|
|
6162
|
+
}; // const initRegisters = this.dataModel.getRegisterValues() ;
|
|
6126
6163
|
|
|
6127
6164
|
var registerValues = _this.dataModel.getRegisterValues();
|
|
6128
6165
|
|
|
6129
6166
|
return _objectSpread({
|
|
6130
|
-
productName: "CCL",
|
|
6131
|
-
productVersion: "1.8.2",
|
|
6132
|
-
compiler: "XC8 v2.20",
|
|
6133
|
-
tool: "MPLAB X 5.40",
|
|
6134
6167
|
deviceFrequency: _this.getClockCalculator().getCurrentSystemClk().toString(),
|
|
6135
6168
|
// initRegisters: initRegisters,
|
|
6136
6169
|
header: headers,
|
|
6137
6170
|
moduleNameUpperCase: _this.getModuleName().toUpperCase(),
|
|
6138
6171
|
moduleNameLowerCase: _this.getModuleName().toLowerCase(),
|
|
6139
|
-
isPllEnabled: (_this$
|
|
6172
|
+
isPllEnabled: (_this$getPLLStatus = _this.getPLLStatus()) !== null && _this$getPLLStatus !== void 0 ? _this$getPLLStatus : false
|
|
6140
6173
|
}, registerValues);
|
|
6141
6174
|
});
|
|
6142
6175
|
|