@mchp-mcc/scf-pic8-interrupt-v3 1.0.0 → 1.0.2

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.
@@ -958,6 +958,302 @@ var RowPrefix;
958
958
 
959
959
  /***/ }),
960
960
 
961
+ /***/ "./node_modules/@microchip/pin-standard/lib/index.js":
962
+ /*!***********************************************************!*\
963
+ !*** ./node_modules/@microchip/pin-standard/lib/index.js ***!
964
+ \***********************************************************/
965
+ /*! no static exports found */
966
+ /***/ (function(module, exports, __webpack_require__) {
967
+
968
+ "use strict";
969
+
970
+ Object.defineProperty(exports, "__esModule", { value: true });
971
+ var pin_standard_1 = __webpack_require__(/*! ./pin-standard */ "./node_modules/@microchip/pin-standard/lib/pin-standard.js");
972
+ exports.pin_standard = pin_standard_1.pin_standard;
973
+ exports.pin_state = pin_standard_1.pin_state;
974
+ exports.direction = pin_standard_1.direction;
975
+ exports.behaviour = pin_standard_1.behaviour;
976
+ exports.data_schema = pin_standard_1.data_schema;
977
+ exports.pin_attribs_enum = pin_standard_1.pin_attribs_enum;
978
+ exports.actiontype = pin_standard_1.actiontype;
979
+ exports.QueryAdapterKey = pin_standard_1.QueryAdapterKey;
980
+ //# sourceMappingURL=index.js.map
981
+
982
+ /***/ }),
983
+
984
+ /***/ "./node_modules/@microchip/pin-standard/lib/pin-standard.js":
985
+ /*!******************************************************************!*\
986
+ !*** ./node_modules/@microchip/pin-standard/lib/pin-standard.js ***!
987
+ \******************************************************************/
988
+ /*! no static exports found */
989
+ /***/ (function(module, exports, __webpack_require__) {
990
+
991
+ "use strict";
992
+
993
+ Object.defineProperty(exports, "__esModule", { value: true });
994
+ exports.pin_standard = function () {
995
+ return {
996
+ interfaceId: {
997
+ name: "pin-standard",
998
+ version: "0.1.0",
999
+ },
1000
+ };
1001
+ };
1002
+ var QueryAdapterKey;
1003
+ (function (QueryAdapterKey) {
1004
+ QueryAdapterKey["ALLPINS"] = "allpins";
1005
+ QueryAdapterKey["ALLPINS_FOR_ATTRIBS"] = "allpins_for_attribs";
1006
+ QueryAdapterKey["PPS"] = "pps";
1007
+ QueryAdapterKey["PORTMUX"] = "portmux";
1008
+ QueryAdapterKey["HASPPS"] = "hasPPS";
1009
+ })(QueryAdapterKey = exports.QueryAdapterKey || (exports.QueryAdapterKey = {}));
1010
+ var pin_state;
1011
+ (function (pin_state) {
1012
+ pin_state["EMPTY"] = "E";
1013
+ pin_state["LOCKED"] = "L";
1014
+ pin_state["UNLOCK"] = "UL";
1015
+ pin_state["DiSABLE_LOCK"] = "DL";
1016
+ pin_state["UNLOCKED_DISABLED"] = "DUL";
1017
+ pin_state["LOCKED_LINK"] = "LL";
1018
+ pin_state["UNLOCKED_MUX"] = "MUL";
1019
+ pin_state["LOCKED_CONFLICT"] = "CL";
1020
+ })(pin_state = exports.pin_state || (exports.pin_state = {}));
1021
+ var pin_interrupts_enum;
1022
+ (function (pin_interrupts_enum) {
1023
+ pin_interrupts_enum["INTDIS_BUFFEN"] = "INTDIS_BUFFEN";
1024
+ pin_interrupts_enum["BOTH_EDGES"] = "BOTH_EDGES";
1025
+ pin_interrupts_enum["RISING_EDGE"] = "RISING_EDGE";
1026
+ pin_interrupts_enum["FALLING_EDGE"] = "FALLING_EDGE";
1027
+ pin_interrupts_enum["NONE"] = "NONE";
1028
+ pin_interrupts_enum["LOW_LEVEL"] = "LOW_LEVEL";
1029
+ })(pin_interrupts_enum = exports.pin_interrupts_enum || (exports.pin_interrupts_enum = {}));
1030
+ var pin_attribs_enum;
1031
+ (function (pin_attribs_enum) {
1032
+ pin_attribs_enum["aliasReEx"] = "aliasReEx";
1033
+ pin_attribs_enum["cname"] = "cname";
1034
+ pin_attribs_enum["high"] = "high";
1035
+ pin_attribs_enum["inv"] = "inv";
1036
+ pin_attribs_enum["wpu"] = "wpu";
1037
+ pin_attribs_enum["wpd"] = "wpd";
1038
+ pin_attribs_enum["od"] = "od";
1039
+ pin_attribs_enum["analog"] = "analog";
1040
+ pin_attribs_enum["ioc"] = "ioc";
1041
+ pin_attribs_enum["intcallback"] = "intcallback";
1042
+ pin_attribs_enum["alias"] = "alias";
1043
+ pin_attribs_enum["advInpBuff"] = "advInpBuff";
1044
+ })(pin_attribs_enum = exports.pin_attribs_enum || (exports.pin_attribs_enum = {}));
1045
+ var actiontype;
1046
+ (function (actiontype) {
1047
+ actiontype["SETACTION"] = "SETACTION";
1048
+ actiontype["ATTRIBACTION"] = "ATTRIBACTION";
1049
+ })(actiontype = exports.actiontype || (exports.actiontype = {}));
1050
+ var direction;
1051
+ (function (direction) {
1052
+ direction["output"] = "output";
1053
+ direction["input"] = "input";
1054
+ direction["bidirectional"] = "bidirectional";
1055
+ })(direction = exports.direction || (exports.direction = {}));
1056
+ var behaviour;
1057
+ (function (behaviour) {
1058
+ behaviour["LOCK_UNLOCK"] = "LOCK_UNLOCK";
1059
+ behaviour["ALWAYS_LOCKED"] = "ALWAYS_LOCKED";
1060
+ behaviour["SINGLE_PIN_MUX"] = "SINGLE_PIN_MUX";
1061
+ behaviour["OPTIONAL_PIN_MUX"] = "OPTIONAL_PIN_MUX";
1062
+ behaviour["PPS"] = "PPS";
1063
+ behaviour["APFCON"] = "APFCON";
1064
+ behaviour["PORTMUX"] = "PORTMUX";
1065
+ behaviour["EXCLUSIVE_LOCK"] = "EXCLUSIVE_LOCK";
1066
+ behaviour["LOCKED_DISABLED"] = "LOCKED_DISABLED";
1067
+ })(behaviour = exports.behaviour || (exports.behaviour = {}));
1068
+ //------------------------------------ schema ------------------------------------//
1069
+ exports.data_schema = {
1070
+ $schema: "http://json-schema.org/draft-07/schema#",
1071
+ $ref: "#/definitions/intf_data",
1072
+ definitions: {
1073
+ intf_data: {
1074
+ type: "object",
1075
+ properties: {
1076
+ rows: {
1077
+ type: "array",
1078
+ items: {
1079
+ $ref: "#/definitions/pin_row",
1080
+ },
1081
+ },
1082
+ },
1083
+ required: ["rows"],
1084
+ additionalProperties: false,
1085
+ },
1086
+ pin_row: {
1087
+ type: "object",
1088
+ properties: {
1089
+ name: {
1090
+ type: "string",
1091
+ },
1092
+ module: {
1093
+ type: "string",
1094
+ },
1095
+ function: {
1096
+ type: "string",
1097
+ },
1098
+ direction: {
1099
+ $ref: "#/definitions/direction",
1100
+ },
1101
+ filter: {
1102
+ $ref: "#/definitions/filter",
1103
+ },
1104
+ behaviour: {
1105
+ $ref: "#/definitions/behaviour",
1106
+ },
1107
+ behaviourMeta: {
1108
+ $ref: "#/definitions/behaviourMeta",
1109
+ },
1110
+ attribs: {
1111
+ type: "array",
1112
+ items: {
1113
+ $ref: "#/definitions/pin_attribs",
1114
+ },
1115
+ },
1116
+ groupsdata: {
1117
+ $ref: "#/definitions/pingroups_data",
1118
+ },
1119
+ actions: {},
1120
+ },
1121
+ required: ["name", "module", "function", "direction", "filter", "behaviour"],
1122
+ additionalProperties: false,
1123
+ },
1124
+ direction: {
1125
+ type: "string",
1126
+ enum: ["output", "input", "bidirectional"],
1127
+ },
1128
+ filter: {
1129
+ type: "object",
1130
+ properties: {
1131
+ module: {
1132
+ type: "string",
1133
+ },
1134
+ aliasReEx: {
1135
+ type: "string",
1136
+ },
1137
+ },
1138
+ required: ["module", "aliasReEx"],
1139
+ additionalProperties: false,
1140
+ },
1141
+ behaviour: {
1142
+ type: "string",
1143
+ enum: [
1144
+ "LOCK_UNLOCK",
1145
+ "ALWAYS_LOCKED",
1146
+ "SINGLE_PIN_MUX",
1147
+ "OPTIONAL_PIN_MUX",
1148
+ "PPS",
1149
+ "PORTMUX",
1150
+ "EXCLUSIVE_LOCK",
1151
+ "LOCKED_DISABLED",
1152
+ ],
1153
+ },
1154
+ behaviourMeta: {
1155
+ type: "object",
1156
+ properties: {
1157
+ lockPinRegEx: {
1158
+ type: "string",
1159
+ },
1160
+ },
1161
+ required: ["lockPinRegEx"],
1162
+ additionalProperties: false,
1163
+ },
1164
+ pin_attribs: {
1165
+ type: "object",
1166
+ properties: {
1167
+ aliasReEx: {
1168
+ type: "string",
1169
+ },
1170
+ cname: {
1171
+ type: "string",
1172
+ },
1173
+ high: {
1174
+ type: "boolean",
1175
+ },
1176
+ inv: {
1177
+ type: "boolean",
1178
+ },
1179
+ wpu: {
1180
+ type: "boolean",
1181
+ },
1182
+ wpd: {
1183
+ type: "boolean",
1184
+ },
1185
+ od: {
1186
+ type: "boolean",
1187
+ },
1188
+ analog: {
1189
+ type: "boolean",
1190
+ },
1191
+ ioc: {
1192
+ $ref: "#/definitions/pin_interrupts_enum",
1193
+ },
1194
+ bidirection_out: {
1195
+ type: "boolean",
1196
+ },
1197
+ },
1198
+ required: ["aliasReEx"],
1199
+ additionalProperties: false,
1200
+ },
1201
+ pin_interrupts_enum: {
1202
+ type: "string",
1203
+ enum: [
1204
+ "INTDIS_BUFFEN",
1205
+ "BOTH_EDGES",
1206
+ "RISING_EDGE",
1207
+ "FALLING_EDGE",
1208
+ "NONE",
1209
+ "LOW_LEVEL",
1210
+ ],
1211
+ },
1212
+ pingroups_data: {
1213
+ type: "object",
1214
+ properties: {
1215
+ groups: {
1216
+ type: "array",
1217
+ items: {
1218
+ $ref: "#/definitions/pins_group",
1219
+ },
1220
+ },
1221
+ },
1222
+ required: ["groups"],
1223
+ additionalProperties: false,
1224
+ },
1225
+ pins_group: {
1226
+ type: "object",
1227
+ properties: {
1228
+ name: {
1229
+ type: "string",
1230
+ },
1231
+ filter: {
1232
+ $ref: "#/definitions/grpfilter",
1233
+ },
1234
+ datapath: {
1235
+ type: "string",
1236
+ },
1237
+ },
1238
+ required: ["name", "filter"],
1239
+ additionalProperties: false,
1240
+ },
1241
+ grpfilter: {
1242
+ type: "object",
1243
+ properties: {
1244
+ aliasReEx: {
1245
+ type: "string",
1246
+ },
1247
+ },
1248
+ required: ["aliasReEx"],
1249
+ additionalProperties: false,
1250
+ },
1251
+ },
1252
+ };
1253
+ //# sourceMappingURL=pin-standard.js.map
1254
+
1255
+ /***/ }),
1256
+
961
1257
  /***/ "./node_modules/@microchip/scf-automodule-impl/lib/Utils.js":
