@mchp-mcc/scf-pic8-pwm-v2 4.2.11 → 4.2.12
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/lib/generated_module/src/index.js +2 -2
- package/output/autoCreator.js +56 -85
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +56 -85
- package/output/autoProcessor.js.map +1 -1
- package/output/creator.js +1140 -1527
- package/output/creator.js.map +1 -1
- package/output/nullPrototype.json +3 -3
- package/output/processor.js +1140 -1527
- package/output/processor.js.map +1 -1
- package/output/pwm-v2.c.ftl +29 -32
- package/output/pwm-v2.h.ftl +1 -1
- package/package.json +13 -13
package/Changelog.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
## [4.2.12] - 2024-02-14
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
- **CC8SCRIP-19533** :- MCC Melody generates nonworking code with two PWM modules enabled
|
|
8
|
+
|
|
9
|
+
|
|
4
10
|
## [4.2.11] - 2023-09-27
|
|
5
11
|
|
|
6
12
|
### New Features
|
|
@@ -11,9 +17,3 @@ All notable changes to this project will be documented in this file.
|
|
|
11
17
|
|
|
12
18
|
### New Features
|
|
13
19
|
- **CC8SCRIP-16805** :- Add support for PIC12/16(L)F150x device family
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
## [4.2.9] - 2023-06-29
|
|
17
|
-
|
|
18
|
-
### New Features
|
|
19
|
-
- **CC8SCRIP-13806** :- PIC16LF156x : Support for PWM module - Implementation for PWMAOE
|
package/Readme.md
CHANGED
|
@@ -18,6 +18,12 @@ 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.12] - 2024-02-14
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
- **CC8SCRIP-19533** :- MCC Melody generates nonworking code with two PWM modules enabled
|
|
25
|
+
|
|
26
|
+
|
|
21
27
|
## [4.2.11] - 2023-09-27
|
|
22
28
|
|
|
23
29
|
### New Features
|
|
@@ -28,9 +34,3 @@ All notable changes to this project will be documented in this file.
|
|
|
28
34
|
|
|
29
35
|
### New Features
|
|
30
36
|
- **CC8SCRIP-16805** :- Add support for PIC12/16(L)F150x device family
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
## [4.2.9] - 2023-06-29
|
|
34
|
-
|
|
35
|
-
### New Features
|
|
36
|
-
- **CC8SCRIP-13806** :- PIC16LF156x : Support for PWM module - Implementation for PWMAOE
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.hooks = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
const processor_1 = require("./processor");
|
|
5
|
+
const creator_1 = require("./creator");
|
|
6
6
|
exports.hooks = {
|
|
7
7
|
process: processor_1.process,
|
|
8
8
|
create: creator_1.create,
|
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,
|
|
539
|
+
var _ref, _ref2, _ref3, _handle$label, _handle;
|
|
540
540
|
|
|
541
541
|
handle = _objectSpread(_objectSpread({}, handle), {}, {
|
|
542
|
-
label: (_ref = (_ref2 = (_ref3 = (
|
|
542
|
+
label: (_ref = (_ref2 = (_ref3 = (_handle$label = (_handle = handle) === null || _handle === void 0 ? void 0 : _handle.label) !== null && _handle$label !== void 0 ? _handle$label : payload === null || payload === void 0 ? void 0 : payload.customName) !== 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
|
|
|
@@ -707,7 +707,7 @@ var getConfigBits = function getConfigBits(model) {
|
|
|
707
707
|
var configBits = (_configModule$registe = configModule.registers) === null || _configModule$registe === void 0 ? void 0 : _configModule$registe[configName];
|
|
708
708
|
templateConfigBits = _objectSpread(_objectSpread({}, templateConfigBits), {}, _defineProperty({}, configName, {}));
|
|
709
709
|
configBits === null || configBits === void 0 ? void 0 : configBits.forEach(function (configBit) {
|
|
710
|
-
var _model$
|
|
710
|
+
var _model$getComponent6;
|
|
711
711
|
|
|
712
712
|
var register = registers === null || registers === void 0 ? void 0 : registers[configName];
|
|
713
713
|
var value;
|
|
@@ -718,21 +718,21 @@ var getConfigBits = function getConfigBits(model) {
|
|
|
718
718
|
//missing settings for register
|
|
719
719
|
value = (_model$getComponent$v = (_model$getComponent = model.getComponent(configBit.name)) === null || _model$getComponent === void 0 ? void 0 : _model$getComponent.value) !== null && _model$getComponent$v !== void 0 ? _model$getComponent$v : "";
|
|
720
720
|
} else {
|
|
721
|
-
var _registers$configName, _registers$configName2, _find$name, _find, _setting$options;
|
|
721
|
+
var _registers$configName, _registers$configName2, _ref, _ref2, _find$name, _find, _setting$options, _model$getComponent5;
|
|
722
722
|
|
|
723
723
|
var setting = registers === null || registers === void 0 ? void 0 : (_registers$configName = registers[configName]) === null || _registers$configName === void 0 ? void 0 : (_registers$configName2 = _registers$configName.settings) === null || _registers$configName2 === void 0 ? void 0 : _registers$configName2[configBit.setting];
|
|
724
|
-
value = (_find$name = (_find = Object(_microchip_scf_device_lib_util_Arrays__WEBPACK_IMPORTED_MODULE_0__["find"])((_setting$options = setting === null || setting === void 0 ? void 0 : setting.options) !== null && _setting$options !== void 0 ? _setting$options : [], function (option) {
|
|
724
|
+
value = (_ref = (_ref2 = (_find$name = (_find = Object(_microchip_scf_device_lib_util_Arrays__WEBPACK_IMPORTED_MODULE_0__["find"])((_setting$options = setting === null || setting === void 0 ? void 0 : setting.options) !== null && _setting$options !== void 0 ? _setting$options : [], function (option) {
|
|
725
725
|
var _model$getComponent2, _model$getComponent3, _model$getComponent4;
|
|
726
726
|
|
|
727
727
|
return option.description === ((_model$getComponent2 = model.getComponent(configBit.name)) === null || _model$getComponent2 === void 0 ? void 0 : _model$getComponent2.value) || option.alias === ((_model$getComponent3 = model.getComponent(configBit.name)) === null || _model$getComponent3 === void 0 ? void 0 : _model$getComponent3.value) || option.name === ((_model$getComponent4 = model.getComponent(configBit.name)) === null || _model$getComponent4 === void 0 ? void 0 : _model$getComponent4.value);
|
|
728
|
-
})) === null || _find === void 0 ? void 0 : _find.name) !== null && _find$name !== void 0 ? _find$name : "";
|
|
728
|
+
})) === null || _find === void 0 ? void 0 : _find.name) !== null && _find$name !== void 0 ? _find$name : (_model$getComponent5 = model.getComponent(configBit.name)) === null || _model$getComponent5 === void 0 ? void 0 : _model$getComponent5.value) !== null && _ref2 !== void 0 ? _ref2 : setting === null || setting === void 0 ? void 0 : setting.defaultValue) !== null && _ref !== void 0 ? _ref : "";
|
|
729
729
|
}
|
|
730
730
|
|
|
731
731
|
templateConfigBits[configName][configBit.setting] = {
|
|
732
732
|
name: configBit.setting,
|
|
733
733
|
value: value,
|
|
734
734
|
description: configBit.description,
|
|
735
|
-
valueAsDescription: (_model$
|
|
735
|
+
valueAsDescription: (_model$getComponent6 = model.getComponent(configBit.name)) === null || _model$getComponent6 === void 0 ? void 0 : _model$getComponent6.value
|
|
736
736
|
};
|
|
737
737
|
});
|
|
738
738
|
});
|
|
@@ -878,47 +878,17 @@ var getPinsLogic = function getPinsLogic() {
|
|
|
878
878
|
|
|
879
879
|
/***/ }),
|
|
880
880
|
|
|
881
|
-
/***/ "./node_modules/@microchip/
|
|
882
|
-
|
|
883
|
-
!*** ./node_modules/@microchip/
|
|
884
|
-
|
|
885
|
-
/*! no static exports found */
|
|
886
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
887
|
-
|
|
888
|
-
"use strict";
|
|
889
|
-
|
|
890
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
891
|
-
var pin_standard_1 = __webpack_require__(/*! ./pin-standard */ "./node_modules/@microchip/pin-standard/lib/pin-standard.js");
|
|
892
|
-
exports.pin_standard = pin_standard_1.pin_standard;
|
|
893
|
-
exports.pin_state = pin_standard_1.pin_state;
|
|
894
|
-
exports.direction = pin_standard_1.direction;
|
|
895
|
-
exports.behaviour = pin_standard_1.behaviour;
|
|
896
|
-
exports.data_schema = pin_standard_1.data_schema;
|
|
897
|
-
exports.pin_attribs_enum = pin_standard_1.pin_attribs_enum;
|
|
898
|
-
exports.actiontype = pin_standard_1.actiontype;
|
|
899
|
-
exports.QueryAdapterKey = pin_standard_1.QueryAdapterKey;
|
|
900
|
-
//# sourceMappingURL=index.js.map
|
|
901
|
-
|
|
902
|
-
/***/ }),
|
|
903
|
-
|
|
904
|
-
/***/ "./node_modules/@microchip/pin-standard/lib/pin-standard.js":
|
|
905
|
-
/*!******************************************************************!*\
|
|
906
|
-
!*** ./node_modules/@microchip/pin-standard/lib/pin-standard.js ***!
|
|
907
|
-
\******************************************************************/
|
|
881
|
+
/***/ "./node_modules/@microchip/pins-interface/lib/types.js":
|
|
882
|
+
/*!*************************************************************!*\
|
|
883
|
+
!*** ./node_modules/@microchip/pins-interface/lib/types.js ***!
|
|
884
|
+
\*************************************************************/
|
|
908
885
|
/*! no static exports found */
|
|
909
886
|
/***/ (function(module, exports, __webpack_require__) {
|
|
910
887
|
|
|
911
888
|
"use strict";
|
|
912
889
|
|
|
913
890
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
914
|
-
exports.
|
|
915
|
-
return {
|
|
916
|
-
interfaceId: {
|
|
917
|
-
name: "pin-standard",
|
|
918
|
-
version: "0.1.0",
|
|
919
|
-
},
|
|
920
|
-
};
|
|
921
|
-
};
|
|
891
|
+
exports.data_schema = exports.PIN_ARCH = exports.behaviour = exports.direction = exports.actiontype = exports.pin_attribs_enum = exports.pin_interrupts_enum = exports.pin_state = exports.QueryAdapterKey = void 0;
|
|
922
892
|
var QueryAdapterKey;
|
|
923
893
|
(function (QueryAdapterKey) {
|
|
924
894
|
QueryAdapterKey["ALLPINS"] = "allpins";
|
|
@@ -986,6 +956,13 @@ var behaviour;
|
|
|
986
956
|
behaviour["EXCLUSIVE_LOCK"] = "EXCLUSIVE_LOCK";
|
|
987
957
|
behaviour["LOCKED_DISABLED"] = "LOCKED_DISABLED";
|
|
988
958
|
})(behaviour = exports.behaviour || (exports.behaviour = {}));
|
|
959
|
+
var PIN_ARCH;
|
|
960
|
+
(function (PIN_ARCH) {
|
|
961
|
+
PIN_ARCH["PIC18F"] = "PIC18F";
|
|
962
|
+
PIN_ARCH["AVR8"] = "AVR8";
|
|
963
|
+
PIN_ARCH["PIC16F"] = "PIC16F";
|
|
964
|
+
PIN_ARCH["PIC24F"] = "PIC24F";
|
|
965
|
+
})(PIN_ARCH = exports.PIN_ARCH || (exports.PIN_ARCH = {}));
|
|
989
966
|
//------------------------------------ schema ------------------------------------//
|
|
990
967
|
exports.data_schema = {
|
|
991
968
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
@@ -1171,7 +1148,7 @@ exports.data_schema = {
|
|
|
1171
1148
|
},
|
|
1172
1149
|
},
|
|
1173
1150
|
};
|
|
1174
|
-
//# sourceMappingURL=
|
|
1151
|
+
//# sourceMappingURL=types.js.map
|
|
1175
1152
|
|
|
1176
1153
|
/***/ }),
|
|
1177
1154
|
|
|
@@ -1306,7 +1283,7 @@ function mapOptionLabels(populatedImport, labelFactory) {
|
|
|
1306
1283
|
return populatedImport;
|
|
1307
1284
|
}
|
|
1308
1285
|
exports.mapOptionLabels = mapOptionLabels;
|
|
1309
|
-
|
|
1286
|
+
|
|
1310
1287
|
|
|
1311
1288
|
/***/ }),
|
|
1312
1289
|
|
|
@@ -1435,7 +1412,7 @@ var CalculateRegisterValue = /** @class */ (function () {
|
|
|
1435
1412
|
var value = registerValue;
|
|
1436
1413
|
value &= ~setting.getMask(); // Clear bits
|
|
1437
1414
|
value |= setting.getShiftedValue(); // Set bits
|
|
1438
|
-
return value;
|
|
1415
|
+
return value >>> 0;
|
|
1439
1416
|
};
|
|
1440
1417
|
this.getUnmodifiedSettings = function () {
|
|
1441
1418
|
var _a, _b;
|
|
@@ -1538,7 +1515,7 @@ var OptionSettingValue = /** @class */ (function (_super) {
|
|
|
1538
1515
|
};
|
|
1539
1516
|
return OptionSettingValue;
|
|
1540
1517
|
}(SettingValue));
|
|
1541
|
-
|
|
1518
|
+
|
|
1542
1519
|
|
|
1543
1520
|
/***/ }),
|
|
1544
1521
|
|
|
@@ -1558,7 +1535,7 @@ var getSettingByAlias = function (alias, register) {
|
|
|
1558
1535
|
return (_a = register.settings) === null || _a === void 0 ? void 0 : _a[alias];
|
|
1559
1536
|
};
|
|
1560
1537
|
exports.getSettingByAlias = getSettingByAlias;
|
|
1561
|
-
|
|
1538
|
+
|
|
1562
1539
|
|
|
1563
1540
|
/***/ }),
|
|
1564
1541
|
|
|
@@ -1612,8 +1589,12 @@ var getBitRange = function (setting) {
|
|
|
1612
1589
|
};
|
|
1613
1590
|
exports.getBitRange = getBitRange;
|
|
1614
1591
|
var getOptionByAlias = function (alias, setting) {
|
|
1615
|
-
var _a;
|
|
1616
|
-
|
|
1592
|
+
var _a, _b;
|
|
1593
|
+
var result = (0, Arrays_1.find)((_a = setting === null || setting === void 0 ? void 0 : setting.options) !== null && _a !== void 0 ? _a : [], function (option) { return option.alias == alias; });
|
|
1594
|
+
if (!result) {
|
|
1595
|
+
result = (0, Arrays_1.find)((_b = setting === null || setting === void 0 ? void 0 : setting.options) !== null && _b !== void 0 ? _b : [], function (option) { return option.description == alias; });
|
|
1596
|
+
}
|
|
1597
|
+
return result;
|
|
1617
1598
|
};
|
|
1618
1599
|
exports.getOptionByAlias = getOptionByAlias;
|
|
1619
1600
|
var getOptionByName = function (name, setting) {
|
|
@@ -1648,7 +1629,7 @@ function getBitRangeLow(processedHex) {
|
|
|
1648
1629
|
return processedHex.length - 1;
|
|
1649
1630
|
}
|
|
1650
1631
|
}
|
|
1651
|
-
|
|
1632
|
+
|
|
1652
1633
|
|
|
1653
1634
|
/***/ }),
|
|
1654
1635
|
|
|
@@ -1707,7 +1688,7 @@ var values = function (obj) {
|
|
|
1707
1688
|
return (_a = (0, exports.getKeys)(obj)) === null || _a === void 0 ? void 0 : _a.map(function (key) { return obj[key]; });
|
|
1708
1689
|
};
|
|
1709
1690
|
exports.values = values;
|
|
1710
|
-
|
|
1691
|
+
|
|
1711
1692
|
|
|
1712
1693
|
/***/ }),
|
|
1713
1694
|
|
|
@@ -3030,8 +3011,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3030
3011
|
/* harmony import */ var _generated_module_src_pins_PCPHelper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../generated_module/src/pins/PCPHelper */ "./generated_module/src/pins/PCPHelper.ts");
|
|
3031
3012
|
/* harmony import */ var _microchip_scf_validators_lib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @microchip/scf-validators/lib */ "./node_modules/@microchip/scf-validators/lib/index.js");
|
|
3032
3013
|
/* harmony import */ var _microchip_scf_validators_lib__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_microchip_scf_validators_lib__WEBPACK_IMPORTED_MODULE_6__);
|
|
3033
|
-
/* harmony import */ var
|
|
3034
|
-
/* harmony import */ var
|
|
3014
|
+
/* harmony import */ var _microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @microchip/pins-interface/lib/types */ "./node_modules/@microchip/pins-interface/lib/types.js");
|
|
3015
|
+
/* harmony import */ var _microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_7__);
|
|
3035
3016
|
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
3036
3017
|
|
|
3037
3018
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -3137,7 +3118,7 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
3137
3118
|
importName: _this.friendlyImportName,
|
|
3138
3119
|
componentNameValidator: _this.componentNameValidator,
|
|
3139
3120
|
getCustomUiErrors: _this.getCustomUiErrors,
|
|
3140
|
-
|
|
3121
|
+
pins_interface_args: _this.getPinsinterfaceArgs
|
|
3141
3122
|
};
|
|
3142
3123
|
});
|
|
3143
3124
|
|
|
@@ -3145,7 +3126,7 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
3145
3126
|
if (importKey === "scf_pic8_pwm_v2") return "PWM Hardware";
|
|
3146
3127
|
if (importKey === "osc_clocks") return "Oscillator Clock";
|
|
3147
3128
|
if (importKey === "initializer_system") return "system.c Initialize()";
|
|
3148
|
-
if (importKey === "
|
|
3129
|
+
if (importKey === "pins_interface") return "Pins";
|
|
3149
3130
|
return importKey;
|
|
3150
3131
|
});
|
|
3151
3132
|
|
|
@@ -3180,9 +3161,9 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
3180
3161
|
}
|
|
3181
3162
|
});
|
|
3182
3163
|
|
|
3183
|
-
_defineProperty(this, "
|
|
3164
|
+
_defineProperty(this, "getPinsinterfaceArgs", function () {
|
|
3184
3165
|
var args = {
|
|
3185
|
-
queryAdapters: [
|
|
3166
|
+
queryAdapters: [_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_7__["QueryAdapterKey"].PPS, _microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_7__["QueryAdapterKey"].APFCON]
|
|
3186
3167
|
};
|
|
3187
3168
|
return args;
|
|
3188
3169
|
});
|
|
@@ -3442,7 +3423,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3442
3423
|
/* harmony import */ var _interfaces_pwm_general_parameters__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interfaces/pwm_general_parameters */ "./src/interfaces/pwm_general_parameters.tsx");
|
|
3443
3424
|
/* harmony import */ var _generated_module_src_autoModule_AutoModuleHelpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../generated_module/src/autoModule/AutoModuleHelpers */ "./generated_module/src/autoModule/AutoModuleHelpers.ts");
|
|
3444
3425
|
/* harmony import */ var _generated_module_src_autoModule_AutoModuleTemplates__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../generated_module/src/autoModule/AutoModuleTemplates */ "./generated_module/src/autoModule/AutoModuleTemplates.ts");
|
|
3445
|
-
/* harmony import */ var _generated_module_src_Utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../generated_module/src/Utils */ "./generated_module/src/Utils.ts");
|
|
3446
3426
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
3447
3427
|
|
|
3448
3428
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
@@ -3452,38 +3432,29 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3452
3432
|
|
|
3453
3433
|
|
|
3454
3434
|
|
|
3455
|
-
|
|
3456
3435
|
var getGeneratorModel = function getGeneratorModel(model) {
|
|
3457
|
-
var _model$getComponentVa, _model$getPeripheralD, _model$getPeripheralD2, _model$getPeripheralD3, _model$getPeripheralD4, _model$
|
|
3436
|
+
var _model$getComponentVa, _ref, _model$getPeripheralD, _model$getPeripheralD2, _model$getPeripheralD3, _model$getPeripheralD4, _model$getPeripheralD5, _model$getPeripheralD6, _model$getPeripheralD7, _model$getPeripheralD8, _model$getPeripheralD9, _model$getPeripheralD10, _model$getPeripheralD11, _model$getPeripheralD12, _model$getPeripheralD13, _ref2, _getOptionValueByName, _model$getName, _model$getName2, _pwmInterface$headerF, _model$getImportValue, _ctsel$options$length, _ctsel$options;
|
|
3458
3437
|
|
|
3459
3438
|
if (!model.getHardware()) return {};
|
|
3439
|
+
var hardwareSettings = model.getPeripheralDescription();
|
|
3460
3440
|
var pwmInterface = _interfaces_pwm_general_parameters__WEBPACK_IMPORTED_MODULE_0__["Interface"].createFirmwareApi((_model$getComponentVa = model.getComponentValue("componentName")) !== null && _model$getComponentVa !== void 0 ? _model$getComponentVa : "", getHeaderFiles(model));
|
|
3461
3441
|
var templateSettings = Object(_generated_module_src_autoModule_AutoModuleTemplates__WEBPACK_IMPORTED_MODULE_2__["getTemplateSettings"])(model);
|
|
3462
3442
|
var registerValues = templateSettings === null || templateSettings === void 0 ? void 0 : templateSettings.registers;
|
|
3463
|
-
var
|
|
3464
|
-
var ctsel = (
|
|
3465
|
-
var
|
|
3443
|
+
var ctsel = (_ref = (_model$getPeripheralD = (_model$getPeripheralD2 = model.getPeripheralDescription()) === null || _model$getPeripheralD2 === void 0 ? void 0 : (_model$getPeripheralD3 = _model$getPeripheralD2.registers) === null || _model$getPeripheralD3 === void 0 ? void 0 : (_model$getPeripheralD4 = _model$getPeripheralD3.CCPTMRS1) === null || _model$getPeripheralD4 === void 0 ? void 0 : (_model$getPeripheralD5 = _model$getPeripheralD4.settings) === null || _model$getPeripheralD5 === void 0 ? void 0 : _model$getPeripheralD5.CTSEL) !== null && _model$getPeripheralD !== void 0 ? _model$getPeripheralD : (_model$getPeripheralD6 = model.getPeripheralDescription()) === null || _model$getPeripheralD6 === void 0 ? void 0 : (_model$getPeripheralD7 = _model$getPeripheralD6.registers) === null || _model$getPeripheralD7 === void 0 ? void 0 : (_model$getPeripheralD8 = _model$getPeripheralD7.CCPTMRS) === null || _model$getPeripheralD8 === void 0 ? void 0 : (_model$getPeripheralD9 = _model$getPeripheralD8.settings) === null || _model$getPeripheralD9 === void 0 ? void 0 : _model$getPeripheralD9.CTSEL) !== null && _ref !== void 0 ? _ref : (_model$getPeripheralD10 = model.getPeripheralDescription()) === null || _model$getPeripheralD10 === void 0 ? void 0 : (_model$getPeripheralD11 = _model$getPeripheralD10.registers) === null || _model$getPeripheralD11 === void 0 ? void 0 : (_model$getPeripheralD12 = _model$getPeripheralD11.PWMTMRS) === null || _model$getPeripheralD12 === void 0 ? void 0 : (_model$getPeripheralD13 = _model$getPeripheralD12.settings) === null || _model$getPeripheralD13 === void 0 ? void 0 : _model$getPeripheralD13.CTSEL;
|
|
3444
|
+
var CTSELvalue = ctsel ? (_ref2 = (_getOptionValueByName = Object(_generated_module_src_autoModule_AutoModuleHelpers__WEBPACK_IMPORTED_MODULE_1__["getOptionValueByName"])(ctsel, model.getDerivedFunction("ctselCcptmrs1"))) !== null && _getOptionValueByName !== void 0 ? _getOptionValueByName : Object(_generated_module_src_autoModule_AutoModuleHelpers__WEBPACK_IMPORTED_MODULE_1__["getOptionValueByName"])(ctsel, model.getDerivedFunction("ctselCcptmrs"))) !== null && _ref2 !== void 0 ? _ref2 : Object(_generated_module_src_autoModule_AutoModuleHelpers__WEBPACK_IMPORTED_MODULE_1__["getOptionValueByName"])(ctsel, model.getDerivedFunction("ctselPwmtmrs")) : 1;
|
|
3445
|
+
var CTSELvaluenum = Number(CTSELvalue);
|
|
3466
3446
|
return _objectSpread({
|
|
3467
3447
|
moduleNameLowerCase: (_model$getName = model.getName()) === null || _model$getName === void 0 ? void 0 : _model$getName.toLowerCase(),
|
|
3468
3448
|
moduleNameUpperCase: (_model$getName2 = model.getName()) === null || _model$getName2 === void 0 ? void 0 : _model$getName2.toUpperCase(),
|
|
3449
|
+
moduleInstance: hardwareSettings === null || hardwareSettings === void 0 ? void 0 : hardwareSettings.instance,
|
|
3469
3450
|
header: (_pwmInterface$headerF = pwmInterface.headerFiles) === null || _pwmInterface$headerF === void 0 ? void 0 : _pwmInterface$headerF[0],
|
|
3470
3451
|
api: pwmInterface.api,
|
|
3471
3452
|
simpleApi: pwmInterface.simpleApi,
|
|
3472
|
-
productName: "",
|
|
3473
|
-
productVersion: "",
|
|
3474
|
-
selectedDevice: "PIC18F47Q10",
|
|
3475
|
-
compiler: "XC8 v2.20",
|
|
3476
|
-
tool: "MPLABX v5.40",
|
|
3477
3453
|
//From System Manager
|
|
3478
3454
|
useWatchdog: (_model$getImportValue = model.getImportValue("wdtEnable")) !== null && _model$getImportValue !== void 0 ? _model$getImportValue : false,
|
|
3479
3455
|
//TODO
|
|
3480
3456
|
//Registers and Settings
|
|
3481
|
-
|
|
3482
|
-
// PWMDCH: templateSettings?.registers?.PWMDCH.name ?? "",
|
|
3483
|
-
// PWMDCL: templateSettings?.registers?.PWMDCL?.name ?? "",
|
|
3484
|
-
CCPTMRSregname: (_templateSettings$reg = templateSettings === null || templateSettings === void 0 ? void 0 : (_templateSettings$reg2 = templateSettings.registers) === null || _templateSettings$reg2 === void 0 ? void 0 : (_templateSettings$reg3 = _templateSettings$reg2.CCPTMRS1) === null || _templateSettings$reg3 === void 0 ? void 0 : _templateSettings$reg3.name) !== null && _templateSettings$reg !== void 0 ? _templateSettings$reg : "",
|
|
3485
|
-
CTSELsettingname: (_templateSettings$reg4 = templateSettings === null || templateSettings === void 0 ? void 0 : (_templateSettings$reg5 = templateSettings.registers) === null || _templateSettings$reg5 === void 0 ? void 0 : (_templateSettings$reg6 = _templateSettings$reg5.CCPTMRS1) === null || _templateSettings$reg6 === void 0 ? void 0 : (_templateSettings$reg7 = _templateSettings$reg6.settings) === null || _templateSettings$reg7 === void 0 ? void 0 : _templateSettings$reg7.CTSEL.name) !== null && _templateSettings$reg4 !== void 0 ? _templateSettings$reg4 : "",
|
|
3486
|
-
CTSELvalue: CTSELvalue,
|
|
3457
|
+
CTSELvalue: CTSELvaluenum.toString(16),
|
|
3487
3458
|
timerselpresence: ((_ctsel$options$length = ctsel === null || ctsel === void 0 ? void 0 : (_ctsel$options = ctsel.options) === null || _ctsel$options === void 0 ? void 0 : _ctsel$options.length) !== null && _ctsel$options$length !== void 0 ? _ctsel$options$length : 0) > 0 ? "timerselpresent" : "timerselabsent",
|
|
3488
3459
|
pwmdcValue: model.getComponentValue("pwmdcValue")
|
|
3489
3460
|
}, registerValues);
|
|
@@ -3508,8 +3479,8 @@ var getHeaderFiles = function getHeaderFiles(model) {
|
|
|
3508
3479
|
__webpack_require__.r(__webpack_exports__);
|
|
3509
3480
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCompletePinData", function() { return getCompletePinData; });
|
|
3510
3481
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRowData", function() { return getRowData; });
|
|
3511
|
-
/* harmony import */ var
|
|
3512
|
-
/* harmony import */ var
|
|
3482
|
+
/* harmony import */ var _microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microchip/pins-interface/lib/types */ "./node_modules/@microchip/pins-interface/lib/types.js");
|
|
3483
|
+
/* harmony import */ var _microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
3513
3484
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
3514
3485
|
|
|
3515
3486
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
@@ -3527,8 +3498,8 @@ function getRowData(appModel, rowData) {
|
|
|
3527
3498
|
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;
|
|
3528
3499
|
|
|
3529
3500
|
var moduleName = (_appModel$getName = appModel.getName()) !== null && _appModel$getName !== void 0 ? _appModel$getName : "PWM";
|
|
3530
|
-
var ppsData = (_appModel$getImportVa = appModel.getImportValue("
|
|
3531
|
-
var apfconData = (_appModel$getImportVa4 = appModel.getImportValue("
|
|
3501
|
+
var ppsData = (_appModel$getImportVa = appModel.getImportValue("pins_interface")) === 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];
|
|
3502
|
+
var apfconData = (_appModel$getImportVa4 = appModel.getImportValue("pins_interface")) === 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];
|
|
3532
3503
|
|
|
3533
3504
|
if (rowData.name === "out") {
|
|
3534
3505
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
@@ -3541,7 +3512,7 @@ function getRowData(appModel, rowData) {
|
|
|
3541
3512
|
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
3542
3513
|
});
|
|
3543
3514
|
|
|
3544
|
-
if (appModel.isComponentValue("pwmoePwmcon") === true && getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx) ===
|
|
3515
|
+
if (appModel.isComponentValue("pwmoePwmcon") === true && getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx) === _microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK) {
|
|
3545
3516
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3546
3517
|
behaviourMeta: {
|
|
3547
3518
|
lockPinRegEx: "^".concat(moduleName, "(OUT){0,1}$")
|
|
@@ -3641,7 +3612,7 @@ function getRowData(appModel, rowData) {
|
|
|
3641
3612
|
var pwmx2Regcomponent = (_appModel$getComponen4 = appModel.getComponent("pwmoe2Pwmaoe")) === null || _appModel$getComponen4 === void 0 ? void 0 : _appModel$getComponen4.component;
|
|
3642
3613
|
var pwmx3Regcomponent = (_appModel$getComponen5 = appModel.getComponent("pwmoe3Pwmaoe")) === null || _appModel$getComponen5 === void 0 ? void 0 : _appModel$getComponen5.component;
|
|
3643
3614
|
|
|
3644
|
-
if (pwmxRegcomponent && getPinBehaviour(ppsData, apfconData, "^".concat(moduleName, "(OUT){0,1}$")) ===
|
|
3615
|
+
if (pwmxRegcomponent && getPinBehaviour(ppsData, apfconData, "^".concat(moduleName, "(OUT){0,1}$")) === _microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK) {
|
|
3645
3616
|
var _appModel$getPCPHelpe;
|
|
3646
3617
|
|
|
3647
3618
|
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());
|
|
@@ -3678,20 +3649,20 @@ function getRowData(appModel, rowData) {
|
|
|
3678
3649
|
}
|
|
3679
3650
|
|
|
3680
3651
|
var getPinBehaviour = function getPinBehaviour(ppsPins, apfconPins, pinRegEx) {
|
|
3681
|
-
var tempPinBehaviour =
|
|
3652
|
+
var tempPinBehaviour = _microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK;
|
|
3682
3653
|
|
|
3683
3654
|
if (ppsPins !== undefined) {
|
|
3684
3655
|
for (var ppsPin in ppsPins) {
|
|
3685
3656
|
if (ppsPin === "pps_out") {
|
|
3686
3657
|
for (var ppsOut in ppsPins["pps_out"]) {
|
|
3687
3658
|
if (ppsOut.match(new RegExp(pinRegEx, "ig"))) {
|
|
3688
|
-
tempPinBehaviour =
|
|
3659
|
+
tempPinBehaviour = _microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS;
|
|
3689
3660
|
break;
|
|
3690
3661
|
}
|
|
3691
3662
|
}
|
|
3692
3663
|
} else {
|
|
3693
3664
|
if (ppsPin.match(new RegExp(pinRegEx, "ig"))) {
|
|
3694
|
-
tempPinBehaviour =
|
|
3665
|
+
tempPinBehaviour = _microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS;
|
|
3695
3666
|
break;
|
|
3696
3667
|
}
|
|
3697
3668
|
}
|
|
@@ -3701,7 +3672,7 @@ var getPinBehaviour = function getPinBehaviour(ppsPins, apfconPins, pinRegEx) {
|
|
|
3701
3672
|
if (apfconPins !== undefined) {
|
|
3702
3673
|
for (var apfconPin in apfconPins) {
|
|
3703
3674
|
if (apfconPin.match(new RegExp(pinRegEx, "ig"))) {
|
|
3704
|
-
tempPinBehaviour =
|
|
3675
|
+
tempPinBehaviour = _microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["behaviour"].APFCON;
|
|
3705
3676
|
break;
|
|
3706
3677
|
}
|
|
3707
3678
|
}
|
|
@@ -3906,7 +3877,7 @@ var Interface = {
|
|
|
3906
3877
|
/*! exports provided: moduleName, deviceType, booleanValues, UIGroups, UIOrder, hasPins, tabs, help, analytics, templates, imports, exports, softwareData, peripherals, default */
|
|
3907
3878
|
/***/ (function(module) {
|
|
3908
3879
|
|
|
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\"}}},\"
|
|
3880
|
+
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\"}}},\"pins_interface\":{\"import\":{\"interfaceId\":{\"name\":\"pins-interface\",\"version\":\"^1.*\"}}},\"device_meta\":{\"import\":{\"interfaceId\":{\"name\":\"device-meta\",\"version\":\"^1.*\"}}}},\"exports\":{\"pwm_general\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"pwm_general_parameters\",\"version\":\"0.1.0\"}}]}},\"softwareData\":{\"componentName\":{\"name\":\"componentName\",\"description\":\"Custom Name\",\"type\":\"string\",\"defaultValue\":\"PWM\",\"group\":\"software\",\"tabs\":[\"main\"],\"category\":\"software\",\"validation\":true},\"tmr2Dependency\":{\"name\":\"tmr2Dependency\",\"description\":\"Timer Dependency Selector\",\"category\":\"import\",\"type\":\"ComboBox\",\"group\":\"software\",\"tabs\":[\"main\"],\"importId\":\"Timer\"},\"timerSelection\":{\"name\":\"timerSelection\",\"description\":\"Select a Timer\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"defaultValue\":{\"value\":\"TMR2\",\"options\":[\"TMR2\",\"TMR4\",\"TMR6\"]},\"tabs\":[\"main\"],\"category\":\"software\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},\"dutyCycle\":{\"name\":\"dutyCycle\",\"description\":\"Duty Cycle (%)\",\"type\":\"number\",\"defaultValue\":50,\"group\":\"hardware\",\"validation\":true,\"tabs\":[\"main\"],\"category\":\"software\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${instance}DC&redirect=true\"}},\"pwmdcValue\":{\"name\":\"pwmdcValue\",\"description\":\"PWMDC Value\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${instance}DC&redirect=true\"}},\"pwmPeriod\":{\"name\":\"pwmPeriod\",\"description\":\"PWM Period (s)\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"},\"pwmFrequency\":{\"name\":\"pwmFrequency\",\"description\":\"PWM Frequency (Hz)\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"},\"pwmResolution\":{\"name\":\"pwmResolution\",\"description\":\"PWM Resolution (bits)\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"}},\"peripherals\":[{\"interfaceId\":{\"name\":\"scf-pic8-pwm-v2\",\"version\":\"1.0.0\"},\"registers\":{\"PWMTMRS\":[{\"setting\":\"CTSEL\",\"name\":\"ctselPwmtmrs\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]}],\"CCPTMRS1\":[{\"setting\":\"CTSEL\",\"name\":\"ctselCcptmrs1\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}],\"CCPTMRS\":[{\"setting\":\"CTSEL\",\"name\":\"ctselCcptmrs\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]}],\"PWMCON\":[{\"setting\":\"PWMPOL\",\"name\":\"pwmpolPwmcon\",\"description\":\"PWM Polarity\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"PWMOE\",\"name\":\"pwmoePwmcon\",\"category\":\"hardware\",\"description\":\"Output Enable\",\"type\":\"boolean\",\"group\":\"hardware\",\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"PWMOUT\",\"name\":\"pwmoutPwmcon\",\"description\":\"Insert Description Here\",\"type\":\"boolean\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"PWMEN\",\"name\":\"pwmenPwmcon\",\"description\":\"PWM Enable\",\"type\":\"boolean\",\"group\":\"hardware\",\"overrideDefaultValue\":\"enabled\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"PWMAOE\":[{\"setting\":\"PWMOE0\",\"name\":\"pwmoe0Pwmaoe\",\"category\":\"hardware\",\"description\":\"Enable Additional Output 1\",\"type\":\"boolean\",\"group\":\"additional\",\"tabs\":[\"main\"]},{\"setting\":\"PWMOE1\",\"name\":\"pwmoe1Pwmaoe\",\"category\":\"hardware\",\"description\":\"Enable Additional Output 2\",\"type\":\"boolean\",\"group\":\"additional\",\"tabs\":[\"main\"]},{\"setting\":\"PWMOE2\",\"name\":\"pwmoe2Pwmaoe\",\"category\":\"hardware\",\"description\":\"Enable Additional Output 3\",\"type\":\"boolean\",\"group\":\"additional\",\"tabs\":[\"main\"]},{\"setting\":\"PWMOE3\",\"name\":\"pwmoe3Pwmaoe\",\"category\":\"hardware\",\"description\":\"Enable Additional Output 4\",\"type\":\"boolean\",\"group\":\"additional\",\"tabs\":[\"main\"]}],\"PWMDCH\":[{\"setting\":\"PWMDCH\",\"name\":\"pwmdchPwmdch\",\"description\":\"Insert Description Here\",\"type\":\"string\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}],\"PWMDCL\":[{\"setting\":\"PWMDCL\",\"name\":\"pwmdclPwmdcl\",\"description\":\"Insert Description Here\",\"type\":\"string\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}]}}]}");
|
|
3910
3881
|
|
|
3911
3882
|
/***/ }),
|
|
3912
3883
|
|