@mchp-mcc/scf-pic8-pwm-v2 4.2.8 → 4.2.9
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 +478 -10
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +478 -10
- package/output/autoProcessor.js.map +1 -1
- package/output/creator.js +184 -10
- package/output/creator.js.map +1 -1
- package/output/processor.js +184 -10
- package/output/processor.js.map +1 -1
- package/package.json +9 -9
- package/src/DerivedData.ts +13 -0
- package/src/PinsLogic.test.ts +2759 -24
- package/src/PinsLogic.ts +193 -6
- package/src/moduleConfig.json +63 -1
- package/src/pinsdata.json +42 -3
- package/src/pinlogic.json +0 -20
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.9] - 2023-06-29
|
|
5
|
+
|
|
6
|
+
### New Features
|
|
7
|
+
- **CC8SCRIP-13806** :- PIC16LF156x : Support for PWM module - Implementation for PWMAOE
|
|
8
|
+
|
|
9
|
+
|
|
4
10
|
## [4.2.8] - 2023-06-14
|
|
5
11
|
|
|
6
12
|
### New Features
|
|
@@ -13,9 +19,3 @@ All notable changes to this project will be documented in this file.
|
|
|
13
19
|
- **CC8SCRIP-13488** :- Added support for Timer8 dependency in UI and generated driver for PIC18FxxK40 device family
|
|
14
20
|
- **CC8SCRIP-13401** :- Added support for timer dependency selector in the UI
|
|
15
21
|
- **CC8SCRIP-12947** :- PWM output not seen when multiple instances are used.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
## [4.2.6] - 2022-12-20
|
|
19
|
-
|
|
20
|
-
### Improvements
|
|
21
|
-
- **CC8SCRIP-10646** :- Added a validator for the Custom Name in Easy View
|
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.9] - 2023-06-29
|
|
22
|
+
|
|
23
|
+
### New Features
|
|
24
|
+
- **CC8SCRIP-13806** :- PIC16LF156x : Support for PWM module - Implementation for PWMAOE
|
|
25
|
+
|
|
26
|
+
|
|
21
27
|
## [4.2.8] - 2023-06-14
|
|
22
28
|
|
|
23
29
|
### New Features
|
|
@@ -30,9 +36,3 @@ All notable changes to this project will be documented in this file.
|
|
|
30
36
|
- **CC8SCRIP-13488** :- Added support for Timer8 dependency in UI and generated driver for PIC18FxxK40 device family
|
|
31
37
|
- **CC8SCRIP-13401** :- Added support for timer dependency selector in the UI
|
|
32
38
|
- **CC8SCRIP-12947** :- PWM output not seen when multiple instances are used.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
## [4.2.6] - 2022-12-20
|
|
36
|
-
|
|
37
|
-
### Improvements
|
|
38
|
-
- **CC8SCRIP-10646** :- Added a validator for the Custom Name in Easy View
|
package/output/autoCreator.js
CHANGED
|
@@ -878,6 +878,302 @@ var getPinsLogic = function getPinsLogic() {
|
|
|
878
878
|
|
|
879
879
|
/***/ }),
|
|
880
880
|
|
|
881
|
+
/***/ "./node_modules/@microchip/pin-standard/lib/index.js":
|
|
882
|
+
/*!***********************************************************!*\
|
|
883
|
+
!*** ./node_modules/@microchip/pin-standard/lib/index.js ***!
|
|
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
|
+
\******************************************************************/
|
|
908
|
+
/*! no static exports found */
|
|
909
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
910
|
+
|
|
911
|
+
"use strict";
|
|
912
|
+
|
|
913
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
914
|
+
exports.pin_standard = function () {
|
|
915
|
+
return {
|
|
916
|
+
interfaceId: {
|
|
917
|
+
name: "pin-standard",
|
|
918
|
+
version: "0.1.0",
|
|
919
|
+
},
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
var QueryAdapterKey;
|
|
923
|
+
(function (QueryAdapterKey) {
|
|
924
|
+
QueryAdapterKey["ALLPINS"] = "allpins";
|
|
925
|
+
QueryAdapterKey["ALLPINS_FOR_ATTRIBS"] = "allpins_for_attribs";
|
|
926
|
+
QueryAdapterKey["PPS"] = "pps";
|
|
927
|
+
QueryAdapterKey["PORTMUX"] = "portmux";
|
|
928
|
+
QueryAdapterKey["HASPPS"] = "hasPPS";
|
|
929
|
+
})(QueryAdapterKey = exports.QueryAdapterKey || (exports.QueryAdapterKey = {}));
|
|
930
|
+
var pin_state;
|
|
931
|
+
(function (pin_state) {
|
|
932
|
+
pin_state["EMPTY"] = "E";
|
|
933
|
+
pin_state["LOCKED"] = "L";
|
|
934
|
+
pin_state["UNLOCK"] = "UL";
|
|
935
|
+
pin_state["DiSABLE_LOCK"] = "DL";
|
|
936
|
+
pin_state["UNLOCKED_DISABLED"] = "DUL";
|
|
937
|
+
pin_state["LOCKED_LINK"] = "LL";
|
|
938
|
+
pin_state["UNLOCKED_MUX"] = "MUL";
|
|
939
|
+
pin_state["LOCKED_CONFLICT"] = "CL";
|
|
940
|
+
})(pin_state = exports.pin_state || (exports.pin_state = {}));
|
|
941
|
+
var pin_interrupts_enum;
|
|
942
|
+
(function (pin_interrupts_enum) {
|
|
943
|
+
pin_interrupts_enum["INTDIS_BUFFEN"] = "INTDIS_BUFFEN";
|
|
944
|
+
pin_interrupts_enum["BOTH_EDGES"] = "BOTH_EDGES";
|
|
945
|
+
pin_interrupts_enum["RISING_EDGE"] = "RISING_EDGE";
|
|
946
|
+
pin_interrupts_enum["FALLING_EDGE"] = "FALLING_EDGE";
|
|
947
|
+
pin_interrupts_enum["NONE"] = "NONE";
|
|
948
|
+
pin_interrupts_enum["LOW_LEVEL"] = "LOW_LEVEL";
|
|
949
|
+
})(pin_interrupts_enum = exports.pin_interrupts_enum || (exports.pin_interrupts_enum = {}));
|
|
950
|
+
var pin_attribs_enum;
|
|
951
|
+
(function (pin_attribs_enum) {
|
|
952
|
+
pin_attribs_enum["aliasReEx"] = "aliasReEx";
|
|
953
|
+
pin_attribs_enum["cname"] = "cname";
|
|
954
|
+
pin_attribs_enum["high"] = "high";
|
|
955
|
+
pin_attribs_enum["inv"] = "inv";
|
|
956
|
+
pin_attribs_enum["wpu"] = "wpu";
|
|
957
|
+
pin_attribs_enum["wpd"] = "wpd";
|
|
958
|
+
pin_attribs_enum["od"] = "od";
|
|
959
|
+
pin_attribs_enum["analog"] = "analog";
|
|
960
|
+
pin_attribs_enum["ioc"] = "ioc";
|
|
961
|
+
pin_attribs_enum["intcallback"] = "intcallback";
|
|
962
|
+
pin_attribs_enum["alias"] = "alias";
|
|
963
|
+
pin_attribs_enum["advInpBuff"] = "advInpBuff";
|
|
964
|
+
})(pin_attribs_enum = exports.pin_attribs_enum || (exports.pin_attribs_enum = {}));
|
|
965
|
+
var actiontype;
|
|
966
|
+
(function (actiontype) {
|
|
967
|
+
actiontype["SETACTION"] = "SETACTION";
|
|
968
|
+
actiontype["ATTRIBACTION"] = "ATTRIBACTION";
|
|
969
|
+
})(actiontype = exports.actiontype || (exports.actiontype = {}));
|
|
970
|
+
var direction;
|
|
971
|
+
(function (direction) {
|
|
972
|
+
direction["output"] = "output";
|
|
973
|
+
direction["input"] = "input";
|
|
974
|
+
direction["bidirectional"] = "bidirectional";
|
|
975
|
+
})(direction = exports.direction || (exports.direction = {}));
|
|
976
|
+
var behaviour;
|
|
977
|
+
(function (behaviour) {
|
|
978
|
+
behaviour["LOCK_UNLOCK"] = "LOCK_UNLOCK";
|
|
979
|
+
behaviour["ALWAYS_LOCKED"] = "ALWAYS_LOCKED";
|
|
980
|
+
behaviour["SINGLE_PIN_MUX"] = "SINGLE_PIN_MUX";
|
|
981
|
+
behaviour["OPTIONAL_PIN_MUX"] = "OPTIONAL_PIN_MUX";
|
|
982
|
+
behaviour["PPS"] = "PPS";
|
|
983
|
+
behaviour["APFCON"] = "APFCON";
|
|
984
|
+
behaviour["PORTMUX"] = "PORTMUX";
|
|
985
|
+
behaviour["EXCLUSIVE_LOCK"] = "EXCLUSIVE_LOCK";
|
|
986
|
+
behaviour["LOCKED_DISABLED"] = "LOCKED_DISABLED";
|
|
987
|
+
})(behaviour = exports.behaviour || (exports.behaviour = {}));
|
|
988
|
+
//------------------------------------ schema ------------------------------------//
|
|
989
|
+
exports.data_schema = {
|
|
990
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
991
|
+
$ref: "#/definitions/intf_data",
|
|
992
|
+
definitions: {
|
|
993
|
+
intf_data: {
|
|
994
|
+
type: "object",
|
|
995
|
+
properties: {
|
|
996
|
+
rows: {
|
|
997
|
+
type: "array",
|
|
998
|
+
items: {
|
|
999
|
+
$ref: "#/definitions/pin_row",
|
|
1000
|
+
},
|
|
1001
|
+
},
|
|
1002
|
+
},
|
|
1003
|
+
required: ["rows"],
|
|
1004
|
+
additionalProperties: false,
|
|
1005
|
+
},
|
|
1006
|
+
pin_row: {
|
|
1007
|
+
type: "object",
|
|
1008
|
+
properties: {
|
|
1009
|
+
name: {
|
|
1010
|
+
type: "string",
|
|
1011
|
+
},
|
|
1012
|
+
module: {
|
|
1013
|
+
type: "string",
|
|
1014
|
+
},
|
|
1015
|
+
function: {
|
|
1016
|
+
type: "string",
|
|
1017
|
+
},
|
|
1018
|
+
direction: {
|
|
1019
|
+
$ref: "#/definitions/direction",
|
|
1020
|
+
},
|
|
1021
|
+
filter: {
|
|
1022
|
+
$ref: "#/definitions/filter",
|
|
1023
|
+
},
|
|
1024
|
+
behaviour: {
|
|
1025
|
+
$ref: "#/definitions/behaviour",
|
|
1026
|
+
},
|
|
1027
|
+
behaviourMeta: {
|
|
1028
|
+
$ref: "#/definitions/behaviourMeta",
|
|
1029
|
+
},
|
|
1030
|
+
attribs: {
|
|
1031
|
+
type: "array",
|
|
1032
|
+
items: {
|
|
1033
|
+
$ref: "#/definitions/pin_attribs",
|
|
1034
|
+
},
|
|
1035
|
+
},
|
|
1036
|
+
groupsdata: {
|
|
1037
|
+
$ref: "#/definitions/pingroups_data",
|
|
1038
|
+
},
|
|
1039
|
+
actions: {},
|
|
1040
|
+
},
|
|
1041
|
+
required: ["name", "module", "function", "direction", "filter", "behaviour"],
|
|
1042
|
+
additionalProperties: false,
|
|
1043
|
+
},
|
|
1044
|
+
direction: {
|
|
1045
|
+
type: "string",
|
|
1046
|
+
enum: ["output", "input", "bidirectional"],
|
|
1047
|
+
},
|
|
1048
|
+
filter: {
|
|
1049
|
+
type: "object",
|
|
1050
|
+
properties: {
|
|
1051
|
+
module: {
|
|
1052
|
+
type: "string",
|
|
1053
|
+
},
|
|
1054
|
+
aliasReEx: {
|
|
1055
|
+
type: "string",
|
|
1056
|
+
},
|
|
1057
|
+
},
|
|
1058
|
+
required: ["module", "aliasReEx"],
|
|
1059
|
+
additionalProperties: false,
|
|
1060
|
+
},
|
|
1061
|
+
behaviour: {
|
|
1062
|
+
type: "string",
|
|
1063
|
+
enum: [
|
|
1064
|
+
"LOCK_UNLOCK",
|
|
1065
|
+
"ALWAYS_LOCKED",
|
|
1066
|
+
"SINGLE_PIN_MUX",
|
|
1067
|
+
"OPTIONAL_PIN_MUX",
|
|
1068
|
+
"PPS",
|
|
1069
|
+
"PORTMUX",
|
|
1070
|
+
"EXCLUSIVE_LOCK",
|
|
1071
|
+
"LOCKED_DISABLED",
|
|
1072
|
+
],
|
|
1073
|
+
},
|
|
1074
|
+
behaviourMeta: {
|
|
1075
|
+
type: "object",
|
|
1076
|
+
properties: {
|
|
1077
|
+
lockPinRegEx: {
|
|
1078
|
+
type: "string",
|
|
1079
|
+
},
|
|
1080
|
+
},
|
|
1081
|
+
required: ["lockPinRegEx"],
|
|
1082
|
+
additionalProperties: false,
|
|
1083
|
+
},
|
|
1084
|
+
pin_attribs: {
|
|
1085
|
+
type: "object",
|
|
1086
|
+
properties: {
|
|
1087
|
+
aliasReEx: {
|
|
1088
|
+
type: "string",
|
|
1089
|
+
},
|
|
1090
|
+
cname: {
|
|
1091
|
+
type: "string",
|
|
1092
|
+
},
|
|
1093
|
+
high: {
|
|
1094
|
+
type: "boolean",
|
|
1095
|
+
},
|
|
1096
|
+
inv: {
|
|
1097
|
+
type: "boolean",
|
|
1098
|
+
},
|
|
1099
|
+
wpu: {
|
|
1100
|
+
type: "boolean",
|
|
1101
|
+
},
|
|
1102
|
+
wpd: {
|
|
1103
|
+
type: "boolean",
|
|
1104
|
+
},
|
|
1105
|
+
od: {
|
|
1106
|
+
type: "boolean",
|
|
1107
|
+
},
|
|
1108
|
+
analog: {
|
|
1109
|
+
type: "boolean",
|
|
1110
|
+
},
|
|
1111
|
+
ioc: {
|
|
1112
|
+
$ref: "#/definitions/pin_interrupts_enum",
|
|
1113
|
+
},
|
|
1114
|
+
bidirection_out: {
|
|
1115
|
+
type: "boolean",
|
|
1116
|
+
},
|
|
1117
|
+
},
|
|
1118
|
+
required: ["aliasReEx"],
|
|
1119
|
+
additionalProperties: false,
|
|
1120
|
+
},
|
|
1121
|
+
pin_interrupts_enum: {
|
|
1122
|
+
type: "string",
|
|
1123
|
+
enum: [
|
|
1124
|
+
"INTDIS_BUFFEN",
|
|
1125
|
+
"BOTH_EDGES",
|
|
1126
|
+
"RISING_EDGE",
|
|
1127
|
+
"FALLING_EDGE",
|
|
1128
|
+
"NONE",
|
|
1129
|
+
"LOW_LEVEL",
|
|
1130
|
+
],
|
|
1131
|
+
},
|
|
1132
|
+
pingroups_data: {
|
|
1133
|
+
type: "object",
|
|
1134
|
+
properties: {
|
|
1135
|
+
groups: {
|
|
1136
|
+
type: "array",
|
|
1137
|
+
items: {
|
|
1138
|
+
$ref: "#/definitions/pins_group",
|
|
1139
|
+
},
|
|
1140
|
+
},
|
|
1141
|
+
},
|
|
1142
|
+
required: ["groups"],
|
|
1143
|
+
additionalProperties: false,
|
|
1144
|
+
},
|
|
1145
|
+
pins_group: {
|
|
1146
|
+
type: "object",
|
|
1147
|
+
properties: {
|
|
1148
|
+
name: {
|
|
1149
|
+
type: "string",
|
|
1150
|
+
},
|
|
1151
|
+
filter: {
|
|
1152
|
+
$ref: "#/definitions/grpfilter",
|
|
1153
|
+
},
|
|
1154
|
+
datapath: {
|
|
1155
|
+
type: "string",
|
|
1156
|
+
},
|
|
1157
|
+
},
|
|
1158
|
+
required: ["name", "filter"],
|
|
1159
|
+
additionalProperties: false,
|
|
1160
|
+
},
|
|
1161
|
+
grpfilter: {
|
|
1162
|
+
type: "object",
|
|
1163
|
+
properties: {
|
|
1164
|
+
aliasReEx: {
|
|
1165
|
+
type: "string",
|
|
1166
|
+
},
|
|
1167
|
+
},
|
|
1168
|
+
required: ["aliasReEx"],
|
|
1169
|
+
additionalProperties: false,
|
|
1170
|
+
},
|
|
1171
|
+
},
|
|
1172
|
+
};
|
|
1173
|
+
//# sourceMappingURL=pin-standard.js.map
|
|
1174
|
+
|
|
1175
|
+
/***/ }),
|
|
1176
|
+
|
|
881
1177
|
/***/ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/ContextualHelp.js":
|
|
882
1178
|
/*!**************************************************************************************!*\
|
|
883
1179
|
!*** ./node_modules/@microchip/scf-automodule-impl/lib/autoModule/ContextualHelp.js ***!
|
|
@@ -2733,6 +3029,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2733
3029
|
/* 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");
|
|
2734
3030
|
/* 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");
|
|
2735
3031
|
/* harmony import */ var _microchip_scf_validators_lib__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_microchip_scf_validators_lib__WEBPACK_IMPORTED_MODULE_6__);
|
|
3032
|
+
/* harmony import */ var _microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @microchip/pin-standard/lib/pin-standard */ "./node_modules/@microchip/pin-standard/lib/pin-standard.js");
|
|
3033
|
+
/* harmony import */ var _microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_7__);
|
|
2736
3034
|
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; } } }; }
|
|
2737
3035
|
|
|
2738
3036
|
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); }
|
|
@@ -2750,6 +3048,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
2750
3048
|
|
|
2751
3049
|
|
|
2752
3050
|
|
|
3051
|
+
|
|
2753
3052
|
var getDerivedData = function getDerivedData(dataModel) {
|
|
2754
3053
|
if (dataModel) {
|
|
2755
3054
|
return new MyDerivedData(dataModel);
|
|
@@ -2836,7 +3135,8 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
2836
3135
|
getPinsLogic: _generated_module_src_pins_PCPHelper__WEBPACK_IMPORTED_MODULE_5__["getPinsLogic"],
|
|
2837
3136
|
importName: _this.friendlyImportName,
|
|
2838
3137
|
componentNameValidator: _this.componentNameValidator,
|
|
2839
|
-
getCustomUiErrors: _this.getCustomUiErrors
|
|
3138
|
+
getCustomUiErrors: _this.getCustomUiErrors,
|
|
3139
|
+
pin_standard_args: _this.getPinstandardArgs
|
|
2840
3140
|
};
|
|
2841
3141
|
});
|
|
2842
3142
|
|
|
@@ -2879,6 +3179,14 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
2879
3179
|
}
|
|
2880
3180
|
});
|
|
2881
3181
|
|
|
3182
|
+
_defineProperty(this, "getPinstandardArgs", function () {
|
|
3183
|
+
var args = {
|
|
3184
|
+
queryAdapters: ["pps", "apfcon"],
|
|
3185
|
+
queryAdapterMap: _defineProperty({}, _microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_7__["QueryAdapterKey"].ALLPINS, "^PWM[0-9]{0,1}$")
|
|
3186
|
+
};
|
|
3187
|
+
return args;
|
|
3188
|
+
});
|
|
3189
|
+
|
|
2882
3190
|
_defineProperty(this, "overrideDefaultOptions", function (componentName) {
|
|
2883
3191
|
switch (componentName) {
|
|
2884
3192
|
case "timerSelection":
|
|
@@ -3202,37 +3510,197 @@ var getHeaderFiles = function getHeaderFiles(model) {
|
|
|
3202
3510
|
__webpack_require__.r(__webpack_exports__);
|
|
3203
3511
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCompletePinData", function() { return getCompletePinData; });
|
|
3204
3512
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRowData", function() { return getRowData; });
|
|
3513
|
+
/* harmony import */ var _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microchip/pin-standard */ "./node_modules/@microchip/pin-standard/lib/index.js");
|
|
3514
|
+
/* harmony import */ var _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__);
|
|
3205
3515
|
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; }
|
|
3206
3516
|
|
|
3207
3517
|
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; }
|
|
3208
3518
|
|
|
3209
3519
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3210
3520
|
|
|
3211
|
-
// provide complete dynamic data for all pin rows. It overrides static pindata.json
|
|
3521
|
+
// provide complete dynamic data for all pin rows. It overrides static pindata.json
|
|
3522
|
+
|
|
3212
3523
|
var getCompletePinData = function getCompletePinData(appModel) {
|
|
3213
3524
|
// way to programatically override the json data
|
|
3214
3525
|
return {};
|
|
3215
3526
|
}; // overrides pin data for a particular row based on model.
|
|
3216
3527
|
|
|
3217
3528
|
function getRowData(appModel, rowData) {
|
|
3218
|
-
var _appModel$getHardware, _appModel$getHardware2;
|
|
3529
|
+
var _appModel$getHardware, _appModel$getHardware2, _appModel$getName, _appModel$getImportVa, _appModel$getComponen, _appModel$getComponen2, _appModel$getComponen3, _appModel$getComponen4;
|
|
3219
3530
|
|
|
3220
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
|
+
var moduleName = (_appModel$getName = appModel.getName()) !== null && _appModel$getName !== void 0 ? _appModel$getName : "PWM";
|
|
3533
|
+
var allPinsData = (_appModel$getImportVa = appModel.getImportValue("pin_standard")) === null || _appModel$getImportVa === void 0 ? void 0 : _appModel$getImportVa.allpins;
|
|
3534
|
+
var modulePins = getModulePins(allPinsData, moduleName);
|
|
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
|
+
}
|
|
3221
3543
|
|
|
3222
3544
|
if (rowData.name === "out") {
|
|
3223
3545
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3224
|
-
module:
|
|
3225
|
-
"function":
|
|
3546
|
+
module: moduleName,
|
|
3547
|
+
"function": moduleName + "OUT",
|
|
3226
3548
|
filter: {
|
|
3227
|
-
module:
|
|
3228
|
-
aliasReEx: "PWM"
|
|
3229
|
-
}
|
|
3549
|
+
module: moduleName,
|
|
3550
|
+
aliasReEx: "^PWM".concat(pwminstancename, "$")
|
|
3551
|
+
},
|
|
3552
|
+
behaviour: isPPS ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS : isAPFCON ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].APFCON : _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK
|
|
3553
|
+
});
|
|
3554
|
+
} else if (rowData.name === "pwmx0") {
|
|
3555
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3556
|
+
module: moduleName,
|
|
3557
|
+
"function": moduleName + "0OUT",
|
|
3558
|
+
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3559
|
+
module: moduleName
|
|
3560
|
+
}),
|
|
3561
|
+
behaviour: isPPS ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS : isAPFCON ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].APFCON : _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK
|
|
3562
|
+
});
|
|
3563
|
+
|
|
3564
|
+
if (appModel.isComponentValue("pwmoe0Pwmaoe") === true) {
|
|
3565
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3566
|
+
behaviourMeta: {
|
|
3567
|
+
lockPinRegEx: moduleName + "0"
|
|
3568
|
+
}
|
|
3569
|
+
});
|
|
3570
|
+
}
|
|
3571
|
+
} else if (rowData.name === "pwmx1") {
|
|
3572
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3573
|
+
module: moduleName,
|
|
3574
|
+
"function": moduleName + "1OUT",
|
|
3575
|
+
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3576
|
+
module: moduleName
|
|
3577
|
+
}),
|
|
3578
|
+
behaviour: isPPS ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS : isAPFCON ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].APFCON : _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK
|
|
3579
|
+
});
|
|
3580
|
+
|
|
3581
|
+
if (appModel.isComponentValue("pwmoe1Pwmaoe") === true) {
|
|
3582
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3583
|
+
behaviourMeta: {
|
|
3584
|
+
lockPinRegEx: moduleName + "1"
|
|
3585
|
+
}
|
|
3586
|
+
});
|
|
3587
|
+
}
|
|
3588
|
+
} else if (rowData.name === "pwmx2") {
|
|
3589
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3590
|
+
module: moduleName,
|
|
3591
|
+
"function": moduleName + "2OUT",
|
|
3592
|
+
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3593
|
+
module: moduleName
|
|
3594
|
+
}),
|
|
3595
|
+
behaviour: isPPS ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS : isAPFCON ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].APFCON : _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK
|
|
3596
|
+
});
|
|
3597
|
+
|
|
3598
|
+
if (appModel.isComponentValue("pwmoe2Pwmaoe") === true) {
|
|
3599
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3600
|
+
behaviourMeta: {
|
|
3601
|
+
lockPinRegEx: moduleName + "2"
|
|
3602
|
+
}
|
|
3603
|
+
});
|
|
3604
|
+
}
|
|
3605
|
+
} else if (rowData.name === "pwmx3") {
|
|
3606
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3607
|
+
module: moduleName,
|
|
3608
|
+
"function": moduleName + "3OUT",
|
|
3609
|
+
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3610
|
+
module: moduleName
|
|
3611
|
+
}),
|
|
3612
|
+
behaviour: isPPS ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS : isAPFCON ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].APFCON : _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK
|
|
3230
3613
|
});
|
|
3614
|
+
|
|
3615
|
+
if (appModel.isComponentValue("pwmoe3Pwmaoe") === true) {
|
|
3616
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3617
|
+
behaviourMeta: {
|
|
3618
|
+
lockPinRegEx: moduleName + "3"
|
|
3619
|
+
}
|
|
3620
|
+
});
|
|
3621
|
+
}
|
|
3622
|
+
}
|
|
3623
|
+
|
|
3624
|
+
var rowActions = [];
|
|
3625
|
+
var pwmx0Regcomponent = (_appModel$getComponen = appModel.getComponent("pwmoe0Pwmaoe")) === null || _appModel$getComponen === void 0 ? void 0 : _appModel$getComponen.component;
|
|
3626
|
+
var pwmx1Regcomponent = (_appModel$getComponen2 = appModel.getComponent("pwmoe1Pwmaoe")) === null || _appModel$getComponen2 === void 0 ? void 0 : _appModel$getComponen2.component;
|
|
3627
|
+
var pwmx2Regcomponent = (_appModel$getComponen3 = appModel.getComponent("pwmoe2Pwmaoe")) === null || _appModel$getComponen3 === void 0 ? void 0 : _appModel$getComponen3.component;
|
|
3628
|
+
var pwmx3Regcomponent = (_appModel$getComponen4 = appModel.getComponent("pwmoe3Pwmaoe")) === null || _appModel$getComponen4 === void 0 ? void 0 : _appModel$getComponen4.component;
|
|
3629
|
+
|
|
3630
|
+
if (pwmx0Regcomponent) {
|
|
3631
|
+
var _appModel$getPCPHelpe;
|
|
3632
|
+
|
|
3633
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe = appModel.getPCPHelper) === null || _appModel$getPCPHelpe === void 0 ? void 0 : _appModel$getPCPHelpe.call(appModel).stateActionBuilder(rowData).rowWithName("pwmx0").forComponent(pwmx0Regcomponent).addIfLockedSetValue(moduleName + "0", true).addIfUnLockedSetValue(".*", false).build());
|
|
3634
|
+
}
|
|
3635
|
+
|
|
3636
|
+
if (pwmx1Regcomponent) {
|
|
3637
|
+
var _appModel$getPCPHelpe2;
|
|
3638
|
+
|
|
3639
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe2 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe2 === void 0 ? void 0 : _appModel$getPCPHelpe2.call(appModel).stateActionBuilder(rowData).rowWithName("pwmx1").forComponent(pwmx1Regcomponent).addIfLockedSetValue(moduleName + "1", true).addIfUnLockedSetValue(".*", false).build());
|
|
3640
|
+
}
|
|
3641
|
+
|
|
3642
|
+
if (pwmx2Regcomponent) {
|
|
3643
|
+
var _appModel$getPCPHelpe3;
|
|
3644
|
+
|
|
3645
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe3 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe3 === void 0 ? void 0 : _appModel$getPCPHelpe3.call(appModel).stateActionBuilder(rowData).rowWithName("pwmx2").forComponent(pwmx2Regcomponent).addIfLockedSetValue(moduleName + "2", true).addIfUnLockedSetValue(".*", false).build());
|
|
3231
3646
|
}
|
|
3232
3647
|
|
|
3648
|
+
if (pwmx3Regcomponent) {
|
|
3649
|
+
var _appModel$getPCPHelpe4;
|
|
3650
|
+
|
|
3651
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe4 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe4 === void 0 ? void 0 : _appModel$getPCPHelpe4.call(appModel).stateActionBuilder(rowData).rowWithName("pwmx3").forComponent(pwmx3Regcomponent).addIfLockedSetValue(moduleName + "3", true).addIfUnLockedSetValue(".*", false).build());
|
|
3652
|
+
}
|
|
3653
|
+
|
|
3654
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3655
|
+
actions: rowActions
|
|
3656
|
+
});
|
|
3233
3657
|
return rowData;
|
|
3234
3658
|
}
|
|
3235
3659
|
|
|
3660
|
+
var getModulePins = function getModulePins(allPins, moduleName) {
|
|
3661
|
+
var pins = [];
|
|
3662
|
+
|
|
3663
|
+
for (var portPin in allPins) {
|
|
3664
|
+
var _allPins$portPin;
|
|
3665
|
+
|
|
3666
|
+
var modulePins = (_allPins$portPin = allPins[portPin]) === null || _allPins$portPin === void 0 ? void 0 : _allPins$portPin[moduleName];
|
|
3667
|
+
|
|
3668
|
+
for (var modulePin in modulePins) {
|
|
3669
|
+
if (pins.indexOf(modulePin) === -1) {
|
|
3670
|
+
pins.push(modulePin);
|
|
3671
|
+
}
|
|
3672
|
+
}
|
|
3673
|
+
}
|
|
3674
|
+
|
|
3675
|
+
return pins;
|
|
3676
|
+
};
|
|
3677
|
+
|
|
3678
|
+
var getPinName = function getPinName(modulePins, regEx) {
|
|
3679
|
+
var pinName = "";
|
|
3680
|
+
modulePins.forEach(function (pin) {
|
|
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";
|
|
3698
|
+
}
|
|
3699
|
+
}
|
|
3700
|
+
|
|
3701
|
+
return "lock_unlock";
|
|
3702
|
+
};
|
|
3703
|
+
|
|
3236
3704
|
/***/ }),
|
|
3237
3705
|
|
|
3238
3706
|
/***/ "./src/PwmCalculator.tsx":
|
|
@@ -3429,7 +3897,7 @@ var Interface = {
|
|
|
3429
3897
|
/*! exports provided: moduleName, deviceType, booleanValues, UIGroups, UIOrder, hasPins, tabs, help, analytics, templates, imports, exports, softwareData, peripherals, default */
|
|
3430
3898
|
/***/ (function(module) {
|
|
3431
3899
|
|
|
3432
|
-
module.exports = JSON.parse("{\"moduleName\":\"PWM\",\"deviceType\":\"PIC\",\"booleanValues\":{\"true\":\"enabled\",\"false\":\"disabled\"},\"UIGroups\":{\"software\":\"Software Settings\",\"hardware\":\"Hardware Settings\"},\"UIOrder\":{\"software\":[\"*\"],\"hardware\":[\"pwmenPwmcon\",\"timerSelection\",\"dutyCycle\",\"pwmdcValue\",\"pwmpolPwmcon\",\"pwmPeriod\",\"pwmFrequency\",\"pwmResolution\",\"*\"]},\"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.5.3\"}}},\"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.2.0\"}}},\"Timer\":{\"import\":{\"interfaceId\":{\"name\":\"timer-2-4-6-general-parameters\",\"version\":\"^0.2.0\"}}},\"pin_standard\":{\"import\":{\"interfaceId\":{\"name\":\"pin-standard\",\"version\":\"^0.1.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\":\"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\"}}],\"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\"}]}}]}");
|
|
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.5.3\"}}},\"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.2.0\"}}},\"Timer\":{\"import\":{\"interfaceId\":{\"name\":\"timer-2-4-6-general-parameters\",\"version\":\"^0.2.0\"}}},\"pin_standard\":{\"import\":{\"interfaceId\":{\"name\":\"pin-standard\",\"version\":\"^0.1.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\":\"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\"}},{\"setting\":\"PWMOE\",\"name\":\"pwmoePwmcon\",\"category\":\"hardware\",\"description\":\"Enable Pin Output\",\"type\":\"boolean\",\"group\":\"hardware\",\"tabs\":[\"main\"]}],\"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\"}]}}]}");
|
|
3433
3901
|
|
|
3434
3902
|
/***/ }),
|
|
3435
3903
|
|
|
@@ -3440,7 +3908,7 @@ module.exports = JSON.parse("{\"moduleName\":\"PWM\",\"deviceType\":\"PIC\",\"bo
|
|
|
3440
3908
|
/*! exports provided: rows, default */
|
|
3441
3909
|
/***/ (function(module) {
|
|
3442
3910
|
|
|
3443
|
-
module.exports = JSON.parse("{\"rows\":[{\"name\":\"out\",\"module\":\"PWM6\",\"function\":\"PWM6(OUT|$)\",\"direction\":\"output\",\"filter\":{\"module\":\"PWM6\",\"aliasReEx\":\"^
|
|
3911
|
+
module.exports = JSON.parse("{\"rows\":[{\"name\":\"out\",\"module\":\"PWM6\",\"function\":\"PWM6(OUT|$)\",\"direction\":\"output\",\"filter\":{\"module\":\"PWM6\",\"aliasReEx\":\"^PWM[0-9]$\"}},{\"name\":\"pwmx0\",\"module\":\"PWM1\",\"function\":\"PWM10OUT\",\"direction\":\"output\",\"filter\":{\"module\":\"PWM1\",\"aliasReEx\":\"^PWM[0-9]0$\"}},{\"name\":\"pwmx1\",\"module\":\"PWM1\",\"function\":\"PWM10OUT\",\"direction\":\"output\",\"filter\":{\"module\":\"PWM1\",\"aliasReEx\":\"^PWM[0-9]1$\"}},{\"name\":\"pwmx2\",\"module\":\"PWM1\",\"function\":\"PWM10OUT\",\"direction\":\"output\",\"filter\":{\"module\":\"PWM1\",\"aliasReEx\":\"^PWM[0-9]2$\"}},{\"name\":\"pwmx3\",\"module\":\"PWM1\",\"function\":\"PWM10OUT\",\"direction\":\"output\",\"filter\":{\"module\":\"PWM1\",\"aliasReEx\":\"^PWM[0-9]3$\"}}]}");
|
|
3444
3912
|
|
|
3445
3913
|
/***/ })
|
|
3446
3914
|
|