@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/Changelog.md
CHANGED
|
@@ -1,21 +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
|
-
###
|
|
19
|
-
- **CC8SCRIP-
|
|
20
|
-
- **CC8SCRIP-13401** :- Added support for timer dependency selector in the UI
|
|
21
|
-
- **CC8SCRIP-12947** :- PWM output not seen when multiple instances are used.
|
|
18
|
+
### New Features
|
|
19
|
+
- **CC8SCRIP-13806** :- PIC16LF156x : Support for PWM module - Implementation for PWMAOE
|
package/Readme.md
CHANGED
|
@@ -18,21 +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
|
-
###
|
|
36
|
-
- **CC8SCRIP-
|
|
37
|
-
- **CC8SCRIP-13401** :- Added support for timer dependency selector in the UI
|
|
38
|
-
- **CC8SCRIP-12947** :- PWM output not seen when multiple instances are used.
|
|
35
|
+
### New Features
|
|
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,20 +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$
|
|
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
|
-
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;
|
|
3532
3529
|
var moduleName = (_appModel$getName = appModel.getName()) !== null && _appModel$getName !== void 0 ? _appModel$getName : "PWM";
|
|
3533
|
-
var
|
|
3534
|
-
var
|
|
3535
|
-
var pinName = getPinName(modulePins, rowData.filter.aliasReEx);
|
|
3536
|
-
var pinBehaviour = getpinBehaviour(allPinsData, moduleName, pinName);
|
|
3537
|
-
var isPPS = pinBehaviour === "pps";
|
|
3538
|
-
var isAPFCON = pinBehaviour === "apfcon";
|
|
3539
|
-
|
|
3540
|
-
if (pinName === "") {
|
|
3541
|
-
return undefined;
|
|
3542
|
-
}
|
|
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];
|
|
3543
3532
|
|
|
3544
3533
|
if (rowData.name === "out") {
|
|
3545
3534
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
@@ -3547,18 +3536,30 @@ function getRowData(appModel, rowData) {
|
|
|
3547
3536
|
"function": moduleName + "OUT",
|
|
3548
3537
|
filter: {
|
|
3549
3538
|
module: moduleName,
|
|
3550
|
-
aliasReEx: "^
|
|
3539
|
+
aliasReEx: "^".concat(moduleName, "(OUT){0,1}$")
|
|
3551
3540
|
},
|
|
3552
|
-
behaviour:
|
|
3541
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3553
3542
|
});
|
|
3543
|
+
|
|
3544
|
+
if (appModel.isComponentValue("pwmoePwmcon") === true && getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx) === _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK) {
|
|
3545
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3546
|
+
behaviourMeta: {
|
|
3547
|
+
lockPinRegEx: "^".concat(moduleName, "(OUT){0,1}$")
|
|
3548
|
+
}
|
|
3549
|
+
});
|
|
3550
|
+
}
|
|
3554
3551
|
} else if (rowData.name === "pwmx0") {
|
|
3552
|
+
if (appModel.getComponentValue("pwmoe0Pwmaoe") === undefined) {
|
|
3553
|
+
return undefined;
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3555
3556
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3556
3557
|
module: moduleName,
|
|
3557
3558
|
"function": moduleName + "0OUT",
|
|
3558
3559
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3559
3560
|
module: moduleName
|
|
3560
3561
|
}),
|
|
3561
|
-
behaviour:
|
|
3562
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3562
3563
|
});
|
|
3563
3564
|
|
|
3564
3565
|
if (appModel.isComponentValue("pwmoe0Pwmaoe") === true) {
|
|
@@ -3569,13 +3570,17 @@ function getRowData(appModel, rowData) {
|
|
|
3569
3570
|
});
|
|
3570
3571
|
}
|
|
3571
3572
|
} else if (rowData.name === "pwmx1") {
|
|
3573
|
+
if (appModel.getComponentValue("pwmoe1Pwmaoe") === undefined) {
|
|
3574
|
+
return undefined;
|
|
3575
|
+
}
|
|
3576
|
+
|
|
3572
3577
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3573
3578
|
module: moduleName,
|
|
3574
3579
|
"function": moduleName + "1OUT",
|
|
3575
3580
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3576
3581
|
module: moduleName
|
|
3577
3582
|
}),
|
|
3578
|
-
behaviour:
|
|
3583
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3579
3584
|
});
|
|
3580
3585
|
|
|
3581
3586
|
if (appModel.isComponentValue("pwmoe1Pwmaoe") === true) {
|
|
@@ -3586,13 +3591,17 @@ function getRowData(appModel, rowData) {
|
|
|
3586
3591
|
});
|
|
3587
3592
|
}
|
|
3588
3593
|
} else if (rowData.name === "pwmx2") {
|
|
3594
|
+
if (appModel.getComponentValue("pwmoe2Pwmaoe") === undefined) {
|
|
3595
|
+
return undefined;
|
|
3596
|
+
}
|
|
3597
|
+
|
|
3589
3598
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3590
3599
|
module: moduleName,
|
|
3591
3600
|
"function": moduleName + "2OUT",
|
|
3592
3601
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3593
3602
|
module: moduleName
|
|
3594
3603
|
}),
|
|
3595
|
-
behaviour:
|
|
3604
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3596
3605
|
});
|
|
3597
3606
|
|
|
3598
3607
|
if (appModel.isComponentValue("pwmoe2Pwmaoe") === true) {
|
|
@@ -3603,13 +3612,17 @@ function getRowData(appModel, rowData) {
|
|
|
3603
3612
|
});
|
|
3604
3613
|
}
|
|
3605
3614
|
} else if (rowData.name === "pwmx3") {
|
|
3615
|
+
if (appModel.getComponentValue("pwmoe3Pwmaoe") === undefined) {
|
|
3616
|
+
return undefined;
|
|
3617
|
+
}
|
|
3618
|
+
|
|
3606
3619
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3607
3620
|
module: moduleName,
|
|
3608
3621
|
"function": moduleName + "3OUT",
|
|
3609
3622
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3610
3623
|
module: moduleName
|
|
3611
3624
|
}),
|
|
3612
|
-
behaviour:
|
|
3625
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3613
3626
|
});
|
|
3614
3627
|
|
|
3615
3628
|
if (appModel.isComponentValue("pwmoe3Pwmaoe") === true) {
|
|
@@ -3622,33 +3635,40 @@ function getRowData(appModel, rowData) {
|
|
|
3622
3635
|
}
|
|
3623
3636
|
|
|
3624
3637
|
var rowActions = [];
|
|
3625
|
-
var
|
|
3626
|
-
var
|
|
3627
|
-
var
|
|
3628
|
-
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;
|
|
3629
3643
|
|
|
3630
|
-
if (
|
|
3644
|
+
if (pwmxRegcomponent && getPinBehaviour(ppsData, apfconData, "^".concat(moduleName, "(OUT){0,1}$")) === _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK) {
|
|
3631
3645
|
var _appModel$getPCPHelpe;
|
|
3632
3646
|
|
|
3633
|
-
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());
|
|
3634
3648
|
}
|
|
3635
3649
|
|
|
3636
|
-
if (
|
|
3650
|
+
if (pwmx0Regcomponent) {
|
|
3637
3651
|
var _appModel$getPCPHelpe2;
|
|
3638
3652
|
|
|
3639
|
-
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());
|
|
3640
3654
|
}
|
|
3641
3655
|
|
|
3642
|
-
if (
|
|
3656
|
+
if (pwmx1Regcomponent) {
|
|
3643
3657
|
var _appModel$getPCPHelpe3;
|
|
3644
3658
|
|
|
3645
|
-
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());
|
|
3646
3660
|
}
|
|
3647
3661
|
|
|
3648
|
-
if (
|
|
3662
|
+
if (pwmx2Regcomponent) {
|
|
3649
3663
|
var _appModel$getPCPHelpe4;
|
|
3650
3664
|
|
|
3651
|
-
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());
|
|
3652
3672
|
}
|
|
3653
3673
|
|
|
3654
3674
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
@@ -3657,48 +3677,37 @@ function getRowData(appModel, rowData) {
|
|
|
3657
3677
|
return rowData;
|
|
3658
3678
|
}
|
|
3659
3679
|
|
|
3660
|
-
var
|
|
3661
|
-
var
|
|
3680
|
+
var getPinBehaviour = function getPinBehaviour(ppsPins, apfconPins, pinRegEx) {
|
|
3681
|
+
var tempPinBehaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK;
|
|
3662
3682
|
|
|
3663
|
-
|
|
3664
|
-
var
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
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
|
+
}
|
|
3671
3697
|
}
|
|
3672
3698
|
}
|
|
3673
3699
|
}
|
|
3674
3700
|
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
if (pin.match(new RegExp(regEx, "g"))) {
|
|
3682
|
-
pinName = pin;
|
|
3683
|
-
}
|
|
3684
|
-
});
|
|
3685
|
-
return pinName;
|
|
3686
|
-
};
|
|
3687
|
-
|
|
3688
|
-
var getpinBehaviour = function getpinBehaviour(allPins, moduleName, pinName) {
|
|
3689
|
-
for (var portPin in allPins) {
|
|
3690
|
-
var _allPins$portPin2, _allPins$portPin2$mod;
|
|
3691
|
-
|
|
3692
|
-
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];
|
|
3693
|
-
|
|
3694
|
-
if (pinData === null || pinData === void 0 ? void 0 : pinData["pps"]) {
|
|
3695
|
-
return "pps";
|
|
3696
|
-
} else if (pinData === null || pinData === void 0 ? void 0 : pinData["apfcon"]) {
|
|
3697
|
-
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
|
+
}
|
|
3698
3707
|
}
|
|
3699
3708
|
}
|
|
3700
3709
|
|
|
3701
|
-
return
|
|
3710
|
+
return tempPinBehaviour;
|
|
3702
3711
|
};
|
|
3703
3712
|
|
|
3704
3713
|
/***/ }),
|
|
@@ -3897,7 +3906,7 @@ var Interface = {
|
|
|
3897
3906
|
/*! exports provided: moduleName, deviceType, booleanValues, UIGroups, UIOrder, hasPins, tabs, help, analytics, templates, imports, exports, softwareData, peripherals, default */
|
|
3898
3907
|
/***/ (function(module) {
|
|
3899
3908
|
|
|
3900
|
-
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
|
|
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\"}]}}]}");
|
|
3901
3910
|
|
|
3902
3911
|
/***/ }),
|
|
3903
3912
|
|
|
@@ -3908,7 +3917,7 @@ module.exports = JSON.parse("{\"moduleName\":\"PWM\",\"deviceType\":\"PIC\",\"bo
|
|
|
3908
3917
|
/*! exports provided: rows, default */
|
|
3909
3918
|
/***/ (function(module) {
|
|
3910
3919
|
|
|
3911
|
-
module.exports = JSON.parse("{\"rows\":[{\"name\":\"out\",\"module\":\"
|
|
3920
|
+
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\"}]}");
|
|
3912
3921
|
|
|
3913
3922
|
/***/ })
|
|
3914
3923
|
|