@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/Changelog.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
-
## [4.2.
|
|
4
|
+
## [4.2.11] - 2023-09-27
|
|
5
5
|
|
|
6
6
|
### New Features
|
|
7
|
-
- **CC8SCRIP-
|
|
7
|
+
- **CC8SCRIP-18261** :- Supported Alternative Pin Functionality (APFCON) for PIC12/PIC16 devices
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
## [4.2.
|
|
10
|
+
## [4.2.10] - 2023-07-13
|
|
11
11
|
|
|
12
12
|
### New Features
|
|
13
|
-
- **CC8SCRIP-
|
|
13
|
+
- **CC8SCRIP-16805** :- Add support for PIC12/16(L)F150x device family
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
## [4.2.
|
|
16
|
+
## [4.2.9] - 2023-06-29
|
|
17
17
|
|
|
18
18
|
### New Features
|
|
19
|
-
- **CC8SCRIP-
|
|
19
|
+
- **CC8SCRIP-13806** :- PIC16LF156x : Support for PWM module - Implementation for PWMAOE
|
package/Readme.md
CHANGED
|
@@ -18,19 +18,19 @@ This driver generates the following files:
|
|
|
18
18
|
# Changelog
|
|
19
19
|
All notable changes to this project will be documented in this file.
|
|
20
20
|
|
|
21
|
-
## [4.2.
|
|
21
|
+
## [4.2.11] - 2023-09-27
|
|
22
22
|
|
|
23
23
|
### New Features
|
|
24
|
-
- **CC8SCRIP-
|
|
24
|
+
- **CC8SCRIP-18261** :- Supported Alternative Pin Functionality (APFCON) for PIC12/PIC16 devices
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
## [4.2.
|
|
27
|
+
## [4.2.10] - 2023-07-13
|
|
28
28
|
|
|
29
29
|
### New Features
|
|
30
|
-
- **CC8SCRIP-
|
|
30
|
+
- **CC8SCRIP-16805** :- Add support for PIC12/16(L)F150x device family
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
## [4.2.
|
|
33
|
+
## [4.2.9] - 2023-06-29
|
|
34
34
|
|
|
35
35
|
### New Features
|
|
36
|
-
- **CC8SCRIP-
|
|
36
|
+
- **CC8SCRIP-13806** :- PIC16LF156x : Support for PWM module - Implementation for PWMAOE
|
package/output/autoCreator.js
CHANGED
|
@@ -536,10 +536,10 @@ var filterModeOptions = function filterModeOptions(options, component, masterCom
|
|
|
536
536
|
|
|
537
537
|
var getProcessedHandle = function getProcessedHandle(handle, payload) {
|
|
538
538
|
if (handle) {
|
|
539
|
-
var _ref, _ref2, _ref3, _payload$customName;
|
|
539
|
+
var _ref, _ref2, _ref3, _payload$customName, _handle;
|
|
540
540
|
|
|
541
541
|
handle = _objectSpread(_objectSpread({}, handle), {}, {
|
|
542
|
-
label: (_ref = (_ref2 = (_ref3 = (_payload$customName = payload === null || payload === void 0 ? void 0 : payload.customName) !== null && _payload$customName !== void 0 ? _payload$customName :
|
|
542
|
+
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
|
|
543
543
|
});
|
|
544
544
|
}
|
|
545
545
|
|
|
@@ -924,6 +924,7 @@ var QueryAdapterKey;
|
|
|
924
924
|
QueryAdapterKey["ALLPINS"] = "allpins";
|
|
925
925
|
QueryAdapterKey["ALLPINS_FOR_ATTRIBS"] = "allpins_for_attribs";
|
|
926
926
|
QueryAdapterKey["PPS"] = "pps";
|
|
927
|
+
QueryAdapterKey["APFCON"] = "apfcon";
|
|
927
928
|
QueryAdapterKey["PORTMUX"] = "portmux";
|
|
928
929
|
QueryAdapterKey["HASPPS"] = "hasPPS";
|
|
929
930
|
})(QueryAdapterKey = exports.QueryAdapterKey || (exports.QueryAdapterKey = {}));
|
|
@@ -3181,8 +3182,7 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
3181
3182
|
|
|
3182
3183
|
_defineProperty(this, "getPinstandardArgs", function () {
|
|
3183
3184
|
var args = {
|
|
3184
|
-
queryAdapters: ["
|
|
3185
|
-
queryAdapterMap: _defineProperty({}, _microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_7__["QueryAdapterKey"].ALLPINS, "^PWM[0-9]{0,1}$")
|
|
3185
|
+
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]
|
|
3186
3186
|
};
|
|
3187
3187
|
return args;
|
|
3188
3188
|
});
|
|
@@ -3294,14 +3294,12 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
3294
3294
|
});
|
|
3295
3295
|
|
|
3296
3296
|
_defineProperty(this, "getMyAlerts", function () {
|
|
3297
|
-
var _this$dataModel$getCo2,
|
|
3297
|
+
var _this$dataModel$getCo2, _this$dataModel$getAs;
|
|
3298
3298
|
|
|
3299
3299
|
var alerts = [];
|
|
3300
3300
|
var timerSelection = (_this$dataModel$getCo2 = _this.dataModel.getComponentValue("timerSelection")) !== null && _this$dataModel$getCo2 !== void 0 ? _this$dataModel$getCo2 : "";
|
|
3301
|
-
var groupmatch = (_timerSelection$match = timerSelection.match(/^TMR([0-9])$/)) !== null && _timerSelection$match !== void 0 ? _timerSelection$match : "";
|
|
3302
|
-
var timersuffix = (groupmatch === null || groupmatch === void 0 ? void 0 : groupmatch.length) > 1 ? groupmatch[1] : "";
|
|
3303
3301
|
|
|
3304
|
-
if (_this.dataModel.getAssignedImport("Timer")
|
|
3302
|
+
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) {
|
|
3305
3303
|
alerts.push({
|
|
3306
3304
|
text: "Please select ".concat(timerSelection, " as the Timer Dependency."),
|
|
3307
3305
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning
|
|
@@ -3389,10 +3387,10 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
3389
3387
|
});
|
|
3390
3388
|
|
|
3391
3389
|
_defineProperty(this, "ctselTimerSetting", function () {
|
|
3392
|
-
var _this$dataModel$getCo4, _timerSelection$
|
|
3390
|
+
var _this$dataModel$getCo4, _timerSelection$match;
|
|
3393
3391
|
|
|
3394
3392
|
var timerSelection = (_this$dataModel$getCo4 = _this.dataModel.getComponentValue("timerSelection")) !== null && _this$dataModel$getCo4 !== void 0 ? _this$dataModel$getCo4 : "";
|
|
3395
|
-
var groupmatch = (_timerSelection$
|
|
3393
|
+
var groupmatch = (_timerSelection$match = timerSelection.match(/^TMR([0-9])$/)) !== null && _timerSelection$match !== void 0 ? _timerSelection$match : "";
|
|
3396
3394
|
|
|
3397
3395
|
if (groupmatch.length > 1) {
|
|
3398
3396
|
var _this$dataModel$getHa3;
|
|
@@ -3526,19 +3524,11 @@ var getCompletePinData = function getCompletePinData(appModel) {
|
|
|
3526
3524
|
}; // overrides pin data for a particular row based on model.
|
|
3527
3525
|
|
|
3528
3526
|
function getRowData(appModel, rowData) {
|
|
3529
|
-
var _appModel$getName, _appModel$getImportVa, _appModel$getComponen, _appModel$getComponen2, _appModel$getComponen3, _appModel$getComponen4;
|
|
3527
|
+
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;
|
|
3530
3528
|
|
|
3531
3529
|
var moduleName = (_appModel$getName = appModel.getName()) !== null && _appModel$getName !== void 0 ? _appModel$getName : "PWM";
|
|
3532
|
-
var
|
|
3533
|
-
var
|
|
3534
|
-
var pinName = getPinName(modulePins, rowData.filter.aliasReEx);
|
|
3535
|
-
var pinBehaviour = getpinBehaviour(allPinsData, moduleName, pinName);
|
|
3536
|
-
var isPPS = pinBehaviour === "pps";
|
|
3537
|
-
var isAPFCON = pinBehaviour === "apfcon";
|
|
3538
|
-
|
|
3539
|
-
if (pinName === "") {
|
|
3540
|
-
return undefined;
|
|
3541
|
-
}
|
|
3530
|
+
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];
|
|
3531
|
+
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];
|
|
3542
3532
|
|
|
3543
3533
|
if (rowData.name === "out") {
|
|
3544
3534
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
@@ -3548,10 +3538,10 @@ function getRowData(appModel, rowData) {
|
|
|
3548
3538
|
module: moduleName,
|
|
3549
3539
|
aliasReEx: "^".concat(moduleName, "(OUT){0,1}$")
|
|
3550
3540
|
},
|
|
3551
|
-
behaviour:
|
|
3541
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3552
3542
|
});
|
|
3553
3543
|
|
|
3554
|
-
if (appModel.isComponentValue("pwmoePwmcon") === true) {
|
|
3544
|
+
if (appModel.isComponentValue("pwmoePwmcon") === true && getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx) === _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK) {
|
|
3555
3545
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3556
3546
|
behaviourMeta: {
|
|
3557
3547
|
lockPinRegEx: "^".concat(moduleName, "(OUT){0,1}$")
|
|
@@ -3559,13 +3549,17 @@ function getRowData(appModel, rowData) {
|
|
|
3559
3549
|
});
|
|
3560
3550
|
}
|
|
3561
3551
|
} else if (rowData.name === "pwmx0") {
|
|
3552
|
+
if (appModel.getComponentValue("pwmoe0Pwmaoe") === undefined) {
|
|
3553
|
+
return undefined;
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3562
3556
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3563
3557
|
module: moduleName,
|
|
3564
3558
|
"function": moduleName + "0OUT",
|
|
3565
3559
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3566
3560
|
module: moduleName
|
|
3567
3561
|
}),
|
|
3568
|
-
behaviour:
|
|
3562
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3569
3563
|
});
|
|
3570
3564
|
|
|
3571
3565
|
if (appModel.isComponentValue("pwmoe0Pwmaoe") === true) {
|
|
@@ -3576,13 +3570,17 @@ function getRowData(appModel, rowData) {
|
|
|
3576
3570
|
});
|
|
3577
3571
|
}
|
|
3578
3572
|
} else if (rowData.name === "pwmx1") {
|
|
3573
|
+
if (appModel.getComponentValue("pwmoe1Pwmaoe") === undefined) {
|
|
3574
|
+
return undefined;
|
|
3575
|
+
}
|
|
3576
|
+
|
|
3579
3577
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3580
3578
|
module: moduleName,
|
|
3581
3579
|
"function": moduleName + "1OUT",
|
|
3582
3580
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3583
3581
|
module: moduleName
|
|
3584
3582
|
}),
|
|
3585
|
-
behaviour:
|
|
3583
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3586
3584
|
});
|
|
3587
3585
|
|
|
3588
3586
|
if (appModel.isComponentValue("pwmoe1Pwmaoe") === true) {
|
|
@@ -3593,13 +3591,17 @@ function getRowData(appModel, rowData) {
|
|
|
3593
3591
|
});
|
|
3594
3592
|
}
|
|
3595
3593
|
} else if (rowData.name === "pwmx2") {
|
|
3594
|
+
if (appModel.getComponentValue("pwmoe2Pwmaoe") === undefined) {
|
|
3595
|
+
return undefined;
|
|
3596
|
+
}
|
|
3597
|
+
|
|
3596
3598
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3597
3599
|
module: moduleName,
|
|
3598
3600
|
"function": moduleName + "2OUT",
|
|
3599
3601
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3600
3602
|
module: moduleName
|
|
3601
3603
|
}),
|
|
3602
|
-
behaviour:
|
|
3604
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3603
3605
|
});
|
|
3604
3606
|
|
|
3605
3607
|
if (appModel.isComponentValue("pwmoe2Pwmaoe") === true) {
|
|
@@ -3610,13 +3612,17 @@ function getRowData(appModel, rowData) {
|
|
|
3610
3612
|
});
|
|
3611
3613
|
}
|
|
3612
3614
|
} else if (rowData.name === "pwmx3") {
|
|
3615
|
+
if (appModel.getComponentValue("pwmoe3Pwmaoe") === undefined) {
|
|
3616
|
+
return undefined;
|
|
3617
|
+
}
|
|
3618
|
+
|
|
3613
3619
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3614
3620
|
module: moduleName,
|
|
3615
3621
|
"function": moduleName + "3OUT",
|
|
3616
3622
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3617
3623
|
module: moduleName
|
|
3618
3624
|
}),
|
|
3619
|
-
behaviour:
|
|
3625
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3620
3626
|
});
|
|
3621
3627
|
|
|
3622
3628
|
if (appModel.isComponentValue("pwmoe3Pwmaoe") === true) {
|
|
@@ -3629,33 +3635,40 @@ function getRowData(appModel, rowData) {
|
|
|
3629
3635
|
}
|
|
3630
3636
|
|
|
3631
3637
|
var rowActions = [];
|
|
3632
|
-
var
|
|
3633
|
-
var
|
|
3634
|
-
var
|
|
3635
|
-
var
|
|
3638
|
+
var pwmxRegcomponent = (_appModel$getComponen = appModel.getComponent("pwmoePwmcon")) === null || _appModel$getComponen === void 0 ? void 0 : _appModel$getComponen.component;
|
|
3639
|
+
var pwmx0Regcomponent = (_appModel$getComponen2 = appModel.getComponent("pwmoe0Pwmaoe")) === null || _appModel$getComponen2 === void 0 ? void 0 : _appModel$getComponen2.component;
|
|
3640
|
+
var pwmx1Regcomponent = (_appModel$getComponen3 = appModel.getComponent("pwmoe1Pwmaoe")) === null || _appModel$getComponen3 === void 0 ? void 0 : _appModel$getComponen3.component;
|
|
3641
|
+
var pwmx2Regcomponent = (_appModel$getComponen4 = appModel.getComponent("pwmoe2Pwmaoe")) === null || _appModel$getComponen4 === void 0 ? void 0 : _appModel$getComponen4.component;
|
|
3642
|
+
var pwmx3Regcomponent = (_appModel$getComponen5 = appModel.getComponent("pwmoe3Pwmaoe")) === null || _appModel$getComponen5 === void 0 ? void 0 : _appModel$getComponen5.component;
|
|
3636
3643
|
|
|
3637
|
-
if (
|
|
3644
|
+
if (pwmxRegcomponent && getPinBehaviour(ppsData, apfconData, "^".concat(moduleName, "(OUT){0,1}$")) === _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK) {
|
|
3638
3645
|
var _appModel$getPCPHelpe;
|
|
3639
3646
|
|
|
3640
|
-
rowActions = rowActions.concat((_appModel$getPCPHelpe = appModel.getPCPHelper) === null || _appModel$getPCPHelpe === void 0 ? void 0 : _appModel$getPCPHelpe.call(appModel).stateActionBuilder(rowData).rowWithName("
|
|
3647
|
+
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());
|
|
3641
3648
|
}
|
|
3642
3649
|
|
|
3643
|
-
if (
|
|
3650
|
+
if (pwmx0Regcomponent) {
|
|
3644
3651
|
var _appModel$getPCPHelpe2;
|
|
3645
3652
|
|
|
3646
|
-
rowActions = rowActions.concat((_appModel$getPCPHelpe2 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe2 === void 0 ? void 0 : _appModel$getPCPHelpe2.call(appModel).stateActionBuilder(rowData).rowWithName("
|
|
3653
|
+
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());
|
|
3647
3654
|
}
|
|
3648
3655
|
|
|
3649
|
-
if (
|
|
3656
|
+
if (pwmx1Regcomponent) {
|
|
3650
3657
|
var _appModel$getPCPHelpe3;
|
|
3651
3658
|
|
|
3652
|
-
rowActions = rowActions.concat((_appModel$getPCPHelpe3 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe3 === void 0 ? void 0 : _appModel$getPCPHelpe3.call(appModel).stateActionBuilder(rowData).rowWithName("
|
|
3659
|
+
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());
|
|
3653
3660
|
}
|
|
3654
3661
|
|
|
3655
|
-
if (
|
|
3662
|
+
if (pwmx2Regcomponent) {
|
|
3656
3663
|
var _appModel$getPCPHelpe4;
|
|
3657
3664
|
|
|
3658
|
-
rowActions = rowActions.concat((_appModel$getPCPHelpe4 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe4 === void 0 ? void 0 : _appModel$getPCPHelpe4.call(appModel).stateActionBuilder(rowData).rowWithName("
|
|
3665
|
+
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());
|
|
3666
|
+
}
|
|
3667
|
+
|
|
3668
|
+
if (pwmx3Regcomponent) {
|
|
3669
|
+
var _appModel$getPCPHelpe5;
|
|
3670
|
+
|
|
3671
|
+
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());
|
|
3659
3672
|
}
|
|
3660
3673
|
|
|
3661
3674
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
@@ -3664,48 +3677,37 @@ function getRowData(appModel, rowData) {
|
|
|
3664
3677
|
return rowData;
|
|
3665
3678
|
}
|
|
3666
3679
|
|
|
3667
|
-
var
|
|
3668
|
-
var
|
|
3680
|
+
var getPinBehaviour = function getPinBehaviour(ppsPins, apfconPins, pinRegEx) {
|
|
3681
|
+
var tempPinBehaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK;
|
|
3669
3682
|
|
|
3670
|
-
|
|
3671
|
-
var
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3683
|
+
if (ppsPins !== undefined) {
|
|
3684
|
+
for (var ppsPin in ppsPins) {
|
|
3685
|
+
if (ppsPin === "pps_out") {
|
|
3686
|
+
for (var ppsOut in ppsPins["pps_out"]) {
|
|
3687
|
+
if (ppsOut.match(new RegExp(pinRegEx, "ig"))) {
|
|
3688
|
+
tempPinBehaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS;
|
|
3689
|
+
break;
|
|
3690
|
+
}
|
|
3691
|
+
}
|
|
3692
|
+
} else {
|
|
3693
|
+
if (ppsPin.match(new RegExp(pinRegEx, "ig"))) {
|
|
3694
|
+
tempPinBehaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS;
|
|
3695
|
+
break;
|
|
3696
|
+
}
|
|
3678
3697
|
}
|
|
3679
3698
|
}
|
|
3680
3699
|
}
|
|
3681
3700
|
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
if (pin.match(new RegExp(regEx, "g"))) {
|
|
3689
|
-
pinName = pin;
|
|
3690
|
-
}
|
|
3691
|
-
});
|
|
3692
|
-
return pinName;
|
|
3693
|
-
};
|
|
3694
|
-
|
|
3695
|
-
var getpinBehaviour = function getpinBehaviour(allPins, moduleName, pinName) {
|
|
3696
|
-
for (var portPin in allPins) {
|
|
3697
|
-
var _allPins$portPin2, _allPins$portPin2$mod;
|
|
3698
|
-
|
|
3699
|
-
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];
|
|
3700
|
-
|
|
3701
|
-
if (pinData === null || pinData === void 0 ? void 0 : pinData["pps"]) {
|
|
3702
|
-
return "pps";
|
|
3703
|
-
} else if (pinData === null || pinData === void 0 ? void 0 : pinData["apfcon"]) {
|
|
3704
|
-
return "apfcon";
|
|
3701
|
+
if (apfconPins !== undefined) {
|
|
3702
|
+
for (var apfconPin in apfconPins) {
|
|
3703
|
+
if (apfconPin.match(new RegExp(pinRegEx, "ig"))) {
|
|
3704
|
+
tempPinBehaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].APFCON;
|
|
3705
|
+
break;
|
|
3706
|
+
}
|
|
3705
3707
|
}
|
|
3706
3708
|
}
|
|
3707
3709
|
|
|
3708
|
-
return
|
|
3710
|
+
return tempPinBehaviour;
|
|
3709
3711
|
};
|
|
3710
3712
|
|
|
3711
3713
|
/***/ }),
|
|
@@ -3904,7 +3906,7 @@ var Interface = {
|
|
|
3904
3906
|
/*! exports provided: moduleName, deviceType, booleanValues, UIGroups, UIOrder, hasPins, tabs, help, analytics, templates, imports, exports, softwareData, peripherals, default */
|
|
3905
3907
|
/***/ (function(module) {
|
|
3906
3908
|
|
|
3907
|
-
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
|
|
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\"}}},\"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\"}]}}]}");
|
|
3908
3910
|
|
|
3909
3911
|
/***/ }),
|
|
3910
3912
|
|