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