962
1258
  /*!******************************************************************!*\
963
1259
  !*** ./node_modules/@microchip/scf-automodule-impl/lib/Utils.js ***!
@@ -1033,7 +1329,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
1033
1329
  return (mod && mod.__esModule) ? mod : { "default": mod };
1034
1330
  };
1035
1331
  Object.defineProperty(exports, "__esModule", { value: true });
1036
- exports.getFriendlyInterfaceId = exports.getModuleDefaultDescription = exports.DependencySelector = exports.getProcessedHandle = exports.getSettingOptionsIfPresent = exports.getOverrideDefaultValue = exports.getSettingDefaultIfPresent = exports.getOptionValueByName = exports.getSettingFromComponent = exports.getSettingBits = exports.getRegisterValues = exports.hasConfigBits = exports.getComboOptions = exports.getDefaultValue = exports.castComponent = void 0;
1332
+ exports.getFriendlyInterfaceId = exports.getModuleDefaultDescription = exports.DependencySelector = exports.populateLoadedFiles = exports.getProcessedHandle = exports.getSettingOptionsIfPresent = exports.getOverrideDefaultValue = exports.getSettingDefaultIfPresent = exports.getOptionValueByName = exports.getSettingFromComponent = exports.getSettingBits = exports.getRegisterValues = exports.hasConfigBits = exports.getComboOptions = exports.getDefaultValue = exports.castComponent = void 0;
1037
1333
  var CalculateRegisterValue_1 = __importDefault(__webpack_require__(/*! @microchip/scf-device/lib/CalculateRegisterValue */ "./node_modules/@microchip/scf-device/lib/CalculateRegisterValue.js"));
