@mchp-mcc/scf-pic8-pwm-v2 4.2.10 → 4.2.11
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 -6
- package/Readme.md +6 -6
- package/output/autoCreator.js +76 -74
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +76 -74
- package/output/autoProcessor.js.map +1 -1
- package/output/creator.js +482 -101
- package/output/creator.js.map +1 -1
- package/output/nullPrototype.json +5 -5
- package/output/processor.js +482 -101
- package/output/processor.js.map +1 -1
- package/package.json +15 -15
package/output/autoProcessor.js
CHANGED
|
@@ -505,10 +505,10 @@ var filterModeOptions = function filterModeOptions(options, component, masterCom
|
|
|
505
505
|
|
|
506
506
|
var getProcessedHandle = function getProcessedHandle(handle, payload) {
|
|
507
507
|
if (handle) {
|
|
508
|
-
var _ref, _ref2, _ref3, _payload$customName;
|
|
508
|
+
var _ref, _ref2, _ref3, _payload$customName, _handle;
|
|
509
509
|
|
|
510
510
|
handle = _objectSpread(_objectSpread({}, handle), {}, {
|
|
511
|
-
label: (_ref = (_ref2 = (_ref3 = (_payload$customName = payload === null || payload === void 0 ? void 0 : payload.customName) !== null && _payload$customName !== void 0 ? _payload$customName :
|
|
511
|
+
label: (_ref = (_ref2 = (_ref3 = (_payload$customName = payload === null || payload === void 0 ? void 0 : payload.customName) !== null && _payload$customName !== void 0 ? _payload$customName : (_handle = handle) === null || _handle === void 0 ? void 0 : _handle.label) !== null && _ref3 !== void 0 ? _ref3 : payload === null || payload === void 0 ? void 0 : payload.moduleName) !== null && _ref2 !== void 0 ? _ref2 : payload === null || payload === void 0 ? void 0 : payload.name) !== null && _ref !== void 0 ? _ref : handle.providerId + " : " + handle.exportId
|
|
512
512
|
});
|
|
513
513
|
}
|
|
514
514
|
|
|
@@ -926,6 +926,7 @@ var QueryAdapterKey;
|
|
|
926
926
|
QueryAdapterKey["ALLPINS"] = "allpins";
|
|
927
927
|
QueryAdapterKey["ALLPINS_FOR_ATTRIBS"] = "allpins_for_attribs";
|
|
928
928
|
QueryAdapterKey["PPS"] = "pps";
|
|
929
|
+
QueryAdapterKey["APFCON"] = "apfcon";
|
|
929
930
|
QueryAdapterKey["PORTMUX"] = "portmux";
|
|
930
931
|
QueryAdapterKey["HASPPS"] = "hasPPS";
|
|
931
932
|
})(QueryAdapterKey = exports.QueryAdapterKey || (exports.QueryAdapterKey = {}));
|
|
@@ -3183,8 +3184,7 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
3183
3184
|
|
|
3184
3185
|
_defineProperty(this, "getPinstandardArgs", function () {
|
|
3185
3186
|
var args = {
|
|
3186
|
-
queryAdapters: ["
|
|
3187
|
-
queryAdapterMap: _defineProperty({}, _microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_7__["QueryAdapterKey"].ALLPINS, "^PWM[0-9]{0,1}$")
|
|
3187
|
+
queryAdapters: [_microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_7__["QueryAdapterKey"].PPS, _microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_7__["QueryAdapterKey"].APFCON]
|
|
3188
3188
|
};
|
|
3189
3189
|
return args;
|
|
3190
3190
|
});
|
|
@@ -3296,14 +3296,12 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
3296
3296
|
});
|
|
3297
3297
|
|
|
3298
3298
|
_defineProperty(this, "getMyAlerts", function () {
|
|
3299
|
-
var _this$dataModel$getCo2,
|
|
3299
|
+
var _this$dataModel$getCo2, _this$dataModel$getAs;
|
|
3300
3300
|
|
|
3301
3301
|
var alerts = [];
|
|
3302
3302
|
var timerSelection = (_this$dataModel$getCo2 = _this.dataModel.getComponentValue("timerSelection")) !== null && _this$dataModel$getCo2 !== void 0 ? _this$dataModel$getCo2 : "";
|
|
3303
|
-
var groupmatch = (_timerSelection$match = timerSelection.match(/^TMR([0-9])$/)) !== null && _timerSelection$match !== void 0 ? _timerSelection$match : "";
|
|
3304
|
-
var timersuffix = (groupmatch === null || groupmatch === void 0 ? void 0 : groupmatch.length) > 1 ? groupmatch[1] : "";
|
|
3305
3303
|
|
|
3306
|
-
if (_this.dataModel.getAssignedImport("Timer")
|
|
3304
|
+
if (_this.dataModel.getAssignedImport("Timer") === undefined || ((_this$dataModel$getAs = _this.dataModel.getAssignedImport("Timer")) === null || _this$dataModel$getAs === void 0 ? void 0 : _this$dataModel$getAs.options) !== undefined) {
|
|
3307
3305
|
alerts.push({
|
|
3308
3306
|
text: "Please select ".concat(timerSelection, " as the Timer Dependency."),
|
|
3309
3307
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning
|
|
@@ -3391,10 +3389,10 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
3391
3389
|
});
|
|
3392
3390
|
|
|
3393
3391
|
_defineProperty(this, "ctselTimerSetting", function () {
|
|
3394
|
-
var _this$dataModel$getCo4, _timerSelection$
|
|
3392
|
+
var _this$dataModel$getCo4, _timerSelection$match;
|
|
3395
3393
|
|
|
3396
3394
|
var timerSelection = (_this$dataModel$getCo4 = _this.dataModel.getComponentValue("timerSelection")) !== null && _this$dataModel$getCo4 !== void 0 ? _this$dataModel$getCo4 : "";
|
|
3397
|
-
var groupmatch = (_timerSelection$
|
|
3395
|
+
var groupmatch = (_timerSelection$match = timerSelection.match(/^TMR([0-9])$/)) !== null && _timerSelection$match !== void 0 ? _timerSelection$match : "";
|
|
3398
3396
|
|
|
3399
3397
|
if (groupmatch.length > 1) {
|
|
3400
3398
|
var _this$dataModel$getHa3;
|
|
@@ -3528,19 +3526,11 @@ var getCompletePinData = function getCompletePinData(appModel) {
|
|
|
3528
3526
|
}; // overrides pin data for a particular row based on model.
|
|
3529
3527
|
|
|
3530
3528
|
function getRowData(appModel, rowData) {
|
|
3531
|
-
var _appModel$getName, _appModel$getImportVa, _appModel$getComponen, _appModel$getComponen2, _appModel$getComponen3, _appModel$getComponen4;
|
|
3529
|
+
var _appModel$getName, _appModel$getImportVa, _appModel$getImportVa2, _appModel$getImportVa3, _appModel$getImportVa4, _appModel$getImportVa5, _appModel$getImportVa6, _appModel$getComponen, _appModel$getComponen2, _appModel$getComponen3, _appModel$getComponen4, _appModel$getComponen5;
|
|
3532
3530
|
|
|
3533
3531
|
var moduleName = (_appModel$getName = appModel.getName()) !== null && _appModel$getName !== void 0 ? _appModel$getName : "PWM";
|
|
3534
|
-
var
|
|
3535
|
-
var
|
|
3536
|
-
var pinName = getPinName(modulePins, rowData.filter.aliasReEx);
|
|
3537
|
-
var pinBehaviour = getpinBehaviour(allPinsData, moduleName, pinName);
|
|
3538
|
-
var isPPS = pinBehaviour === "pps";
|
|
3539
|
-
var isAPFCON = pinBehaviour === "apfcon";
|
|
3540
|
-
|
|
3541
|
-
if (pinName === "") {
|
|
3542
|
-
return undefined;
|
|
3543
|
-
}
|
|
3532
|
+
var ppsData = (_appModel$getImportVa = appModel.getImportValue("pin_standard")) === null || _appModel$getImportVa === void 0 ? void 0 : (_appModel$getImportVa2 = _appModel$getImportVa["pps"]) === null || _appModel$getImportVa2 === void 0 ? void 0 : (_appModel$getImportVa3 = _appModel$getImportVa2["data"]) === null || _appModel$getImportVa3 === void 0 ? void 0 : _appModel$getImportVa3[moduleName];
|
|
3533
|
+
var apfconData = (_appModel$getImportVa4 = appModel.getImportValue("pin_standard")) === null || _appModel$getImportVa4 === void 0 ? void 0 : (_appModel$getImportVa5 = _appModel$getImportVa4["apfcon"]) === null || _appModel$getImportVa5 === void 0 ? void 0 : (_appModel$getImportVa6 = _appModel$getImportVa5["data"]) === null || _appModel$getImportVa6 === void 0 ? void 0 : _appModel$getImportVa6[moduleName];
|
|
3544
3534
|
|
|
3545
3535
|
if (rowData.name === "out") {
|
|
3546
3536
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
@@ -3550,10 +3540,10 @@ function getRowData(appModel, rowData) {
|
|
|
3550
3540
|
module: moduleName,
|
|
3551
3541
|
aliasReEx: "^".concat(moduleName, "(OUT){0,1}$")
|
|
3552
3542
|
},
|
|
3553
|
-
behaviour:
|
|
3543
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3554
3544
|
});
|
|
3555
3545
|
|
|
3556
|
-
if (appModel.isComponentValue("pwmoePwmcon") === true) {
|
|
3546
|
+
if (appModel.isComponentValue("pwmoePwmcon") === true && getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx) === _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK) {
|
|
3557
3547
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3558
3548
|
behaviourMeta: {
|
|
3559
3549
|
lockPinRegEx: "^".concat(moduleName, "(OUT){0,1}$")
|
|
@@ -3561,13 +3551,17 @@ function getRowData(appModel, rowData) {
|
|
|
3561
3551
|
});
|
|
3562
3552
|
}
|
|
3563
3553
|
} else if (rowData.name === "pwmx0") {
|
|
3554
|
+
if (appModel.getComponentValue("pwmoe0Pwmaoe") === undefined) {
|
|
3555
|
+
return undefined;
|
|
3556
|
+
}
|
|
3557
|
+
|
|
3564
3558
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3565
3559
|
module: moduleName,
|
|
3566
3560
|
"function": moduleName + "0OUT",
|
|
3567
3561
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3568
3562
|
module: moduleName
|
|
3569
3563
|
}),
|
|
3570
|
-
behaviour:
|
|
3564
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3571
3565
|
});
|
|
3572
3566
|
|
|
3573
3567
|
if (appModel.isComponentValue("pwmoe0Pwmaoe") === true) {
|
|
@@ -3578,13 +3572,17 @@ function getRowData(appModel, rowData) {
|
|
|
3578
3572
|
});
|
|
3579
3573
|
}
|
|
3580
3574
|
} else if (rowData.name === "pwmx1") {
|
|
3575
|
+
if (appModel.getComponentValue("pwmoe1Pwmaoe") === undefined) {
|
|
3576
|
+
return undefined;
|
|
3577
|
+
}
|
|
3578
|
+
|
|
3581
3579
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3582
3580
|
module: moduleName,
|
|
3583
3581
|
"function": moduleName + "1OUT",
|
|
3584
3582
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3585
3583
|
module: moduleName
|
|
3586
3584
|
}),
|
|
3587
|
-
behaviour:
|
|
3585
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3588
3586
|
});
|
|
3589
3587
|
|
|
3590
3588
|
if (appModel.isComponentValue("pwmoe1Pwmaoe") === true) {
|
|
@@ -3595,13 +3593,17 @@ function getRowData(appModel, rowData) {
|
|
|
3595
3593
|
});
|
|
3596
3594
|
}
|
|
3597
3595
|
} else if (rowData.name === "pwmx2") {
|
|
3596
|
+
if (appModel.getComponentValue("pwmoe2Pwmaoe") === undefined) {
|
|
3597
|
+
return undefined;
|
|
3598
|
+
}
|
|
3599
|
+
|
|
3598
3600
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3599
3601
|
module: moduleName,
|
|
3600
3602
|
"function": moduleName + "2OUT",
|
|
3601
3603
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3602
3604
|
module: moduleName
|
|
3603
3605
|
}),
|
|
3604
|
-
behaviour:
|
|
3606
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3605
3607
|
});
|
|
3606
3608
|
|
|
3607
3609
|
if (appModel.isComponentValue("pwmoe2Pwmaoe") === true) {
|
|
@@ -3612,13 +3614,17 @@ function getRowData(appModel, rowData) {
|
|
|
3612
3614
|
});
|
|
3613
3615
|
}
|
|
3614
3616
|
} else if (rowData.name === "pwmx3") {
|
|
3617
|
+
if (appModel.getComponentValue("pwmoe3Pwmaoe") === undefined) {
|
|
3618
|
+
return undefined;
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3615
3621
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3616
3622
|
module: moduleName,
|
|
3617
3623
|
"function": moduleName + "3OUT",
|
|
3618
3624
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3619
3625
|
module: moduleName
|
|
3620
3626
|
}),
|
|
3621
|
-
behaviour:
|
|
3627
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3622
3628
|
});
|
|
3623
3629
|
|
|
3624
3630
|
if (appModel.isComponentValue("pwmoe3Pwmaoe") === true) {
|
|
@@ -3631,33 +3637,40 @@ function getRowData(appModel, rowData) {
|
|
|
3631
3637
|
}
|
|
3632
3638
|
|
|
3633
3639
|
var rowActions = [];
|
|
3634
|
-
var
|
|
3635
|
-
var
|
|
3636
|
-
var
|
|
3637
|
-
var
|
|
3640
|
+
var pwmxRegcomponent = (_appModel$getComponen = appModel.getComponent("pwmoePwmcon")) === null || _appModel$getComponen === void 0 ? void 0 : _appModel$getComponen.component;
|
|
3641
|
+
var pwmx0Regcomponent = (_appModel$getComponen2 = appModel.getComponent("pwmoe0Pwmaoe")) === null || _appModel$getComponen2 === void 0 ? void 0 : _appModel$getComponen2.component;
|
|
3642
|
+
var pwmx1Regcomponent = (_appModel$getComponen3 = appModel.getComponent("pwmoe1Pwmaoe")) === null || _appModel$getComponen3 === void 0 ? void 0 : _appModel$getComponen3.component;
|
|
3643
|
+
var pwmx2Regcomponent = (_appModel$getComponen4 = appModel.getComponent("pwmoe2Pwmaoe")) === null || _appModel$getComponen4 === void 0 ? void 0 : _appModel$getComponen4.component;
|
|
3644
|
+
var pwmx3Regcomponent = (_appModel$getComponen5 = appModel.getComponent("pwmoe3Pwmaoe")) === null || _appModel$getComponen5 === void 0 ? void 0 : _appModel$getComponen5.component;
|
|
3638
3645
|
|
|
3639
|
-
if (
|
|
3646
|
+
if (pwmxRegcomponent && getPinBehaviour(ppsData, apfconData, "^".concat(moduleName, "(OUT){0,1}$")) === _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK) {
|
|
3640
3647
|
var _appModel$getPCPHelpe;
|
|
3641
3648
|
|
|
3642
|
-
rowActions = rowActions.concat((_appModel$getPCPHelpe = appModel.getPCPHelper) === null || _appModel$getPCPHelpe === void 0 ? void 0 : _appModel$getPCPHelpe.call(appModel).stateActionBuilder(rowData).rowWithName("
|
|
3649
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe = appModel.getPCPHelper) === null || _appModel$getPCPHelpe === void 0 ? void 0 : _appModel$getPCPHelpe.call(appModel).stateActionBuilder(rowData).rowWithName("out").forComponent(pwmxRegcomponent).addIfLockedSetValue("^" + moduleName + "$", true).addIfUnLockedSetValue(".*", false).build());
|
|
3643
3650
|
}
|
|
3644
3651
|
|
|
3645
|
-
if (
|
|
3652
|
+
if (pwmx0Regcomponent) {
|
|
3646
3653
|
var _appModel$getPCPHelpe2;
|
|
3647
3654
|
|
|
3648
|
-
rowActions = rowActions.concat((_appModel$getPCPHelpe2 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe2 === void 0 ? void 0 : _appModel$getPCPHelpe2.call(appModel).stateActionBuilder(rowData).rowWithName("
|
|
3655
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe2 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe2 === void 0 ? void 0 : _appModel$getPCPHelpe2.call(appModel).stateActionBuilder(rowData).rowWithName("pwmx0").forComponent(pwmx0Regcomponent).addIfLockedSetValue(moduleName + "0", true).addIfUnLockedSetValue(".*", false).build());
|
|
3649
3656
|
}
|
|
3650
3657
|
|
|
3651
|
-
if (
|
|
3658
|
+
if (pwmx1Regcomponent) {
|
|
3652
3659
|
var _appModel$getPCPHelpe3;
|
|
3653
3660
|
|
|
3654
|
-
rowActions = rowActions.concat((_appModel$getPCPHelpe3 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe3 === void 0 ? void 0 : _appModel$getPCPHelpe3.call(appModel).stateActionBuilder(rowData).rowWithName("
|
|
3661
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe3 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe3 === void 0 ? void 0 : _appModel$getPCPHelpe3.call(appModel).stateActionBuilder(rowData).rowWithName("pwmx1").forComponent(pwmx1Regcomponent).addIfLockedSetValue(moduleName + "1", true).addIfUnLockedSetValue(".*", false).build());
|
|
3655
3662
|
}
|
|
3656
3663
|
|
|
3657
|
-
if (
|
|
3664
|
+
if (pwmx2Regcomponent) {
|
|
3658
3665
|
var _appModel$getPCPHelpe4;
|
|
3659
3666
|
|
|
3660
|
-
rowActions = rowActions.concat((_appModel$getPCPHelpe4 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe4 === void 0 ? void 0 : _appModel$getPCPHelpe4.call(appModel).stateActionBuilder(rowData).rowWithName("
|
|
3667
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe4 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe4 === void 0 ? void 0 : _appModel$getPCPHelpe4.call(appModel).stateActionBuilder(rowData).rowWithName("pwmx2").forComponent(pwmx2Regcomponent).addIfLockedSetValue(moduleName + "2", true).addIfUnLockedSetValue(".*", false).build());
|
|
3668
|
+
}
|
|
3669
|
+
|
|
3670
|
+
if (pwmx3Regcomponent) {
|
|
3671
|
+
var _appModel$getPCPHelpe5;
|
|
3672
|
+
|
|
3673
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe5 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe5 === void 0 ? void 0 : _appModel$getPCPHelpe5.call(appModel).stateActionBuilder(rowData).rowWithName("pwmx3").forComponent(pwmx3Regcomponent).addIfLockedSetValue(moduleName + "3", true).addIfUnLockedSetValue(".*", false).build());
|
|
3661
3674
|
}
|
|
3662
3675
|
|
|
3663
3676
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
@@ -3666,48 +3679,37 @@ function getRowData(appModel, rowData) {
|
|
|
3666
3679
|
return rowData;
|
|
3667
3680
|
}
|
|
3668
3681
|
|
|
3669
|
-
var
|
|
3670
|
-
var
|
|
3682
|
+
var getPinBehaviour = function getPinBehaviour(ppsPins, apfconPins, pinRegEx) {
|
|
3683
|
+
var tempPinBehaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK;
|
|
3671
3684
|
|
|
3672
|
-
|
|
3673
|
-
var
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3685
|
+
if (ppsPins !== undefined) {
|
|
3686
|
+
for (var ppsPin in ppsPins) {
|
|
3687
|
+
if (ppsPin === "pps_out") {
|
|
3688
|
+
for (var ppsOut in ppsPins["pps_out"]) {
|
|
3689
|
+
if (ppsOut.match(new RegExp(pinRegEx, "ig"))) {
|
|
3690
|
+
tempPinBehaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS;
|
|
3691
|
+
break;
|
|
3692
|
+
}
|
|
3693
|
+
}
|
|
3694
|
+
} else {
|
|
3695
|
+
if (ppsPin.match(new RegExp(pinRegEx, "ig"))) {
|
|
3696
|
+
tempPinBehaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS;
|
|
3697
|
+
break;
|
|
3698
|
+
}
|
|
3680
3699
|
}
|
|
3681
3700
|
}
|
|
3682
3701
|
}
|
|
3683
3702
|
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
if (pin.match(new RegExp(regEx, "g"))) {
|
|
3691
|
-
pinName = pin;
|
|
3692
|
-
}
|
|
3693
|
-
});
|
|
3694
|
-
return pinName;
|
|
3695
|
-
};
|
|
3696
|
-
|
|
3697
|
-
var getpinBehaviour = function getpinBehaviour(allPins, moduleName, pinName) {
|
|
3698
|
-
for (var portPin in allPins) {
|
|
3699
|
-
var _allPins$portPin2, _allPins$portPin2$mod;
|
|
3700
|
-
|
|
3701
|
-
var pinData = (_allPins$portPin2 = allPins[portPin]) === null || _allPins$portPin2 === void 0 ? void 0 : (_allPins$portPin2$mod = _allPins$portPin2[moduleName]) === null || _allPins$portPin2$mod === void 0 ? void 0 : _allPins$portPin2$mod[pinName];
|
|
3702
|
-
|
|
3703
|
-
if (pinData === null || pinData === void 0 ? void 0 : pinData["pps"]) {
|
|
3704
|
-
return "pps";
|
|
3705
|
-
} else if (pinData === null || pinData === void 0 ? void 0 : pinData["apfcon"]) {
|
|
3706
|
-
return "apfcon";
|
|
3703
|
+
if (apfconPins !== undefined) {
|
|
3704
|
+
for (var apfconPin in apfconPins) {
|
|
3705
|
+
if (apfconPin.match(new RegExp(pinRegEx, "ig"))) {
|
|
3706
|
+
tempPinBehaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].APFCON;
|
|
3707
|
+
break;
|
|
3708
|
+
}
|
|
3707
3709
|
}
|
|
3708
3710
|
}
|
|
3709
3711
|
|
|
3710
|
-
return
|
|
3712
|
+
return tempPinBehaviour;
|
|
3711
3713
|
};
|
|
3712
3714
|
|
|
3713
3715
|
/***/ }),
|
|
@@ -3906,7 +3908,7 @@ var Interface = {
|
|
|
3906
3908
|
/*! exports provided: moduleName, deviceType, booleanValues, UIGroups, UIOrder, hasPins, tabs, help, analytics, templates, imports, exports, softwareData, peripherals, default */
|
|
3907
3909
|
/***/ (function(module) {
|
|
3908
3910
|
|
|
3909
|
-
module.exports = JSON.parse("{\"moduleName\":\"PWM\",\"deviceType\":\"PIC\",\"booleanValues\":{\"true\":\"enabled\",\"false\":\"disabled\"},\"UIGroups\":{\"software\":\"Software Settings\",\"hardware\":\"Hardware Settings\",\"additional\":\"Additional Pin Settings\"},\"UIOrder\":{\"software\":[\"*\"],\"hardware\":[\"pwmenPwmcon\",\"pwmoePwmcon\",\"timerSelection\",\"dutyCycle\",\"pwmdcValue\",\"pwmpolPwmcon\",\"pwmPeriod\",\"pwmFrequency\",\"pwmResolution\",\"*\"],\"additional\":[\"pwmoe0Pwmaoe\",\"pwmoe1Pwmaoe\",\"pwmoe2Pwmaoe\",\"pwmoe3Pwmaoe\",\"*\"]},\"hasPins\":true,\"tabs\":{\"main\":\"Easy View\",\"register\":\"Register Initialization\"},\"help\":{\"url\":\"v2/keyword-lookup?keyword=scf-pic8-pwm-v2&redirect=true\",\"tooltip\":\"Click here to open documentation.\"},\"analytics\":{\"logAlwaysComps\":[\"pwmenPwmcon\",\"pwmFrequency\",\"pwmResolution\",\"pwmoePwmcon\"],\"logOnChangeComps\":[],\"compMapping\":{\"pwmenPwmcon\":\"PWM_Enable\",\"pwmFrequency\":\"PWM_Frequency\",\"pwmResolution\":\"PWM_Resolution\",\"pwmoePwmcon\":\"PWM_OutputEnable\"}},\"templates\":[{\"src\":\"output/pwm-v2.c.ftl\",\"dest\":\"pwm/src/${sourceFileName}\",\"generateWithHardware\":true},{\"src\":\"output/pwm-v2.h.ftl\",\"dest\":\"pwm/${headerFileName}\",\"generateWithHardware\":true}],\"imports\":{\"initializer_system\":{\"nodeModule\":{\"importName\":\"systemInit\",\"node\":\"@microchip/initializer-system\"},\"import\":{\"interfaceId\":{\"name\":\"initializer-system\",\"version\":\"^0
|
|
3911
|
+
module.exports = JSON.parse("{\"moduleName\":\"PWM\",\"deviceType\":\"PIC\",\"booleanValues\":{\"true\":\"enabled\",\"false\":\"disabled\"},\"UIGroups\":{\"software\":\"Software Settings\",\"hardware\":\"Hardware Settings\",\"additional\":\"Additional Pin Settings\"},\"UIOrder\":{\"software\":[\"*\"],\"hardware\":[\"pwmenPwmcon\",\"pwmoePwmcon\",\"timerSelection\",\"dutyCycle\",\"pwmdcValue\",\"pwmpolPwmcon\",\"pwmPeriod\",\"pwmFrequency\",\"pwmResolution\",\"*\"],\"additional\":[\"pwmoe0Pwmaoe\",\"pwmoe1Pwmaoe\",\"pwmoe2Pwmaoe\",\"pwmoe3Pwmaoe\",\"*\"]},\"hasPins\":true,\"tabs\":{\"main\":\"Easy View\",\"register\":\"Register Initialization\"},\"help\":{\"url\":\"v2/keyword-lookup?keyword=scf-pic8-pwm-v2&redirect=true\",\"tooltip\":\"Click here to open documentation.\"},\"analytics\":{\"logAlwaysComps\":[\"pwmenPwmcon\",\"pwmFrequency\",\"pwmResolution\",\"pwmoePwmcon\"],\"logOnChangeComps\":[],\"compMapping\":{\"pwmenPwmcon\":\"PWM_Enable\",\"pwmFrequency\":\"PWM_Frequency\",\"pwmResolution\":\"PWM_Resolution\",\"pwmoePwmcon\":\"PWM_OutputEnable\"}},\"templates\":[{\"src\":\"output/pwm-v2.c.ftl\",\"dest\":\"pwm/src/${sourceFileName}\",\"generateWithHardware\":true},{\"src\":\"output/pwm-v2.h.ftl\",\"dest\":\"pwm/${headerFileName}\",\"generateWithHardware\":true}],\"imports\":{\"initializer_system\":{\"nodeModule\":{\"importName\":\"systemInit\",\"node\":\"@microchip/initializer-system\"},\"import\":{\"interfaceId\":{\"name\":\"initializer-system\",\"version\":\"^0\"}}},\"scf_pic8_pwm_v2\":{\"import\":{\"interfaceId\":{\"name\":\"scf-pic8-pwm-v2\",\"version\":\"1.0.0\"},\"isRequired\":true}},\"osc_clocks\":{\"import\":{\"interfaceId\":{\"name\":\"osc-clocks\",\"version\":\"^0\"}}},\"Timer\":{\"import\":{\"interfaceId\":{\"name\":\"timer-2-4-6-general-parameters\",\"version\":\"^0\"}}},\"pin_standard\":{\"import\":{\"interfaceId\":{\"name\":\"pin-standard\",\"version\":\"^0\"}}},\"device_meta\":{\"import\":{\"interfaceId\":{\"name\":\"device-meta\",\"version\":\"^1.*\"}}}},\"exports\":{\"pwm_general\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"pwm_general_parameters\",\"version\":\"0.1.0\"}}]}},\"softwareData\":{\"componentName\":{\"name\":\"componentName\",\"description\":\"Custom Name\",\"type\":\"string\",\"defaultValue\":\"PWM\",\"group\":\"software\",\"tabs\":[\"main\"],\"category\":\"software\",\"validation\":true},\"tmr2Dependency\":{\"name\":\"tmr2Dependency\",\"description\":\"Timer Dependency Selector\",\"category\":\"import\",\"type\":\"ComboBox\",\"group\":\"software\",\"tabs\":[\"main\"],\"importId\":\"Timer\"},\"timerSelection\":{\"name\":\"timerSelection\",\"description\":\"Select a Timer\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"defaultValue\":{\"value\":\"TMR2\",\"options\":[\"TMR2\",\"TMR4\",\"TMR6\"]},\"tabs\":[\"main\"],\"category\":\"software\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},\"dutyCycle\":{\"name\":\"dutyCycle\",\"description\":\"Duty Cycle (%)\",\"type\":\"number\",\"defaultValue\":50,\"group\":\"hardware\",\"validation\":true,\"tabs\":[\"main\"],\"category\":\"software\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${instance}DC&redirect=true\"}},\"pwmdcValue\":{\"name\":\"pwmdcValue\",\"description\":\"PWMDC Value\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${instance}DC&redirect=true\"}},\"pwmPeriod\":{\"name\":\"pwmPeriod\",\"description\":\"PWM Period (s)\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"},\"pwmFrequency\":{\"name\":\"pwmFrequency\",\"description\":\"PWM Frequency (Hz)\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"},\"pwmResolution\":{\"name\":\"pwmResolution\",\"description\":\"PWM Resolution (bits)\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"}},\"peripherals\":[{\"interfaceId\":{\"name\":\"scf-pic8-pwm-v2\",\"version\":\"1.0.0\"},\"registers\":{\"PWMTMRS\":[{\"setting\":\"CTSEL\",\"name\":\"ctselPwmtmrs\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]}],\"CCPTMRS1\":[{\"setting\":\"CTSEL\",\"name\":\"ctselCcptmrs1\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}],\"CCPTMRS\":[{\"setting\":\"CTSEL\",\"name\":\"ctselCcptmrs\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]}],\"PWMCON\":[{\"setting\":\"PWMPOL\",\"name\":\"pwmpolPwmcon\",\"description\":\"PWM Polarity\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"PWMOE\",\"name\":\"pwmoePwmcon\",\"category\":\"hardware\",\"description\":\"Output Enable\",\"type\":\"boolean\",\"group\":\"hardware\",\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"PWMOUT\",\"name\":\"pwmoutPwmcon\",\"description\":\"Insert Description Here\",\"type\":\"boolean\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"PWMEN\",\"name\":\"pwmenPwmcon\",\"description\":\"PWM Enable\",\"type\":\"boolean\",\"group\":\"hardware\",\"overrideDefaultValue\":\"enabled\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"PWMAOE\":[{\"setting\":\"PWMOE0\",\"name\":\"pwmoe0Pwmaoe\",\"category\":\"hardware\",\"description\":\"Enable Additional Output 1\",\"type\":\"boolean\",\"group\":\"additional\",\"tabs\":[\"main\"]},{\"setting\":\"PWMOE1\",\"name\":\"pwmoe1Pwmaoe\",\"category\":\"hardware\",\"description\":\"Enable Additional Output 2\",\"type\":\"boolean\",\"group\":\"additional\",\"tabs\":[\"main\"]},{\"setting\":\"PWMOE2\",\"name\":\"pwmoe2Pwmaoe\",\"category\":\"hardware\",\"description\":\"Enable Additional Output 3\",\"type\":\"boolean\",\"group\":\"additional\",\"tabs\":[\"main\"]},{\"setting\":\"PWMOE3\",\"name\":\"pwmoe3Pwmaoe\",\"category\":\"hardware\",\"description\":\"Enable Additional Output 4\",\"type\":\"boolean\",\"group\":\"additional\",\"tabs\":[\"main\"]}],\"PWMDCH\":[{\"setting\":\"PWMDCH\",\"name\":\"pwmdchPwmdch\",\"description\":\"Insert Description Here\",\"type\":\"string\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}],\"PWMDCL\":[{\"setting\":\"PWMDCL\",\"name\":\"pwmdclPwmdcl\",\"description\":\"Insert Description Here\",\"type\":\"string\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}]}}]}");
|
|
3910
3912
|
|
|
3911
3913
|
/***/ }),
|
|
3912
3914
|
|