@mchp-mcc/scf-pic8-pwm-v2 4.2.9 → 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 +7 -9
- package/Readme.md +7 -9
- package/output/autoCreator.js +85 -76
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +85 -76
- package/output/autoProcessor.js.map +1 -1
- package/output/creator.js +512 -103
- package/output/creator.js.map +1 -1
- package/output/nullPrototype.json +5 -5
- package/output/processor.js +512 -103
- package/output/processor.js.map +1 -1
- package/package.json +19 -18
- package/src/CreatorFunctions.ts +0 -17
- package/src/DerivedData.test.ts +0 -654
- package/src/DerivedData.ts +0 -346
- package/src/GeneratorModel.test.tsx +0 -39
- package/src/GeneratorModel.tsx +0 -65
- package/src/PinsLogic.test.ts +0 -2838
- package/src/PinsLogic.ts +0 -213
- package/src/PwmCalculator.test.tsx +0 -113
- package/src/PwmCalculator.tsx +0 -67
- package/src/catalog.json +0 -23
- package/src/interfaces/pwm_general_parameters.test.tsx +0 -40
- package/src/interfaces/pwm_general_parameters.tsx +0 -121
- package/src/moduleConfig.json +0 -433
- package/src/pinsdata.json +0 -54
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,20 +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$
|
|
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
|
-
var pwminstancename = (_appModel$getHardware = appModel.getHardware()) === null || _appModel$getHardware === void 0 ? void 0 : (_appModel$getHardware2 = _appModel$getHardware.getPeripheral()) === null || _appModel$getHardware2 === void 0 ? void 0 : _appModel$getHardware2.instance;
|
|
3534
3531
|
var moduleName = (_appModel$getName = appModel.getName()) !== null && _appModel$getName !== void 0 ? _appModel$getName : "PWM";
|
|
3535
|
-
var
|
|
3536
|
-
var
|
|
3537
|
-
var pinName = getPinName(modulePins, rowData.filter.aliasReEx);
|
|
3538
|
-
var pinBehaviour = getpinBehaviour(allPinsData, moduleName, pinName);
|
|
3539
|
-
var isPPS = pinBehaviour === "pps";
|
|
3540
|
-
var isAPFCON = pinBehaviour === "apfcon";
|
|
3541
|
-
|
|
3542
|
-
if (pinName === "") {
|
|
3543
|
-
return undefined;
|
|
3544
|
-
}
|
|
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];
|
|
3545
3534
|
|
|
3546
3535
|
if (rowData.name === "out") {
|
|
3547
3536
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
@@ -3549,18 +3538,30 @@ function getRowData(appModel, rowData) {
|
|
|
3549
3538
|
"function": moduleName + "OUT",
|
|
3550
3539
|
filter: {
|
|
3551
3540
|
module: moduleName,
|
|
3552
|
-
aliasReEx: "^
|
|
3541
|
+
aliasReEx: "^".concat(moduleName, "(OUT){0,1}$")
|
|
3553
3542
|
},
|
|
3554
|
-
behaviour:
|
|
3543
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3555
3544
|
});
|
|
3545
|
+
|
|
3546
|
+
if (appModel.isComponentValue("pwmoePwmcon") === true && getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx) === _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK) {
|
|
3547
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3548
|
+
behaviourMeta: {
|
|
3549
|
+
lockPinRegEx: "^".concat(moduleName, "(OUT){0,1}$")
|
|
3550
|
+
}
|
|
3551
|
+
});
|
|
3552
|
+
}
|
|
3556
3553
|
} else if (rowData.name === "pwmx0") {
|
|
3554
|
+
if (appModel.getComponentValue("pwmoe0Pwmaoe") === undefined) {
|
|
3555
|
+
return undefined;
|
|
3556
|
+
}
|
|
3557
|
+
|
|
3557
3558
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3558
3559
|
module: moduleName,
|
|
3559
3560
|
"function": moduleName + "0OUT",
|
|
3560
3561
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3561
3562
|
module: moduleName
|
|
3562
3563
|
}),
|
|
3563
|
-
behaviour:
|
|
3564
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3564
3565
|
});
|
|
3565
3566
|
|
|
3566
3567
|
if (appModel.isComponentValue("pwmoe0Pwmaoe") === true) {
|
|
@@ -3571,13 +3572,17 @@ function getRowData(appModel, rowData) {
|
|
|
3571
3572
|
});
|
|
3572
3573
|
}
|
|
3573
3574
|
} else if (rowData.name === "pwmx1") {
|
|
3575
|
+
if (appModel.getComponentValue("pwmoe1Pwmaoe") === undefined) {
|
|
3576
|
+
return undefined;
|
|
3577
|
+
}
|
|
3578
|
+
|
|
3574
3579
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3575
3580
|
module: moduleName,
|
|
3576
3581
|
"function": moduleName + "1OUT",
|
|
3577
3582
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3578
3583
|
module: moduleName
|
|
3579
3584
|
}),
|
|
3580
|
-
behaviour:
|
|
3585
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3581
3586
|
});
|
|
3582
3587
|
|
|
3583
3588
|
if (appModel.isComponentValue("pwmoe1Pwmaoe") === true) {
|
|
@@ -3588,13 +3593,17 @@ function getRowData(appModel, rowData) {
|
|
|
3588
3593
|
});
|
|
3589
3594
|
}
|
|
3590
3595
|
} else if (rowData.name === "pwmx2") {
|
|
3596
|
+
if (appModel.getComponentValue("pwmoe2Pwmaoe") === undefined) {
|
|
3597
|
+
return undefined;
|
|
3598
|
+
}
|
|
3599
|
+
|
|
3591
3600
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3592
3601
|
module: moduleName,
|
|
3593
3602
|
"function": moduleName + "2OUT",
|
|
3594
3603
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3595
3604
|
module: moduleName
|
|
3596
3605
|
}),
|
|
3597
|
-
behaviour:
|
|
3606
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3598
3607
|
});
|
|
3599
3608
|
|
|
3600
3609
|
if (appModel.isComponentValue("pwmoe2Pwmaoe") === true) {
|
|
@@ -3605,13 +3614,17 @@ function getRowData(appModel, rowData) {
|
|
|
3605
3614
|
});
|
|
3606
3615
|
}
|
|
3607
3616
|
} else if (rowData.name === "pwmx3") {
|
|
3617
|
+
if (appModel.getComponentValue("pwmoe3Pwmaoe") === undefined) {
|
|
3618
|
+
return undefined;
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3608
3621
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3609
3622
|
module: moduleName,
|
|
3610
3623
|
"function": moduleName + "3OUT",
|
|
3611
3624
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3612
3625
|
module: moduleName
|
|
3613
3626
|
}),
|
|
3614
|
-
behaviour:
|
|
3627
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3615
3628
|
});
|
|
3616
3629
|
|
|
3617
3630
|
if (appModel.isComponentValue("pwmoe3Pwmaoe") === true) {
|
|
@@ -3624,33 +3637,40 @@ function getRowData(appModel, rowData) {
|
|
|
3624
3637
|
}
|
|
3625
3638
|
|
|
3626
3639
|
var rowActions = [];
|
|
3627
|
-
var
|
|
3628
|
-
var
|
|
3629
|
-
var
|
|
3630
|
-
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;
|
|
3631
3645
|
|
|
3632
|
-
if (
|
|
3646
|
+
if (pwmxRegcomponent && getPinBehaviour(ppsData, apfconData, "^".concat(moduleName, "(OUT){0,1}$")) === _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK) {
|
|
3633
3647
|
var _appModel$getPCPHelpe;
|
|
3634
3648
|
|
|
3635
|
-
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());
|
|
3636
3650
|
}
|
|
3637
3651
|
|
|
3638
|
-
if (
|
|
3652
|
+
if (pwmx0Regcomponent) {
|
|
3639
3653
|
var _appModel$getPCPHelpe2;
|
|
3640
3654
|
|
|
3641
|
-
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());
|
|
3642
3656
|
}
|
|
3643
3657
|
|
|
3644
|
-
if (
|
|
3658
|
+
if (pwmx1Regcomponent) {
|
|
3645
3659
|
var _appModel$getPCPHelpe3;
|
|
3646
3660
|
|
|
3647
|
-
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());
|
|
3648
3662
|
}
|
|
3649
3663
|
|
|
3650
|
-
if (
|
|
3664
|
+
if (pwmx2Regcomponent) {
|
|
3651
3665
|
var _appModel$getPCPHelpe4;
|
|
3652
3666
|
|
|
3653
|
-
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());
|
|
3654
3674
|
}
|
|
3655
3675
|
|
|
3656
3676
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
@@ -3659,48 +3679,37 @@ function getRowData(appModel, rowData) {
|
|
|
3659
3679
|
return rowData;
|
|
3660
3680
|
}
|
|
3661
3681
|
|
|
3662
|
-
var
|
|
3663
|
-
var
|
|
3682
|
+
var getPinBehaviour = function getPinBehaviour(ppsPins, apfconPins, pinRegEx) {
|
|
3683
|
+
var tempPinBehaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK;
|
|
3664
3684
|
|
|
3665
|
-
|
|
3666
|
-
var
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
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
|
+
}
|
|
3673
3699
|
}
|
|
3674
3700
|
}
|
|
3675
3701
|
}
|
|
3676
3702
|
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
if (pin.match(new RegExp(regEx, "g"))) {
|
|
3684
|
-
pinName = pin;
|
|
3685
|
-
}
|
|
3686
|
-
});
|
|
3687
|
-
return pinName;
|
|
3688
|
-
};
|
|
3689
|
-
|
|
3690
|
-
var getpinBehaviour = function getpinBehaviour(allPins, moduleName, pinName) {
|
|
3691
|
-
for (var portPin in allPins) {
|
|
3692
|
-
var _allPins$portPin2, _allPins$portPin2$mod;
|
|
3693
|
-
|
|
3694
|
-
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];
|
|
3695
|
-
|
|
3696
|
-
if (pinData === null || pinData === void 0 ? void 0 : pinData["pps"]) {
|
|
3697
|
-
return "pps";
|
|
3698
|
-
} else if (pinData === null || pinData === void 0 ? void 0 : pinData["apfcon"]) {
|
|
3699
|
-
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
|
+
}
|
|
3700
3709
|
}
|
|
3701
3710
|
}
|
|
3702
3711
|
|
|
3703
|
-
return
|
|
3712
|
+
return tempPinBehaviour;
|
|
3704
3713
|
};
|
|
3705
3714
|
|
|
3706
3715
|
/***/ }),
|
|
@@ -3899,7 +3908,7 @@ var Interface = {
|
|
|
3899
3908
|
/*! exports provided: moduleName, deviceType, booleanValues, UIGroups, UIOrder, hasPins, tabs, help, analytics, templates, imports, exports, softwareData, peripherals, default */
|
|
3900
3909
|
/***/ (function(module) {
|
|
3901
3910
|
|
|
3902
|
-
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\":[\"*\"]},\"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\"],\"logOnChangeComps\":[],\"compMapping\":{\"pwmenPwmcon\":\"PWM_Enable\",\"pwmFrequency\":\"PWM_Frequency\",\"pwmResolution\":\"PWM_Resolution\"}},\"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\"}]}}]}");
|
|
3903
3912
|
|
|
3904
3913
|
/***/ }),
|
|
3905
3914
|
|
|
@@ -3910,7 +3919,7 @@ module.exports = JSON.parse("{\"moduleName\":\"PWM\",\"deviceType\":\"PIC\",\"bo
|
|
|
3910
3919
|
/*! exports provided: rows, default */
|
|
3911
3920
|
/***/ (function(module) {
|
|
3912
3921
|
|
|
3913
|
-
module.exports = JSON.parse("{\"rows\":[{\"name\":\"out\",\"module\":\"
|
|
3922
|
+
module.exports = JSON.parse("{\"rows\":[{\"name\":\"out\",\"module\":\"PWM1\",\"function\":\"PWM1\",\"direction\":\"output\",\"filter\":{\"module\":\"PWM1\",\"aliasReEx\":\"^PWM\\\\d(OUT){0,1}$\"},\"behaviour\":\"PPS\"},{\"name\":\"pwmx0\",\"module\":\"PWM1\",\"function\":\"PWM10OUT\",\"direction\":\"output\",\"filter\":{\"module\":\"PWM1\",\"aliasReEx\":\"^PWM[0-9]0(OUT){0,1}$\"},\"behaviour\":\"PPS\"},{\"name\":\"pwmx1\",\"module\":\"PWM1\",\"function\":\"PWM10OUT\",\"direction\":\"output\",\"filter\":{\"module\":\"PWM1\",\"aliasReEx\":\"^PWM[0-9]1(OUT){0,1}$\"},\"behaviour\":\"PPS\"},{\"name\":\"pwmx2\",\"module\":\"PWM1\",\"function\":\"PWM10OUT\",\"direction\":\"output\",\"filter\":{\"module\":\"PWM1\",\"aliasReEx\":\"^PWM[0-9]2(OUT){0,1}$\"},\"behaviour\":\"PPS\"},{\"name\":\"pwmx3\",\"module\":\"PWM1\",\"function\":\"PWM10OUT\",\"direction\":\"output\",\"filter\":{\"module\":\"PWM1\",\"aliasReEx\":\"^PWM[0-9]3(OUT){0,1}$\"},\"behaviour\":\"PPS\"}]}");
|
|
3914
3923
|
|
|
3915
3924
|
/***/ })
|
|
3916
3925
|
|