1038
1334
  var Setting_1 = __webpack_require__(/*! @microchip/scf-device/lib/Setting */ "./node_modules/@microchip/scf-device/lib/Setting.js");
1039
1335
  var Arrays_1 = __webpack_require__(/*! @microchip/scf-device/lib/util/Arrays */ "./node_modules/@microchip/scf-device/lib/util/Arrays.js");
@@ -1296,13 +1592,35 @@ var filterModeOptions = function (options, component, masterComponentValue) {
1296
1592
  return filteredOptions;
1297
1593
  };
1298
1594
  var getProcessedHandle = function (handle, payload) {
1299
- var _a, _b, _c;
1595
+ var _a, _b, _c, _d;
1300
1596
  if (handle) {
1301
- handle = __assign(__assign({}, handle), { label: (_c = (_b = (_a = payload === null || payload === void 0 ? void 0 : payload.moduleName) !== null && _a !== void 0 ? _a : payload === null || payload === void 0 ? void 0 : payload.name) !== null && _b !== void 0 ? _b : handle.label) !== null && _c !== void 0 ? _c : handle.providerId + " : " + handle.exportId });
1597
+ handle = __assign(__assign({}, handle), { label: (_d = (_c = (_b = (_a = payload === null || payload === void 0 ? void 0 : payload.customName) !== null && _a !== void 0 ? _a : payload === null || payload === void 0 ? void 0 : payload.moduleName) !== null && _b !== void 0 ? _b : payload === null || payload === void 0 ? void 0 : payload.name) !== null && _c !== void 0 ? _c : handle.label) !== null && _d !== void 0 ? _d : handle.providerId + " : " + handle.exportId });
1302
1598
  }
1303
1599
  return handle;
1304
1600
  };
1305
1601
  exports.getProcessedHandle = getProcessedHandle;
1602
+ var populateLoadedFiles = function (processedOutput) {
1603
+ var _a;
1604
+ var result = __assign({}, processedOutput);
1605
+ var consolidatedFiles = {};
1606
+ //pushing all the inmemory files provided from Melody
1607
+ if (result.loadedFiles !== undefined) {
1608
+ for (var eachFileId in result.loadedFiles) {
1609
+ var eachFile = result.loadedFiles[eachFileId];
1610
+ consolidatedFiles[eachFileId] = eachFile;
1611
+ }
1612
+ }
1613
+ //pushing all the instate files stored in state(project) - NOTE: if same fileId exists in state and memory then state will be given priority
1614
+ if (((_a = result.state) === null || _a === void 0 ? void 0 : _a.loadedFiles) !== undefined) {
1615
+ for (var eachFileId in result.state.loadedFiles) {
1616
+ var eachFile = result.state.loadedFiles[eachFileId];
1617
+ consolidatedFiles[eachFileId] = eachFile;
1618
+ }
1619
+ }
1620
+ result.loadedFiles = consolidatedFiles;
1621
+ return result;
1622
+ };
1623
+ exports.populateLoadedFiles = populateLoadedFiles;
1306
1624
  var DependencySelector = /** @class */ (function () {
1307
1625
  function DependencySelector(model, component) {
1308
1626
  var _this = this;
@@ -1327,7 +1645,7 @@ var DependencySelector = /** @class */ (function () {
1327
1645
  if (this.shouldAllowUnselectDependency(thisImport, options)) {
1328
1646
  dropdownOptions.push(this.noneSelection);
1329
1647
  }
1330
- if (options) {
1648
+ if (options !== undefined) {
1331
1649
  for (var option in options) {
1332
1650
  dropdownOptions.push(this.createOptionEntry(options[option]));
1333
1651
  }
@@ -1340,9 +1658,7 @@ var DependencySelector = /** @class */ (function () {
1340
1658
  return names;
1341
1659
  };
1342
1660
  DependencySelector.prototype.shouldAllowUnselectDependency = function (thisImport, options) {
1343
- return (thisImport != undefined &&
1344
- thisImport.isUnassignable != false &&
1345
- options !== undefined);
1661
+ return thisImport != undefined && thisImport.isUnassignable != false;
1346
1662
  };
1347
1663
  return DependencySelector;
1348
1664
  }());
@@ -2159,6 +2475,7 @@ function getDiagonalHeaderStyles(maxHeaderSize) {
2159
2475
  return {
2160
2476
  position: "relative",
2161
2477
  bottom: "-7px",
2478
+ pointerEvents: "none",
2162
2479
  left: "6px",
2163
2480
  transformOrigin: "bottom left",
2164
2481
  transform: "rotate(-30deg)",
@@ -3751,14 +4068,22 @@ var getAllocatedPins = function getAllocatedPins(model, extIntList, registerSett
3751
4068
  __webpack_require__.r(__webpack_exports__);
3752
4069
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCompletePinData", function() { return getCompletePinData; });
3753
4070
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRowData", function() { return getRowData; });
3754
- // provide complete dynamic data for all pin rows. It overrides static pindata.json
4071
+ /* harmony import */ var _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microchip/pin-standard */ "./node_modules/@microchip/pin-standard/lib/index.js");
4072
+ /* harmony import */ var _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__);
4073
+ // provide complete dynamic data for all pin rows. It overrides static pindata.json
4074
+
3755
4075
  var getCompletePinData = function getCompletePinData(appModel) {
3756
4076
  // way to programatically override the json data
3757
4077
  return {};
3758
4078
  }; // overrides pin data for a particular row based on model.
3759
4079
 
3760
4080
  function getRowData(appModel, rowData) {
4081
+ var _deviceMeta$deviceNam;
4082
+
3761
4083
  var retRowJSONdata;
4084
+ var deviceMeta = appModel.getImportValue("device_meta");
4085
+ var deviceName = (_deviceMeta$deviceNam = deviceMeta === null || deviceMeta === void 0 ? void 0 : deviceMeta.deviceName) !== null && _deviceMeta$deviceNam !== void 0 ? _deviceMeta$deviceNam : "PIC16F182[0-9]";
4086
+ var isPPSSupportAvailable = false;
3762
4087
 
3763
4088
  if (rowData.name === "int") {
3764
4089
  retRowJSONdata = appModel.isComponentValue("inti") ? rowData : undefined;
@@ -3770,7 +4095,16 @@ function getRowData(appModel, rowData) {
3770
4095
  retRowJSONdata = appModel.isComponentValue("int2i") ? rowData : undefined;
3771
4096
  } else if (rowData.name === "int3") {
3772
4097
  retRowJSONdata = appModel.isComponentValue("int3i") ? rowData : undefined;
3773
- } else retRowJSONdata = undefined;
4098
+ } else retRowJSONdata = undefined; //check if the device supports PPS
4099
+
4100
+
4101
+ if (deviceName.match("^PIC16L{0,1}F161[4-9]$") || deviceName.match("^PIC16L{0,1}F157[0-9]$") || deviceName.match("^PIC16L{0,1}F17[0167][0-9]$")) {
4102
+ isPPSSupportAvailable = true;
4103
+ }
4104
+
4105
+ if (isPPSSupportAvailable && retRowJSONdata) {
4106
+ retRowJSONdata.behaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS;
4107
+ }
3774
4108
 
3775
4109
  return retRowJSONdata;
3776
4110
  }