@mchp-mcc/scf-pic8-osc-v1 4.3.7 → 4.4.0
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 +5 -8
- package/Readme.md +5 -8
- package/output/autoCreator.js +1 -1654
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +1 -1655
- package/output/autoProcessor.js.map +1 -1
- package/output/creator.js +1 -7408
- package/output/creator.js.map +1 -1
- package/output/moduleConfig.json +1 -0
- package/output/processor.js +1 -7408
- package/output/processor.js.map +1 -1
- package/package.json +14 -14
package/output/autoCreator.js
CHANGED
|
@@ -1,1655 +1,2 @@
|
|
|
1
|
-
var autoCreator =
|
|
2
|
-
/******/ (function(modules) { // webpackBootstrap
|
|
3
|
-
/******/ // The module cache
|
|
4
|
-
/******/ var installedModules = {};
|
|
5
|
-
/******/
|
|
6
|
-
/******/ // The require function
|
|
7
|
-
/******/ function __webpack_require__(moduleId) {
|
|
8
|
-
/******/
|
|
9
|
-
/******/ // Check if module is in cache
|
|
10
|
-
/******/ if(installedModules[moduleId]) {
|
|
11
|
-
/******/ return installedModules[moduleId].exports;
|
|
12
|
-
/******/ }
|
|
13
|
-
/******/ // Create a new module (and put it into the cache)
|
|
14
|
-
/******/ var module = installedModules[moduleId] = {
|
|
15
|
-
/******/ i: moduleId,
|
|
16
|
-
/******/ l: false,
|
|
17
|
-
/******/ exports: {}
|
|
18
|
-
/******/ };
|
|
19
|
-
/******/
|
|
20
|
-
/******/ // Execute the module function
|
|
21
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
22
|
-
/******/
|
|
23
|
-
/******/ // Flag the module as loaded
|
|
24
|
-
/******/ module.l = true;
|
|
25
|
-
/******/
|
|
26
|
-
/******/ // Return the exports of the module
|
|
27
|
-
/******/ return module.exports;
|
|
28
|
-
/******/ }
|
|
29
|
-
/******/
|
|
30
|
-
/******/
|
|
31
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
32
|
-
/******/ __webpack_require__.m = modules;
|
|
33
|
-
/******/
|
|
34
|
-
/******/ // expose the module cache
|
|
35
|
-
/******/ __webpack_require__.c = installedModules;
|
|
36
|
-
/******/
|
|
37
|
-
/******/ // define getter function for harmony exports
|
|
38
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
-
/******/ }
|
|
42
|
-
/******/ };
|
|
43
|
-
/******/
|
|
44
|
-
/******/ // define __esModule on exports
|
|
45
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
-
/******/ }
|
|
49
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
-
/******/ };
|
|
51
|
-
/******/
|
|
52
|
-
/******/ // create a fake namespace object
|
|
53
|
-
/******/ // mode & 1: value is a module id, require it
|
|
54
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
-
/******/ // mode & 4: return value when already ns object
|
|
56
|
-
/******/ // mode & 8|1: behave like require
|
|
57
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
-
/******/ if(mode & 8) return value;
|
|
60
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
-
/******/ var ns = Object.create(null);
|
|
62
|
-
/******/ __webpack_require__.r(ns);
|
|
63
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
-
/******/ return ns;
|
|
66
|
-
/******/ };
|
|
67
|
-
/******/
|
|
68
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
-
/******/ __webpack_require__.n = function(module) {
|
|
70
|
-
/******/ var getter = module && module.__esModule ?
|
|
71
|
-
/******/ function getDefault() { return module['default']; } :
|
|
72
|
-
/******/ function getModuleExports() { return module; };
|
|
73
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
-
/******/ return getter;
|
|
75
|
-
/******/ };
|
|
76
|
-
/******/
|
|
77
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
-
/******/
|
|
80
|
-
/******/ // __webpack_public_path__
|
|
81
|
-
/******/ __webpack_require__.p = "";
|
|
82
|
-
/******/
|
|
83
|
-
/******/
|
|
84
|
-
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s = "./generated_module/src/autoCreator.ts");
|
|
86
|
-
/******/ })
|
|
87
|
-
/************************************************************************/
|
|
88
|
-
/******/ ({
|
|
89
|
-
|
|
90
|
-
/***/ "./generated_module/src/autoCreator.ts":
|
|
91
|
-
/*!*********************************************!*\
|
|
92
|
-
!*** ./generated_module/src/autoCreator.ts ***!
|
|
93
|
-
\*********************************************/
|
|
94
|
-
/*! exports provided: getCreatorFunctions */
|
|
95
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
96
|
-
|
|
97
|
-
"use strict";
|
|
98
|
-
__webpack_require__.r(__webpack_exports__);
|
|
99
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCreatorFunctions", function() { return getCreatorFunctions; });
|
|
100
|
-
/* harmony import */ var _getUserData__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getUserData */ "./generated_module/src/getUserData.ts");
|
|
101
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
102
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
103
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
104
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
105
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
106
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
107
|
-
|
|
108
|
-
var createAutoCreator = function createAutoCreator(getCreatorFunctions) {
|
|
109
|
-
return function () {
|
|
110
|
-
return _objectSpread({
|
|
111
|
-
getModuleConfig: _getUserData__WEBPACK_IMPORTED_MODULE_0__["getModuleConfigFromFile"]
|
|
112
|
-
}, getCreatorFunctions());
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
var getCreatorFunctions = createAutoCreator(_getUserData__WEBPACK_IMPORTED_MODULE_0__["getCreatorFunctions"]);
|
|
116
|
-
|
|
117
|
-
/***/ }),
|
|
118
|
-
|
|
119
|
-
/***/ "./generated_module/src/getUserData.ts":
|
|
120
|
-
/*!*********************************************!*\
|
|
121
|
-
!*** ./generated_module/src/getUserData.ts ***!
|
|
122
|
-
\*********************************************/
|
|
123
|
-
/*! exports provided: getCreatorFunctions, getDerivedData, getPinsDataFromFile, getPinsLogicFromFile, getModuleConfigFromFile */
|
|
124
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
125
|
-
|
|
126
|
-
"use strict";
|
|
127
|
-
__webpack_require__.r(__webpack_exports__);
|
|
128
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPinsDataFromFile", function() { return getPinsDataFromFile; });
|
|
129
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPinsLogicFromFile", function() { return getPinsLogicFromFile; });
|
|
130
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getModuleConfigFromFile", function() { return getModuleConfigFromFile; });
|
|
131
|
-
/* harmony import */ var _src_CreatorFunctions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../src/CreatorFunctions */ "./src/CreatorFunctions.ts");
|
|
132
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getCreatorFunctions", function() { return _src_CreatorFunctions__WEBPACK_IMPORTED_MODULE_0__["getCreatorFunctions"]; });
|
|
133
|
-
|
|
134
|
-
/* harmony import */ var _src_DerivedData__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../src/DerivedData */ "./src/DerivedData.ts");
|
|
135
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDerivedData", function() { return _src_DerivedData__WEBPACK_IMPORTED_MODULE_1__["getDerivedData"]; });
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
var getPinsDataFromFile = function getPinsDataFromFile() {
|
|
140
|
-
try {
|
|
141
|
-
return __webpack_require__(/*! ../../src/pinsdata.json */ "./src/pinsdata.json");
|
|
142
|
-
} catch (_unused) {
|
|
143
|
-
return undefined;
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
var getPinsLogicFromFile = function getPinsLogicFromFile() {
|
|
147
|
-
try {
|
|
148
|
-
return __webpack_require__(/*! ../../src/PinsLogic.ts */ "./src/PinsLogic.ts");
|
|
149
|
-
} catch (_unused2) {
|
|
150
|
-
return undefined;
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
var getModuleConfigFromFile = function getModuleConfigFromFile() {
|
|
154
|
-
try {
|
|
155
|
-
return __webpack_require__(/*! ../../src/moduleConfig.json */ "./src/moduleConfig.json");
|
|
156
|
-
} catch (_unused3) {
|
|
157
|
-
return undefined;
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
/***/ }),
|
|
162
|
-
|
|
163
|
-
/***/ "./generated_module/src/pins/PCPHelper.ts":
|
|
164
|
-
/*!************************************************!*\
|
|
165
|
-
!*** ./generated_module/src/pins/PCPHelper.ts ***!
|
|
166
|
-
\************************************************/
|
|
167
|
-
/*! exports provided: getPinsData, getPinsLogic */
|
|
168
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
169
|
-
|
|
170
|
-
"use strict";
|
|
171
|
-
__webpack_require__.r(__webpack_exports__);
|
|
172
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPinsData", function() { return getPinsData; });
|
|
173
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPinsLogic", function() { return getPinsLogic; });
|
|
174
|
-
/* harmony import */ var _getUserData__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../getUserData */ "./generated_module/src/getUserData.ts");
|
|
175
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
176
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
177
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
178
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
179
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
180
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
181
|
-
|
|
182
|
-
var mockPinsLogic = function mockPinsLogic(getPinsData) {
|
|
183
|
-
var getCompletePinData = function getCompletePinData(appModel) {
|
|
184
|
-
return {};
|
|
185
|
-
};
|
|
186
|
-
var getRowData = function getRowData(appModel, rowData) {
|
|
187
|
-
return rowData;
|
|
188
|
-
};
|
|
189
|
-
return {
|
|
190
|
-
getCompletePinData: getCompletePinData,
|
|
191
|
-
getRowData: getRowData,
|
|
192
|
-
getPinsData: getPinsData
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
var getPinsData = function getPinsData() {
|
|
196
|
-
var _getPinsDataFromFile;
|
|
197
|
-
return (_getPinsDataFromFile = Object(_getUserData__WEBPACK_IMPORTED_MODULE_0__["getPinsDataFromFile"])()) !== null && _getPinsDataFromFile !== void 0 ? _getPinsDataFromFile : {
|
|
198
|
-
rows: []
|
|
199
|
-
};
|
|
200
|
-
};
|
|
201
|
-
var getPinsLogic = function getPinsLogic() {
|
|
202
|
-
var pinsLogic = Object(_getUserData__WEBPACK_IMPORTED_MODULE_0__["getPinsLogicFromFile"])();
|
|
203
|
-
if (pinsLogic) {
|
|
204
|
-
return _objectSpread(_objectSpread({}, pinsLogic), {}, {
|
|
205
|
-
getPinsData: getPinsData
|
|
206
|
-
});
|
|
207
|
-
} else {
|
|
208
|
-
return mockPinsLogic(getPinsData);
|
|
209
|
-
}
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
/***/ }),
|
|
213
|
-
|
|
214
|
-
/***/ "./node_modules/@microchip/pins-interface/lib/types.js":
|
|
215
|
-
/*!*************************************************************!*\
|
|
216
|
-
!*** ./node_modules/@microchip/pins-interface/lib/types.js ***!
|
|
217
|
-
\*************************************************************/
|
|
218
|
-
/*! no static exports found */
|
|
219
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
220
|
-
|
|
221
|
-
"use strict";
|
|
222
|
-
|
|
223
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
224
|
-
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;
|
|
225
|
-
var QueryAdapterKey;
|
|
226
|
-
(function (QueryAdapterKey) {
|
|
227
|
-
QueryAdapterKey["ALLPINS"] = "allpins";
|
|
228
|
-
QueryAdapterKey["ALLPINS_FOR_ATTRIBS"] = "allpins_for_attribs";
|
|
229
|
-
QueryAdapterKey["PPS"] = "pps";
|
|
230
|
-
QueryAdapterKey["APFCON"] = "apfcon";
|
|
231
|
-
QueryAdapterKey["PORTMUX"] = "portmux";
|
|
232
|
-
QueryAdapterKey["HASPPS"] = "hasPPS";
|
|
233
|
-
})(QueryAdapterKey = exports.QueryAdapterKey || (exports.QueryAdapterKey = {}));
|
|
234
|
-
var pin_state;
|
|
235
|
-
(function (pin_state) {
|
|
236
|
-
pin_state["EMPTY"] = "E";
|
|
237
|
-
pin_state["LOCKED"] = "L";
|
|
238
|
-
pin_state["UNLOCK"] = "UL";
|
|
239
|
-
pin_state["DiSABLE_LOCK"] = "DL";
|
|
240
|
-
pin_state["UNLOCKED_DISABLED"] = "DUL";
|
|
241
|
-
pin_state["LOCKED_LINK"] = "LL";
|
|
242
|
-
pin_state["UNLOCKED_MUX"] = "MUL";
|
|
243
|
-
pin_state["LOCKED_CONFLICT"] = "CL";
|
|
244
|
-
})(pin_state = exports.pin_state || (exports.pin_state = {}));
|
|
245
|
-
var pin_interrupts_enum;
|
|
246
|
-
(function (pin_interrupts_enum) {
|
|
247
|
-
pin_interrupts_enum["INTDIS_BUFFEN"] = "INTDIS_BUFFEN";
|
|
248
|
-
pin_interrupts_enum["BOTH_EDGES"] = "BOTH_EDGES";
|
|
249
|
-
pin_interrupts_enum["RISING_EDGE"] = "RISING_EDGE";
|
|
250
|
-
pin_interrupts_enum["FALLING_EDGE"] = "FALLING_EDGE";
|
|
251
|
-
pin_interrupts_enum["NONE"] = "NONE";
|
|
252
|
-
pin_interrupts_enum["LOW_LEVEL"] = "LOW_LEVEL";
|
|
253
|
-
})(pin_interrupts_enum = exports.pin_interrupts_enum || (exports.pin_interrupts_enum = {}));
|
|
254
|
-
var pin_attribs_enum;
|
|
255
|
-
(function (pin_attribs_enum) {
|
|
256
|
-
pin_attribs_enum["aliasReEx"] = "aliasReEx";
|
|
257
|
-
pin_attribs_enum["cname"] = "cname";
|
|
258
|
-
pin_attribs_enum["high"] = "high";
|
|
259
|
-
pin_attribs_enum["inv"] = "inv";
|
|
260
|
-
pin_attribs_enum["wpu"] = "wpu";
|
|
261
|
-
pin_attribs_enum["wpd"] = "wpd";
|
|
262
|
-
pin_attribs_enum["od"] = "od";
|
|
263
|
-
pin_attribs_enum["analog"] = "analog";
|
|
264
|
-
pin_attribs_enum["ioc"] = "ioc";
|
|
265
|
-
pin_attribs_enum["intcallback"] = "intcallback";
|
|
266
|
-
pin_attribs_enum["alias"] = "alias";
|
|
267
|
-
pin_attribs_enum["advInpBuff"] = "advInpBuff";
|
|
268
|
-
})(pin_attribs_enum = exports.pin_attribs_enum || (exports.pin_attribs_enum = {}));
|
|
269
|
-
var actiontype;
|
|
270
|
-
(function (actiontype) {
|
|
271
|
-
actiontype["SETACTION"] = "SETACTION";
|
|
272
|
-
actiontype["ATTRIBACTION"] = "ATTRIBACTION";
|
|
273
|
-
})(actiontype = exports.actiontype || (exports.actiontype = {}));
|
|
274
|
-
var direction;
|
|
275
|
-
(function (direction) {
|
|
276
|
-
direction["output"] = "output";
|
|
277
|
-
direction["input"] = "input";
|
|
278
|
-
direction["bidirectional"] = "bidirectional";
|
|
279
|
-
})(direction = exports.direction || (exports.direction = {}));
|
|
280
|
-
var behaviour;
|
|
281
|
-
(function (behaviour) {
|
|
282
|
-
behaviour["LOCK_UNLOCK"] = "LOCK_UNLOCK";
|
|
283
|
-
behaviour["ALWAYS_LOCKED"] = "ALWAYS_LOCKED";
|
|
284
|
-
behaviour["SINGLE_PIN_MUX"] = "SINGLE_PIN_MUX";
|
|
285
|
-
behaviour["OPTIONAL_PIN_MUX"] = "OPTIONAL_PIN_MUX";
|
|
286
|
-
behaviour["PPS"] = "PPS";
|
|
287
|
-
behaviour["APFCON"] = "APFCON";
|
|
288
|
-
behaviour["PORTMUX"] = "PORTMUX";
|
|
289
|
-
behaviour["EXCLUSIVE_LOCK"] = "EXCLUSIVE_LOCK";
|
|
290
|
-
behaviour["LOCKED_DISABLED"] = "LOCKED_DISABLED";
|
|
291
|
-
})(behaviour = exports.behaviour || (exports.behaviour = {}));
|
|
292
|
-
var PIN_ARCH;
|
|
293
|
-
(function (PIN_ARCH) {
|
|
294
|
-
PIN_ARCH["PIC18F"] = "PIC18F";
|
|
295
|
-
PIN_ARCH["AVR8"] = "AVR8";
|
|
296
|
-
PIN_ARCH["PIC16F"] = "PIC16F";
|
|
297
|
-
PIN_ARCH["PIC24F"] = "PIC24F";
|
|
298
|
-
})(PIN_ARCH = exports.PIN_ARCH || (exports.PIN_ARCH = {}));
|
|
299
|
-
//------------------------------------ schema ------------------------------------//
|
|
300
|
-
exports.data_schema = {
|
|
301
|
-
$schema: "http://json-schema.org/draft-07/schema#",
|
|
302
|
-
$ref: "#/definitions/intf_data",
|
|
303
|
-
definitions: {
|
|
304
|
-
intf_data: {
|
|
305
|
-
type: "object",
|
|
306
|
-
properties: {
|
|
307
|
-
rows: {
|
|
308
|
-
type: "array",
|
|
309
|
-
items: {
|
|
310
|
-
$ref: "#/definitions/pin_row",
|
|
311
|
-
},
|
|
312
|
-
},
|
|
313
|
-
},
|
|
314
|
-
required: ["rows"],
|
|
315
|
-
additionalProperties: false,
|
|
316
|
-
},
|
|
317
|
-
pin_row: {
|
|
318
|
-
type: "object",
|
|
319
|
-
properties: {
|
|
320
|
-
name: {
|
|
321
|
-
type: "string",
|
|
322
|
-
},
|
|
323
|
-
module: {
|
|
324
|
-
type: "string",
|
|
325
|
-
},
|
|
326
|
-
function: {
|
|
327
|
-
type: "string",
|
|
328
|
-
},
|
|
329
|
-
direction: {
|
|
330
|
-
$ref: "#/definitions/direction",
|
|
331
|
-
},
|
|
332
|
-
filter: {
|
|
333
|
-
$ref: "#/definitions/filter",
|
|
334
|
-
},
|
|
335
|
-
behaviour: {
|
|
336
|
-
$ref: "#/definitions/behaviour",
|
|
337
|
-
},
|
|
338
|
-
behaviourMeta: {
|
|
339
|
-
$ref: "#/definitions/behaviourMeta",
|
|
340
|
-
},
|
|
341
|
-
attribs: {
|
|
342
|
-
type: "array",
|
|
343
|
-
items: {
|
|
344
|
-
$ref: "#/definitions/pin_attribs",
|
|
345
|
-
},
|
|
346
|
-
},
|
|
347
|
-
groupsdata: {
|
|
348
|
-
$ref: "#/definitions/pingroups_data",
|
|
349
|
-
},
|
|
350
|
-
actions: {},
|
|
351
|
-
},
|
|
352
|
-
required: ["name", "module", "function", "direction", "filter", "behaviour"],
|
|
353
|
-
additionalProperties: false,
|
|
354
|
-
},
|
|
355
|
-
direction: {
|
|
356
|
-
type: "string",
|
|
357
|
-
enum: ["output", "input", "bidirectional"],
|
|
358
|
-
},
|
|
359
|
-
filter: {
|
|
360
|
-
type: "object",
|
|
361
|
-
properties: {
|
|
362
|
-
module: {
|
|
363
|
-
type: "string",
|
|
364
|
-
},
|
|
365
|
-
aliasReEx: {
|
|
366
|
-
type: "string",
|
|
367
|
-
},
|
|
368
|
-
},
|
|
369
|
-
required: ["module", "aliasReEx"],
|
|
370
|
-
additionalProperties: false,
|
|
371
|
-
},
|
|
372
|
-
behaviour: {
|
|
373
|
-
type: "string",
|
|
374
|
-
enum: [
|
|
375
|
-
"LOCK_UNLOCK",
|
|
376
|
-
"ALWAYS_LOCKED",
|
|
377
|
-
"SINGLE_PIN_MUX",
|
|
378
|
-
"OPTIONAL_PIN_MUX",
|
|
379
|
-
"PPS",
|
|
380
|
-
"PORTMUX",
|
|
381
|
-
"EXCLUSIVE_LOCK",
|
|
382
|
-
"LOCKED_DISABLED",
|
|
383
|
-
],
|
|
384
|
-
},
|
|
385
|
-
behaviourMeta: {
|
|
386
|
-
type: "object",
|
|
387
|
-
properties: {
|
|
388
|
-
lockPinRegEx: {
|
|
389
|
-
type: "string",
|
|
390
|
-
},
|
|
391
|
-
},
|
|
392
|
-
required: ["lockPinRegEx"],
|
|
393
|
-
additionalProperties: false,
|
|
394
|
-
},
|
|
395
|
-
pin_attribs: {
|
|
396
|
-
type: "object",
|
|
397
|
-
properties: {
|
|
398
|
-
aliasReEx: {
|
|
399
|
-
type: "string",
|
|
400
|
-
},
|
|
401
|
-
cname: {
|
|
402
|
-
type: "string",
|
|
403
|
-
},
|
|
404
|
-
high: {
|
|
405
|
-
type: "boolean",
|
|
406
|
-
},
|
|
407
|
-
inv: {
|
|
408
|
-
type: "boolean",
|
|
409
|
-
},
|
|
410
|
-
wpu: {
|
|
411
|
-
type: "boolean",
|
|
412
|
-
},
|
|
413
|
-
wpd: {
|
|
414
|
-
type: "boolean",
|
|
415
|
-
},
|
|
416
|
-
od: {
|
|
417
|
-
type: "boolean",
|
|
418
|
-
},
|
|
419
|
-
analog: {
|
|
420
|
-
type: "boolean",
|
|
421
|
-
},
|
|
422
|
-
ioc: {
|
|
423
|
-
$ref: "#/definitions/pin_interrupts_enum",
|
|
424
|
-
},
|
|
425
|
-
bidirection_out: {
|
|
426
|
-
type: "boolean",
|
|
427
|
-
},
|
|
428
|
-
},
|
|
429
|
-
required: ["aliasReEx"],
|
|
430
|
-
additionalProperties: false,
|
|
431
|
-
},
|
|
432
|
-
pin_interrupts_enum: {
|
|
433
|
-
type: "string",
|
|
434
|
-
enum: [
|
|
435
|
-
"INTDIS_BUFFEN",
|
|
436
|
-
"BOTH_EDGES",
|
|
437
|
-
"RISING_EDGE",
|
|
438
|
-
"FALLING_EDGE",
|
|
439
|
-
"NONE",
|
|
440
|
-
"LOW_LEVEL",
|
|
441
|
-
],
|
|
442
|
-
},
|
|
443
|
-
pingroups_data: {
|
|
444
|
-
type: "object",
|
|
445
|
-
properties: {
|
|
446
|
-
groups: {
|
|
447
|
-
type: "array",
|
|
448
|
-
items: {
|
|
449
|
-
$ref: "#/definitions/pins_group",
|
|
450
|
-
},
|
|
451
|
-
},
|
|
452
|
-
},
|
|
453
|
-
required: ["groups"],
|
|
454
|
-
additionalProperties: false,
|
|
455
|
-
},
|
|
456
|
-
pins_group: {
|
|
457
|
-
type: "object",
|
|
458
|
-
properties: {
|
|
459
|
-
name: {
|
|
460
|
-
type: "string",
|
|
461
|
-
},
|
|
462
|
-
filter: {
|
|
463
|
-
$ref: "#/definitions/grpfilter",
|
|
464
|
-
},
|
|
465
|
-
datapath: {
|
|
466
|
-
type: "string",
|
|
467
|
-
},
|
|
468
|
-
},
|
|
469
|
-
required: ["name", "filter"],
|
|
470
|
-
additionalProperties: false,
|
|
471
|
-
},
|
|
472
|
-
grpfilter: {
|
|
473
|
-
type: "object",
|
|
474
|
-
properties: {
|
|
475
|
-
aliasReEx: {
|
|
476
|
-
type: "string",
|
|
477
|
-
},
|
|
478
|
-
},
|
|
479
|
-
required: ["aliasReEx"],
|
|
480
|
-
additionalProperties: false,
|
|
481
|
-
},
|
|
482
|
-
},
|
|
483
|
-
};
|
|
484
|
-
//# sourceMappingURL=types.js.map
|
|
485
|
-
|
|
486
|
-
/***/ }),
|
|
487
|
-
|
|
488
|
-
/***/ "./node_modules/@microchip/scf-common/lib/Processor.js":
|
|
489
|
-
/*!*************************************************************!*\
|
|
490
|
-
!*** ./node_modules/@microchip/scf-common/lib/Processor.js ***!
|
|
491
|
-
\*************************************************************/
|
|
492
|
-
/*! no static exports found */
|
|
493
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
494
|
-
|
|
495
|
-
"use strict";
|
|
496
|
-
|
|
497
|
-
var __assign = (this && this.__assign) || function () {
|
|
498
|
-
__assign = Object.assign || function(t) {
|
|
499
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
500
|
-
s = arguments[i];
|
|
501
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
502
|
-
t[p] = s[p];
|
|
503
|
-
}
|
|
504
|
-
return t;
|
|
505
|
-
};
|
|
506
|
-
return __assign.apply(this, arguments);
|
|
507
|
-
};
|
|
508
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
509
|
-
exports.mapOptionLabels = exports.filterOptions = exports.isSingleton = exports.isUnassigned = exports.isAssigned = exports.hasOptions = exports.AlertTypes = void 0;
|
|
510
|
-
var AlertTypes;
|
|
511
|
-
(function (AlertTypes) {
|
|
512
|
-
AlertTypes["Error"] = "error";
|
|
513
|
-
AlertTypes["Warning"] = "warning";
|
|
514
|
-
AlertTypes["Hint"] = "hint";
|
|
515
|
-
})(AlertTypes = exports.AlertTypes || (exports.AlertTypes = {}));
|
|
516
|
-
/**
|
|
517
|
-
* See User-Defined Type Guards in the Typescript Handbook on Advanced Types
|
|
518
|
-
* @see https://www.typescriptlang.org/docs/handbook/advanced-types.html
|
|
519
|
-
*/
|
|
520
|
-
function hasOptions(dep) {
|
|
521
|
-
return dep.options !== undefined;
|
|
522
|
-
}
|
|
523
|
-
exports.hasOptions = hasOptions;
|
|
524
|
-
/**
|
|
525
|
-
* See User-Defined Type Guards in the Typescript Handbook on Advanced Types
|
|
526
|
-
* @see https://www.typescriptlang.org/docs/handbook/advanced-types.html
|
|
527
|
-
*/
|
|
528
|
-
function isAssigned(dep) {
|
|
529
|
-
return typeof dep.handle !== "undefined";
|
|
530
|
-
}
|
|
531
|
-
exports.isAssigned = isAssigned;
|
|
532
|
-
/**
|
|
533
|
-
* See User-Defined Type Guards in the Typescript Handbook on Advanced Types
|
|
534
|
-
* @see https://www.typescriptlang.org/docs/handbook/advanced-types.html
|
|
535
|
-
*/
|
|
536
|
-
function isUnassigned(dep) {
|
|
537
|
-
return typeof dep.handle === "undefined";
|
|
538
|
-
}
|
|
539
|
-
exports.isUnassigned = isUnassigned;
|
|
540
|
-
/**
|
|
541
|
-
* Type guard function for SingletonExport
|
|
542
|
-
* See User-Defined Type Guards in the Typescript Handbook on Advanced Types
|
|
543
|
-
* @see https://www.typescriptlang.org/docs/handbook/advanced-types.html
|
|
544
|
-
* @param resource the export to check on being a singleton
|
|
545
|
-
* @deprecated No longer used. Replaced with dynamic singleton identification
|
|
546
|
-
* at runtime.
|
|
547
|
-
*/
|
|
548
|
-
function isSingleton(resource) {
|
|
549
|
-
return typeof resource.isSingleton !== "undefined" && resource.isSingleton;
|
|
550
|
-
}
|
|
551
|
-
exports.isSingleton = isSingleton;
|
|
552
|
-
/**
|
|
553
|
-
* Returns a copy of `populatedImport` with all options removed which
|
|
554
|
-
* cause `optionFilter` to return false.
|
|
555
|
-
*/
|
|
556
|
-
function filterOptions(populatedImport, optionFilter) {
|
|
557
|
-
if (populatedImport.options) {
|
|
558
|
-
return __assign(__assign({}, populatedImport), { options: populatedImport.options.filter(optionFilter) });
|
|
559
|
-
}
|
|
560
|
-
return populatedImport;
|
|
561
|
-
}
|
|
562
|
-
exports.filterOptions = filterOptions;
|
|
563
|
-
/**
|
|
564
|
-
* Returns a copy of `populatedImport` with the options' handle labels
|
|
565
|
-
* mapped according to `labelFactory`.
|
|
566
|
-
*/
|
|
567
|
-
function mapOptionLabels(populatedImport, labelFactory) {
|
|
568
|
-
if (populatedImport.options) {
|
|
569
|
-
return __assign(__assign({}, populatedImport), { options: populatedImport.options.map(function (option) {
|
|
570
|
-
return __assign(__assign({}, option), { handle: __assign(__assign({}, option.handle), { label: labelFactory(option) }) });
|
|
571
|
-
}) });
|
|
572
|
-
}
|
|
573
|
-
return populatedImport;
|
|
574
|
-
}
|
|
575
|
-
exports.mapOptionLabels = mapOptionLabels;
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
/***/ }),
|
|
579
|
-
|
|
580
|
-
/***/ "./node_modules/@microchip/scf-interface/lib/c-function-types.js":
|
|
581
|
-
/*!***********************************************************************!*\
|
|
582
|
-
!*** ./node_modules/@microchip/scf-interface/lib/c-function-types.js ***!
|
|
583
|
-
\***********************************************************************/
|
|
584
|
-
/*! no static exports found */
|
|
585
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
586
|
-
|
|
587
|
-
"use strict";
|
|
588
|
-
|
|
589
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
590
|
-
exports.buildSimpleApi = function (functions) {
|
|
591
|
-
var api = {};
|
|
592
|
-
for (var key in functions) {
|
|
593
|
-
api[key] = buildFunction(functions[key]);
|
|
594
|
-
}
|
|
595
|
-
return api;
|
|
596
|
-
};
|
|
597
|
-
var buildFunction = function (cFunction) {
|
|
598
|
-
return cFunction.returns + " " + cFunction.name + "(" + buildArguments(cFunction.arguments) + ")";
|
|
599
|
-
};
|
|
600
|
-
var buildArguments = function (args) {
|
|
601
|
-
if (args) {
|
|
602
|
-
return args.map(function (arg) { return arg.type + " " + arg.name; }).join(", ");
|
|
603
|
-
}
|
|
604
|
-
else {
|
|
605
|
-
return "void";
|
|
606
|
-
}
|
|
607
|
-
};
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
/***/ }),
|
|
611
|
-
|
|
612
|
-
/***/ "./node_modules/@microchip/scf-interface/lib/helpers.js":
|
|
613
|
-
/*!**************************************************************!*\
|
|
614
|
-
!*** ./node_modules/@microchip/scf-interface/lib/helpers.js ***!
|
|
615
|
-
\**************************************************************/
|
|
616
|
-
/*! no static exports found */
|
|
617
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
618
|
-
|
|
619
|
-
"use strict";
|
|
620
|
-
|
|
621
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
622
|
-
exports.getInterfaceName = function (pkgJson) {
|
|
623
|
-
var strReplace = "@microchip/";
|
|
624
|
-
var interfaceName;
|
|
625
|
-
if (pkgJson) {
|
|
626
|
-
interfaceName = pkgJson["name"];
|
|
627
|
-
if (interfaceName) {
|
|
628
|
-
interfaceName = interfaceName.replace(strReplace, "");
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
if (!interfaceName) {
|
|
632
|
-
throw new Error("Invalid Interface Name...!");
|
|
633
|
-
}
|
|
634
|
-
return interfaceName;
|
|
635
|
-
};
|
|
636
|
-
exports.getInterfaceVersion = function (pkgJson) {
|
|
637
|
-
var versionRegex = new RegExp("\\d+.\\d+.\\d+");
|
|
638
|
-
var version;
|
|
639
|
-
if (pkgJson) {
|
|
640
|
-
version = pkgJson["version"];
|
|
641
|
-
}
|
|
642
|
-
if (!version && !versionRegex.test(version)) {
|
|
643
|
-
throw new Error("Invalid Interface Version...!");
|
|
644
|
-
}
|
|
645
|
-
return version;
|
|
646
|
-
};
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
/***/ }),
|
|
650
|
-
|
|
651
|
-
/***/ "./node_modules/@microchip/scf-interface/lib/index.js":
|
|
652
|
-
/*!************************************************************!*\
|
|
653
|
-
!*** ./node_modules/@microchip/scf-interface/lib/index.js ***!
|
|
654
|
-
\************************************************************/
|
|
655
|
-
/*! no static exports found */
|
|
656
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
657
|
-
|
|
658
|
-
"use strict";
|
|
659
|
-
|
|
660
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
661
|
-
var c_function_types_1 = __webpack_require__(/*! ./c-function-types */ "./node_modules/@microchip/scf-interface/lib/c-function-types.js");
|
|
662
|
-
exports.buildSimpleApi = c_function_types_1.buildSimpleApi;
|
|
663
|
-
var helpers_1 = __webpack_require__(/*! ./helpers */ "./node_modules/@microchip/scf-interface/lib/helpers.js");
|
|
664
|
-
exports.getInterfaceName = helpers_1.getInterfaceName;
|
|
665
|
-
exports.getInterfaceVersion = helpers_1.getInterfaceVersion;
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
/***/ }),
|
|
669
|
-
|
|
670
|
-
/***/ "./node_modules/@microchip/sys-init-basic-interface/lib/api.js":
|
|
671
|
-
/*!*********************************************************************!*\
|
|
672
|
-
!*** ./node_modules/@microchip/sys-init-basic-interface/lib/api.js ***!
|
|
673
|
-
\*********************************************************************/
|
|
674
|
-
/*! no static exports found */
|
|
675
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
676
|
-
|
|
677
|
-
"use strict";
|
|
678
|
-
|
|
679
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
680
|
-
if (k2 === undefined) k2 = k;
|
|
681
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
682
|
-
}) : (function(o, m, k, k2) {
|
|
683
|
-
if (k2 === undefined) k2 = k;
|
|
684
|
-
o[k2] = m[k];
|
|
685
|
-
}));
|
|
686
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
687
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
688
|
-
}) : function(o, v) {
|
|
689
|
-
o["default"] = v;
|
|
690
|
-
});
|
|
691
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
692
|
-
if (mod && mod.__esModule) return mod;
|
|
693
|
-
var result = {};
|
|
694
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
695
|
-
__setModuleDefault(result, mod);
|
|
696
|
-
return result;
|
|
697
|
-
};
|
|
698
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
699
|
-
exports.createPrototypeExport = exports.createPrototypeImport = exports.getInterfaceId = void 0;
|
|
700
|
-
var InterfaceTypes = __importStar(__webpack_require__(/*! @microchip/scf-interface */ "./node_modules/@microchip/scf-interface/lib/index.js"));
|
|
701
|
-
var pkgJson = __webpack_require__(/*! ../package.json */ "./node_modules/@microchip/sys-init-basic-interface/package.json");
|
|
702
|
-
exports.getInterfaceId = function () {
|
|
703
|
-
return {
|
|
704
|
-
name: InterfaceTypes.getInterfaceName(pkgJson),
|
|
705
|
-
version: InterfaceTypes.getInterfaceVersion(pkgJson),
|
|
706
|
-
};
|
|
707
|
-
};
|
|
708
|
-
exports.createPrototypeImport = function () {
|
|
709
|
-
return {
|
|
710
|
-
interfaceId: exports.getInterfaceId(),
|
|
711
|
-
};
|
|
712
|
-
};
|
|
713
|
-
exports.createPrototypeExport = function () {
|
|
714
|
-
return {
|
|
715
|
-
interfaces: [{ interfaceId: exports.getInterfaceId() }],
|
|
716
|
-
};
|
|
717
|
-
};
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
/***/ }),
|
|
721
|
-
|
|
722
|
-
/***/ "./node_modules/@microchip/sys-init-basic-interface/lib/index.js":
|
|
723
|
-
/*!***********************************************************************!*\
|
|
724
|
-
!*** ./node_modules/@microchip/sys-init-basic-interface/lib/index.js ***!
|
|
725
|
-
\***********************************************************************/
|
|
726
|
-
/*! no static exports found */
|
|
727
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
728
|
-
|
|
729
|
-
"use strict";
|
|
730
|
-
|
|
731
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
732
|
-
var sys_init_basic_interface_1 = __webpack_require__(/*! ./sys-init-basic-interface */ "./node_modules/@microchip/sys-init-basic-interface/lib/sys-init-basic-interface.js");
|
|
733
|
-
Object.defineProperty(exports, "Interface", { enumerable: true, get: function () { return sys_init_basic_interface_1.Interface; } });
|
|
734
|
-
Object.defineProperty(exports, "INIT_PRIORITY", { enumerable: true, get: function () { return sys_init_basic_interface_1.INIT_PRIORITY; } });
|
|
735
|
-
Object.defineProperty(exports, "prioritySorter", { enumerable: true, get: function () { return sys_init_basic_interface_1.prioritySorter; } });
|
|
736
|
-
Object.defineProperty(exports, "sortSysInitInitializers", { enumerable: true, get: function () { return sys_init_basic_interface_1.sortSysInitInitializers; } });
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
/***/ }),
|
|
740
|
-
|
|
741
|
-
/***/ "./node_modules/@microchip/sys-init-basic-interface/lib/mock.js":
|
|
742
|
-
/*!**********************************************************************!*\
|
|
743
|
-
!*** ./node_modules/@microchip/sys-init-basic-interface/lib/mock.js ***!
|
|
744
|
-
\**********************************************************************/
|
|
745
|
-
/*! no static exports found */
|
|
746
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
747
|
-
|
|
748
|
-
"use strict";
|
|
749
|
-
|
|
750
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
751
|
-
exports.createMock = void 0;
|
|
752
|
-
var api_1 = __webpack_require__(/*! ./api */ "./node_modules/@microchip/sys-init-basic-interface/lib/api.js");
|
|
753
|
-
exports.createMock = function () {
|
|
754
|
-
return {
|
|
755
|
-
interfaceId: api_1.getInterfaceId(),
|
|
756
|
-
payload: {
|
|
757
|
-
moduleName: "MyModule",
|
|
758
|
-
},
|
|
759
|
-
args: {},
|
|
760
|
-
results: {
|
|
761
|
-
requestId: {
|
|
762
|
-
initializers: [
|
|
763
|
-
{
|
|
764
|
-
name: "mymodule_init1();",
|
|
765
|
-
header: {
|
|
766
|
-
name: "../mymodule.h",
|
|
767
|
-
path: "include/",
|
|
768
|
-
},
|
|
769
|
-
priority: 1,
|
|
770
|
-
},
|
|
771
|
-
],
|
|
772
|
-
localInitializers: [
|
|
773
|
-
{
|
|
774
|
-
funcDec: "void mymodule_init2(void);",
|
|
775
|
-
name: "mymodule_init2();",
|
|
776
|
-
funcBody: "/** \n * @ingroup systemdriver\n * @brief Initializes the Peripheral module.\n * @param None.\n * @return None.\n * void mymodule_init2(void){\n * //IOCMD IOC enabled; CLKRMD CLKR enabled;\n * PMD0 = 0x0;\n * }\n */",
|
|
777
|
-
priority: 1,
|
|
778
|
-
},
|
|
779
|
-
],
|
|
780
|
-
},
|
|
781
|
-
},
|
|
782
|
-
};
|
|
783
|
-
};
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
/***/ }),
|
|
787
|
-
|
|
788
|
-
/***/ "./node_modules/@microchip/sys-init-basic-interface/lib/sys-init-basic-interface.js":
|
|
789
|
-
/*!******************************************************************************************!*\
|
|
790
|
-
!*** ./node_modules/@microchip/sys-init-basic-interface/lib/sys-init-basic-interface.js ***!
|
|
791
|
-
\******************************************************************************************/
|
|
792
|
-
/*! no static exports found */
|
|
793
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
794
|
-
|
|
795
|
-
"use strict";
|
|
796
|
-
|
|
797
|
-
var __assign = (this && this.__assign) || function () {
|
|
798
|
-
__assign = Object.assign || function(t) {
|
|
799
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
800
|
-
s = arguments[i];
|
|
801
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
802
|
-
t[p] = s[p];
|
|
803
|
-
}
|
|
804
|
-
return t;
|
|
805
|
-
};
|
|
806
|
-
return __assign.apply(this, arguments);
|
|
807
|
-
};
|
|
808
|
-
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
809
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
810
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
811
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
812
|
-
r[k] = a[j];
|
|
813
|
-
return r;
|
|
814
|
-
};
|
|
815
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
816
|
-
exports.Interface = exports.sortSysInitInitializers = exports.prioritySorter = exports.INIT_PRIORITY = void 0;
|
|
817
|
-
var mock_1 = __webpack_require__(/*! ./mock */ "./node_modules/@microchip/sys-init-basic-interface/lib/mock.js");
|
|
818
|
-
var api_1 = __webpack_require__(/*! ./api */ "./node_modules/@microchip/sys-init-basic-interface/lib/api.js");
|
|
819
|
-
var INIT_PRIORITY;
|
|
820
|
-
(function (INIT_PRIORITY) {
|
|
821
|
-
INIT_PRIORITY[INIT_PRIORITY["START"] = 1] = "START";
|
|
822
|
-
INIT_PRIORITY[INIT_PRIORITY["PRE_PERIPHERAL"] = 50] = "PRE_PERIPHERAL";
|
|
823
|
-
INIT_PRIORITY[INIT_PRIORITY["PERIPHERAL"] = 100] = "PERIPHERAL";
|
|
824
|
-
INIT_PRIORITY[INIT_PRIORITY["POST_PERIPHERAL"] = 150] = "POST_PERIPHERAL";
|
|
825
|
-
INIT_PRIORITY[INIT_PRIORITY["DEFAULT"] = 200] = "DEFAULT";
|
|
826
|
-
INIT_PRIORITY[INIT_PRIORITY["PRE_SOFTWARE"] = 250] = "PRE_SOFTWARE";
|
|
827
|
-
INIT_PRIORITY[INIT_PRIORITY["SOFTWARE"] = 300] = "SOFTWARE";
|
|
828
|
-
INIT_PRIORITY[INIT_PRIORITY["POST_SOFTWARE"] = 350] = "POST_SOFTWARE";
|
|
829
|
-
INIT_PRIORITY[INIT_PRIORITY["END"] = 400] = "END";
|
|
830
|
-
})(INIT_PRIORITY = exports.INIT_PRIORITY || (exports.INIT_PRIORITY = {}));
|
|
831
|
-
/** Sorting initializer based on the priority. */
|
|
832
|
-
exports.prioritySorter = function (a, b) {
|
|
833
|
-
var _a, _b, _c, _d;
|
|
834
|
-
var result = 0;
|
|
835
|
-
var apriority = (_a = a === null || a === void 0 ? void 0 : a.initializer.priority) !== null && _a !== void 0 ? _a : INIT_PRIORITY.DEFAULT;
|
|
836
|
-
var bpriority = (_b = b === null || b === void 0 ? void 0 : b.initializer.priority) !== null && _b !== void 0 ? _b : INIT_PRIORITY.DEFAULT;
|
|
837
|
-
if (apriority < bpriority) {
|
|
838
|
-
result = -1;
|
|
839
|
-
}
|
|
840
|
-
else if (apriority > bpriority) {
|
|
841
|
-
result = 1;
|
|
842
|
-
}
|
|
843
|
-
else {
|
|
844
|
-
//same priority sort via intializer name alphabetically
|
|
845
|
-
result = (_d = (_c = a === null || a === void 0 ? void 0 : a.initializer.name) === null || _c === void 0 ? void 0 : _c.localeCompare(b === null || b === void 0 ? void 0 : b.initializer.name)) !== null && _d !== void 0 ? _d : 0;
|
|
846
|
-
}
|
|
847
|
-
return result;
|
|
848
|
-
};
|
|
849
|
-
/**Creating list - combination of initializers and localInitializers */
|
|
850
|
-
exports.sortSysInitInitializers = function (data) {
|
|
851
|
-
var retinitializers = __spreadArrays(data);
|
|
852
|
-
var initSystemList = [];
|
|
853
|
-
//iterating initializers[]
|
|
854
|
-
for (var _i = 0, retinitializers_1 = retinitializers; _i < retinitializers_1.length; _i++) {
|
|
855
|
-
var entry = retinitializers_1[_i];
|
|
856
|
-
if (entry.initializers) {
|
|
857
|
-
for (var _a = 0, _b = entry.initializers; _a < _b.length; _a++) {
|
|
858
|
-
var subentry = _b[_a];
|
|
859
|
-
// if (subentry) {
|
|
860
|
-
var temp = {
|
|
861
|
-
initializer: __assign(__assign({}, subentry), { isLocalInit: false, isNewInterface: true }),
|
|
862
|
-
};
|
|
863
|
-
initSystemList.push(temp);
|
|
864
|
-
// }
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
//iterating localInitializers[]
|
|
869
|
-
for (var _c = 0, retinitializers_2 = retinitializers; _c < retinitializers_2.length; _c++) {
|
|
870
|
-
var entry = retinitializers_2[_c];
|
|
871
|
-
if (entry.localInitializers) {
|
|
872
|
-
for (var _d = 0, _e = entry.localInitializers; _d < _e.length; _d++) {
|
|
873
|
-
var subentry = _e[_d];
|
|
874
|
-
// if (subentry) {
|
|
875
|
-
var temp = {
|
|
876
|
-
initializer: __assign(__assign({}, subentry), { isLocalInit: true, isNewInterface: true }),
|
|
877
|
-
};
|
|
878
|
-
initSystemList.push(temp);
|
|
879
|
-
// }
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
initSystemList.sort(exports.prioritySorter);
|
|
884
|
-
return initSystemList;
|
|
885
|
-
};
|
|
886
|
-
exports.Interface = {
|
|
887
|
-
createPrototypeExport: api_1.createPrototypeExport,
|
|
888
|
-
createPrototypeImport: api_1.createPrototypeImport,
|
|
889
|
-
getInterfaceId: api_1.getInterfaceId,
|
|
890
|
-
createMock: mock_1.createMock,
|
|
891
|
-
};
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
/***/ }),
|
|
895
|
-
|
|
896
|
-
/***/ "./node_modules/@microchip/sys-init-basic-interface/package.json":
|
|
897
|
-
/*!***********************************************************************!*\
|
|
898
|
-
!*** ./node_modules/@microchip/sys-init-basic-interface/package.json ***!
|
|
899
|
-
\***********************************************************************/
|
|
900
|
-
/*! exports provided: name, version, license, main, typings, scripts, husky, lint-staged, jest, dependencies, devDependencies, files, notificationEmail, default */
|
|
901
|
-
/***/ (function(module) {
|
|
902
|
-
|
|
903
|
-
module.exports = JSON.parse("{\"name\":\"@microchip/sys-init-basic-interface\",\"version\":\"1.0.0\",\"license\":\"SEE LICENSE IN LICENSE.txt\",\"main\":\"lib/index.js\",\"typings\":\"./lib/index.d.ts\",\"scripts\":{\"build\":\"tsc\",\"test\":\"jest\",\"lint:nofix\":\"eslint \\\"./src/**/*.{ts,tsx}\\\" --quiet\",\"lint\":\"tsc --noEmit && yarn lint:nofix --fix\"},\"husky\":{\"hooks\":{\"pre-commit\":\"tsc --noEmit && lint-staged\"}},\"lint-staged\":{\"./src/**/*.{ts,tsx}\":[\"eslint --fix\"]},\"jest\":{\"testPathIgnorePatterns\":[\"/node_modules/\",\"/run/\",\"/lib/\"],\"modulePathIgnorePatterns\":[\"<rootDir>/run\"],\"preset\":\"ts-jest\",\"collectCoverage\":true,\"coverageThreshold\":{\"./src\":{\"branches\":80,\"functions\":80,\"lines\":80,\"statements\":80}}},\"dependencies\":{\"@microchip/scf-common\":\"^3.22.2\",\"@microchip/scf-interface\":\"^1.4.0\"},\"devDependencies\":{\"@types/jest\":\"^24.0.14\",\"@types/node\":\"^12.0.10\",\"@typescript-eslint/eslint-plugin\":\"^2.27.0\",\"@typescript-eslint/parser\":\"^2.27.0\",\"eslint\":\"^6.8.0\",\"eslint-config-prettier\":\"^6.10.1\",\"eslint-plugin-prettier\":\"^3.1.2\",\"husky\":\"^4.2.4\",\"jest\":\"^24.8.0\",\"lint-staged\":\"^10.2.0\",\"prettier\":\"^2.0.4\",\"ts-jest\":\"^24.0.2\",\"typescript\":\"^3.8.3\"},\"files\":[\"lib/**/*\"],\"notificationEmail\":\"03234d44.microchip.com@amer.teams.ms\"}");
|
|
904
|
-
|
|
905
|
-
/***/ }),
|
|
906
|
-
|
|
907
|
-
/***/ "./src/ClockCalculator.ts":
|
|
908
|
-
/*!********************************!*\
|
|
909
|
-
!*** ./src/ClockCalculator.ts ***!
|
|
910
|
-
\********************************/
|
|
911
|
-
/*! exports provided: ClockCalculator */
|
|
912
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
913
|
-
|
|
914
|
-
"use strict";
|
|
915
|
-
__webpack_require__.r(__webpack_exports__);
|
|
916
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClockCalculator", function() { return ClockCalculator; });
|
|
917
|
-
/* harmony import */ var _StringConstants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./StringConstants */ "./src/StringConstants.ts");
|
|
918
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
919
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
920
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
921
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
922
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
923
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
924
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
925
|
-
|
|
926
|
-
var ClockCalculator = /*#__PURE__*/_createClass(
|
|
927
|
-
// in Hz
|
|
928
|
-
|
|
929
|
-
function ClockCalculator(oscSelect, HFInternalClk, externalClk, clkDivider) {
|
|
930
|
-
var _this = this;
|
|
931
|
-
_classCallCheck(this, ClockCalculator);
|
|
932
|
-
_defineProperty(this, "lfintosc", "31000");
|
|
933
|
-
_defineProperty(this, "mfintosc", "500000");
|
|
934
|
-
_defineProperty(this, "mfintosc_31KHz", "31250");
|
|
935
|
-
_defineProperty(this, "sosc", "32768");
|
|
936
|
-
_defineProperty(this, "oscSelect", void 0);
|
|
937
|
-
_defineProperty(this, "HFInternalClk", void 0);
|
|
938
|
-
_defineProperty(this, "externalClk", void 0);
|
|
939
|
-
_defineProperty(this, "clkDivider", void 0);
|
|
940
|
-
_defineProperty(this, "MAX_PLL", 16000000);
|
|
941
|
-
// in Hz
|
|
942
|
-
_defineProperty(this, "MIN_PLL", 3000000);
|
|
943
|
-
_defineProperty(this, "getCurrentSystemClk", function () {
|
|
944
|
-
var currentSystemClk;
|
|
945
|
-
var HFClk;
|
|
946
|
-
if (_this.oscSelect === _StringConstants__WEBPACK_IMPORTED_MODULE_0__["StringConstants"].SOSC) {
|
|
947
|
-
currentSystemClk = 32768 / _this.clkDivider;
|
|
948
|
-
} else if (_this.oscSelect === _StringConstants__WEBPACK_IMPORTED_MODULE_0__["StringConstants"].LFINTOSC) {
|
|
949
|
-
currentSystemClk = 31000 / _this.clkDivider;
|
|
950
|
-
} else if (_this.oscSelect === _StringConstants__WEBPACK_IMPORTED_MODULE_0__["StringConstants"].HFINTOSC) {
|
|
951
|
-
var _this$HFInternalClk$r, _this$HFInternalClk;
|
|
952
|
-
HFClk = parseInt((_this$HFInternalClk$r = (_this$HFInternalClk = _this.HFInternalClk) === null || _this$HFInternalClk === void 0 ? void 0 : _this$HFInternalClk.replace("_MHz", "")) !== null && _this$HFInternalClk$r !== void 0 ? _this$HFInternalClk$r : "1000000");
|
|
953
|
-
currentSystemClk = HFClk * 1000000 / _this.clkDivider;
|
|
954
|
-
} else if (_this.oscSelect === _StringConstants__WEBPACK_IMPORTED_MODULE_0__["StringConstants"].HFINTOSC_2xPLL) {
|
|
955
|
-
var _this$HFInternalClk$r2, _this$HFInternalClk2;
|
|
956
|
-
HFClk = parseInt((_this$HFInternalClk$r2 = (_this$HFInternalClk2 = _this.HFInternalClk) === null || _this$HFInternalClk2 === void 0 ? void 0 : _this$HFInternalClk2.replace("_MHz", "")) !== null && _this$HFInternalClk$r2 !== void 0 ? _this$HFInternalClk$r2 : "1000000");
|
|
957
|
-
if (HFClk == 8 || HFClk == 12 || HFClk == 16) {
|
|
958
|
-
currentSystemClk = HFClk * 2 * 1000000 / _this.clkDivider;
|
|
959
|
-
} else {
|
|
960
|
-
currentSystemClk = HFClk * 1000000 / _this.clkDivider;
|
|
961
|
-
}
|
|
962
|
-
} else if (_this.oscSelect === _StringConstants__WEBPACK_IMPORTED_MODULE_0__["StringConstants"].EXTOSC) {
|
|
963
|
-
currentSystemClk = _this.externalClk / _this.clkDivider;
|
|
964
|
-
} else {
|
|
965
|
-
if (_this.externalClk <= _this.MIN_PLL || _this.externalClk > _this.MAX_PLL) {
|
|
966
|
-
currentSystemClk = _this.externalClk / _this.clkDivider;
|
|
967
|
-
} else {
|
|
968
|
-
currentSystemClk = _this.externalClk * 4 / _this.clkDivider;
|
|
969
|
-
}
|
|
970
|
-
}
|
|
971
|
-
return Math.round(currentSystemClk);
|
|
972
|
-
});
|
|
973
|
-
_defineProperty(this, "getHfIntOsc", function () {
|
|
974
|
-
var _this$HFInternalClk$r3, _this$HFInternalClk3;
|
|
975
|
-
return (_this$HFInternalClk$r3 = (_this$HFInternalClk3 = _this.HFInternalClk) === null || _this$HFInternalClk3 === void 0 ? void 0 : _this$HFInternalClk3.replace("_MHz", "000000")) !== null && _this$HFInternalClk$r3 !== void 0 ? _this$HFInternalClk$r3 : "1000000";
|
|
976
|
-
});
|
|
977
|
-
_defineProperty(this, "getMfIntOsc", function () {
|
|
978
|
-
return _this.mfintosc;
|
|
979
|
-
});
|
|
980
|
-
_defineProperty(this, "getMfIntOsc_31KHz", function () {
|
|
981
|
-
return _this.mfintosc_31KHz;
|
|
982
|
-
});
|
|
983
|
-
_defineProperty(this, "getLfIntOsc", function () {
|
|
984
|
-
return _this.lfintosc;
|
|
985
|
-
});
|
|
986
|
-
_defineProperty(this, "getExtOsc", function () {
|
|
987
|
-
return _this.externalClk.toString();
|
|
988
|
-
});
|
|
989
|
-
_defineProperty(this, "getSosc", function () {
|
|
990
|
-
return _this.sosc;
|
|
991
|
-
});
|
|
992
|
-
this.oscSelect = oscSelect;
|
|
993
|
-
this.HFInternalClk = HFInternalClk;
|
|
994
|
-
this.externalClk = externalClk;
|
|
995
|
-
this.clkDivider = clkDivider;
|
|
996
|
-
});
|
|
997
|
-
|
|
998
|
-
/***/ }),
|
|
999
|
-
|
|
1000
|
-
/***/ "./src/CreatorFunctions.ts":
|
|
1001
|
-
/*!*********************************!*\
|
|
1002
|
-
!*** ./src/CreatorFunctions.ts ***!
|
|
1003
|
-
\*********************************/
|
|
1004
|
-
/*! exports provided: getCreatorFunctions */
|
|
1005
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1006
|
-
|
|
1007
|
-
"use strict";
|
|
1008
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1009
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCreatorFunctions", function() { return getCreatorFunctions; });
|
|
1010
|
-
var getCreatorFunctions = function getCreatorFunctions() {
|
|
1011
|
-
return {
|
|
1012
|
-
shouldImport: shouldImport
|
|
1013
|
-
};
|
|
1014
|
-
};
|
|
1015
|
-
var shouldImport = function shouldImport(importKey, state) {
|
|
1016
|
-
return true;
|
|
1017
|
-
};
|
|
1018
|
-
|
|
1019
|
-
/***/ }),
|
|
1020
|
-
|
|
1021
|
-
/***/ "./src/DerivedData.ts":
|
|
1022
|
-
/*!****************************!*\
|
|
1023
|
-
!*** ./src/DerivedData.ts ***!
|
|
1024
|
-
\****************************/
|
|
1025
|
-
/*! exports provided: getDerivedData, EmptyDerivedData, MyDerivedData */
|
|
1026
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1027
|
-
|
|
1028
|
-
"use strict";
|
|
1029
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1030
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDerivedData", function() { return getDerivedData; });
|
|
1031
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmptyDerivedData", function() { return EmptyDerivedData; });
|
|
1032
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MyDerivedData", function() { return MyDerivedData; });
|
|
1033
|
-
/* harmony import */ var _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microchip/scf-common/lib/Processor */ "./node_modules/@microchip/scf-common/lib/Processor.js");
|
|
1034
|
-
/* harmony import */ var _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__);
|
|
1035
|
-
/* harmony import */ var _ClockCalculator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ClockCalculator */ "./src/ClockCalculator.ts");
|
|
1036
|
-
/* harmony import */ var _StringConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./StringConstants */ "./src/StringConstants.ts");
|
|
1037
|
-
/* harmony import */ var _generated_module_src_pins_PCPHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../generated_module/src/pins/PCPHelper */ "./generated_module/src/pins/PCPHelper.ts");
|
|
1038
|
-
/* harmony import */ var _microchip_sys_init_basic_interface__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @microchip/sys-init-basic-interface */ "./node_modules/@microchip/sys-init-basic-interface/lib/index.js");
|
|
1039
|
-
/* harmony import */ var _microchip_sys_init_basic_interface__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_microchip_sys_init_basic_interface__WEBPACK_IMPORTED_MODULE_4__);
|
|
1040
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1041
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
1042
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
1043
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1044
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1045
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
1046
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
var getDerivedData = function getDerivedData(dataModel) {
|
|
1053
|
-
if (dataModel) {
|
|
1054
|
-
return new MyDerivedData(dataModel);
|
|
1055
|
-
}
|
|
1056
|
-
return new EmptyDerivedData();
|
|
1057
|
-
};
|
|
1058
|
-
|
|
1059
|
-
//This data will be used at the creator stage and relies on only the state
|
|
1060
|
-
var EmptyDerivedData = /*#__PURE__*/_createClass(function EmptyDerivedData() {
|
|
1061
|
-
_classCallCheck(this, EmptyDerivedData);
|
|
1062
|
-
_defineProperty(this, "getMyFunctions", function () {
|
|
1063
|
-
return {};
|
|
1064
|
-
});
|
|
1065
|
-
_defineProperty(this, "getModel", function () {
|
|
1066
|
-
return undefined;
|
|
1067
|
-
});
|
|
1068
|
-
});
|
|
1069
|
-
|
|
1070
|
-
//This data will be used at the processor stage
|
|
1071
|
-
var MyDerivedData = /*#__PURE__*/_createClass(function MyDerivedData(dataModel) {
|
|
1072
|
-
var _this = this;
|
|
1073
|
-
_classCallCheck(this, MyDerivedData);
|
|
1074
|
-
_defineProperty(this, "dataModel", void 0);
|
|
1075
|
-
_defineProperty(this, "clockCalculator", void 0);
|
|
1076
|
-
_defineProperty(this, "getClockCalculator", function () {
|
|
1077
|
-
if (!_this.clockCalculator) {
|
|
1078
|
-
var _this$getModel$getCom, _this$getModel$getCom2, _this$getModel$getCom3, _this$getModel$getCom4;
|
|
1079
|
-
_this.clockCalculator = new _ClockCalculator__WEBPACK_IMPORTED_MODULE_1__["ClockCalculator"]((_this$getModel$getCom = _this.getModel().getComponentValue("noscOsccon1")) !== null && _this$getModel$getCom !== void 0 ? _this$getModel$getCom : "", (_this$getModel$getCom2 = _this.getModel().getComponentValue("hffrqOscfrq")) !== null && _this$getModel$getCom2 !== void 0 ? _this$getModel$getCom2 : "", (_this$getModel$getCom3 = _this.getModel().getComponentValue("externalClk")) !== null && _this$getModel$getCom3 !== void 0 ? _this$getModel$getCom3 : 32768, parseInt((_this$getModel$getCom4 = _this.getModel().getComponentValue("ndivOsccon1")) !== null && _this$getModel$getCom4 !== void 0 ? _this$getModel$getCom4 : ""));
|
|
1080
|
-
}
|
|
1081
|
-
return _this.clockCalculator;
|
|
1082
|
-
});
|
|
1083
|
-
_defineProperty(this, "getMyFunctions", function () {
|
|
1084
|
-
return {
|
|
1085
|
-
moduleName: _this.getModuleName,
|
|
1086
|
-
alerts: _this.getMyAlerts,
|
|
1087
|
-
isEnabled: _this.isEnabled,
|
|
1088
|
-
isVisible: _this.isVisible,
|
|
1089
|
-
coscOsccon2: _this.getResOscValue,
|
|
1090
|
-
currentSystemClk: function currentSystemClk() {
|
|
1091
|
-
return _this.getClockCalculator().getCurrentSystemClk();
|
|
1092
|
-
},
|
|
1093
|
-
"fosc-hz_payload": function foscHz_payload() {
|
|
1094
|
-
return _this.getClockCalculator().getCurrentSystemClk().toString();
|
|
1095
|
-
},
|
|
1096
|
-
sys_init_basic_interface_results: _this.sys_init_basic_interface_results,
|
|
1097
|
-
config_device_results: _this.config_device_results,
|
|
1098
|
-
templateData: _this.getTemplateData,
|
|
1099
|
-
overrideDefaultValues: _this.overrideDefaultValue,
|
|
1100
|
-
configbits_basic_interface_args: _this.getConfigbitsBasicInterfaceArgs,
|
|
1101
|
-
"osc-clocks_payload": _this.getOscClocksProcessedPayload,
|
|
1102
|
-
"clock-basic-interface_payload": _this.getClockProcessedPayload,
|
|
1103
|
-
doNotShow: function doNotShow() {
|
|
1104
|
-
return false;
|
|
1105
|
-
},
|
|
1106
|
-
getPinsLogic: _generated_module_src_pins_PCPHelper__WEBPACK_IMPORTED_MODULE_3__["getPinsLogic"],
|
|
1107
|
-
importName: _this.friendlyImportName
|
|
1108
|
-
};
|
|
1109
|
-
});
|
|
1110
|
-
_defineProperty(this, "friendlyImportName", function (importKey) {
|
|
1111
|
-
if (importKey === "scf_pic8_osc_v1") return "Oscillator Hardware";
|
|
1112
|
-
if (importKey === "sys_init_basic_interface") return "system.c Initialize()";
|
|
1113
|
-
if (importKey === "config_device") return "Configuration Device";
|
|
1114
|
-
if (importKey === "configbits_basic_interface") return "Configuration Request";
|
|
1115
|
-
if (importKey === "pins_interface") return "Pins";
|
|
1116
|
-
return importKey;
|
|
1117
|
-
});
|
|
1118
|
-
_defineProperty(this, "sys_init_basic_interface_results", function () {
|
|
1119
|
-
return {
|
|
1120
|
-
initializers: [{
|
|
1121
|
-
name: "CLOCK_Initialize();",
|
|
1122
|
-
header: {
|
|
1123
|
-
name: "clock.h",
|
|
1124
|
-
path: "system/"
|
|
1125
|
-
},
|
|
1126
|
-
priority: _microchip_sys_init_basic_interface__WEBPACK_IMPORTED_MODULE_4__["INIT_PRIORITY"].START
|
|
1127
|
-
}]
|
|
1128
|
-
};
|
|
1129
|
-
});
|
|
1130
|
-
_defineProperty(this, "getConfigbitsBasicInterfaceArgs", function () {
|
|
1131
|
-
return {
|
|
1132
|
-
configsReq: ["FEXTOSC", "CLKOUTEN", "MCLRE", "LVP", "RSTOSC"]
|
|
1133
|
-
};
|
|
1134
|
-
});
|
|
1135
|
-
_defineProperty(this, "getDynamicComponetDefaultValue", function (componentName) {
|
|
1136
|
-
var _this$dataModel$getIm, _selectedOptionVal;
|
|
1137
|
-
var externalClkSelectedOptions = (_this$dataModel$getIm = _this.dataModel.getImportValue("configbits_basic_interface")) === null || _this$dataModel$getIm === void 0 || (_this$dataModel$getIm = _this$dataModel$getIm.configsResp) === null || _this$dataModel$getIm === void 0 ? void 0 : _this$dataModel$getIm[componentName];
|
|
1138
|
-
var selectedOptionVal;
|
|
1139
|
-
if (externalClkSelectedOptions) {
|
|
1140
|
-
selectedOptionVal = externalClkSelectedOptions["defaultValue"]["value"];
|
|
1141
|
-
}
|
|
1142
|
-
return (_selectedOptionVal = selectedOptionVal) !== null && _selectedOptionVal !== void 0 ? _selectedOptionVal : undefined;
|
|
1143
|
-
});
|
|
1144
|
-
_defineProperty(this, "getResOscValue", function () {
|
|
1145
|
-
var resetOscValue = _this.getDynamicComponetDefaultValue("RSTOSC");
|
|
1146
|
-
var actualOscValue;
|
|
1147
|
-
if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("4x PLL")) !== -1) {
|
|
1148
|
-
actualOscValue = "EXTOSC with 4x PLL";
|
|
1149
|
-
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("Secondary Oscillator")) !== -1) {
|
|
1150
|
-
actualOscValue = "SOSC";
|
|
1151
|
-
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("Low-Frequency")) !== -1) {
|
|
1152
|
-
actualOscValue = "LFINTOSC";
|
|
1153
|
-
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("HFINTOSC with HFFRQ = 4 MHz and CDIV = 4:1")) !== -1) {
|
|
1154
|
-
actualOscValue = "HFINTOSC";
|
|
1155
|
-
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("HFINTOSC with HFFRQ = 64 MHz and CDIV = 1:1")) !== -1) {
|
|
1156
|
-
actualOscValue = "HFINTOSC";
|
|
1157
|
-
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("FEXTOSC")) !== -1) {
|
|
1158
|
-
actualOscValue = "EXTOSC";
|
|
1159
|
-
} else {
|
|
1160
|
-
actualOscValue = undefined;
|
|
1161
|
-
}
|
|
1162
|
-
return actualOscValue;
|
|
1163
|
-
});
|
|
1164
|
-
_defineProperty(this, "getPLLStatus", function () {
|
|
1165
|
-
var pllStatus = _this.getResOscValue();
|
|
1166
|
-
var pllEnable = _this.dataModel.isComponentValue("pllenOscen");
|
|
1167
|
-
var clkSrcVal = _this.dataModel.getComponentValue("noscOsccon1");
|
|
1168
|
-
if (pllStatus === "EXTOSC with 4x PLL") {
|
|
1169
|
-
return true;
|
|
1170
|
-
} else if (pllEnable === true) {
|
|
1171
|
-
return true;
|
|
1172
|
-
} else if ((clkSrcVal === null || clkSrcVal === void 0 ? void 0 : clkSrcVal.indexOf("4x PLL")) !== -1) {
|
|
1173
|
-
return true;
|
|
1174
|
-
} else if ((clkSrcVal === null || clkSrcVal === void 0 ? void 0 : clkSrcVal.indexOf("2x PLL")) !== -1) {
|
|
1175
|
-
return true;
|
|
1176
|
-
} else {
|
|
1177
|
-
return false;
|
|
1178
|
-
}
|
|
1179
|
-
});
|
|
1180
|
-
_defineProperty(this, "getOscClocksProcessedPayload", function () {
|
|
1181
|
-
var _this$getClockCalcula, _this$getClockCalcula2, _this$getClockCalcula3, _this$getClockCalcula4, _this$getClockCalcula5, _this$getClockCalcula6, _this$getClockCalcula7;
|
|
1182
|
-
var oscObj = {
|
|
1183
|
-
extosc: (_this$getClockCalcula = _this.getClockCalculator().getExtOsc()) !== null && _this$getClockCalcula !== void 0 ? _this$getClockCalcula : "32768",
|
|
1184
|
-
fosc: (_this$getClockCalcula2 = _this.getClockCalculator().getCurrentSystemClk().toString()) !== null && _this$getClockCalcula2 !== void 0 ? _this$getClockCalcula2 : "1000000",
|
|
1185
|
-
hfintosc: (_this$getClockCalcula3 = _this.getClockCalculator().getHfIntOsc()) !== null && _this$getClockCalcula3 !== void 0 ? _this$getClockCalcula3 : "1000000",
|
|
1186
|
-
lfintosc: (_this$getClockCalcula4 = _this.getClockCalculator().getLfIntOsc()) !== null && _this$getClockCalcula4 !== void 0 ? _this$getClockCalcula4 : "31000",
|
|
1187
|
-
mfintosc: (_this$getClockCalcula5 = _this.getClockCalculator().getMfIntOsc()) !== null && _this$getClockCalcula5 !== void 0 ? _this$getClockCalcula5 : "500000",
|
|
1188
|
-
mfintosc_31Khz: (_this$getClockCalcula6 = _this.getClockCalculator().getMfIntOsc_31KHz()) !== null && _this$getClockCalcula6 !== void 0 ? _this$getClockCalcula6 : "31250",
|
|
1189
|
-
sosc: (_this$getClockCalcula7 = _this.getClockCalculator().getSosc()) !== null && _this$getClockCalcula7 !== void 0 ? _this$getClockCalcula7 : "32768"
|
|
1190
|
-
};
|
|
1191
|
-
var hasSosc = _this.dataModel.isComponentValue("soscenOscen") !== undefined ? true : false;
|
|
1192
|
-
if (hasSosc) {
|
|
1193
|
-
oscObj.hasSosc = true;
|
|
1194
|
-
oscObj.soscEnabled = _this.dataModel.isComponentValue("soscenOscen");
|
|
1195
|
-
oscObj.soscPowerMode = _this.dataModel.getComponentValue("soscpwrOsccon3");
|
|
1196
|
-
}
|
|
1197
|
-
return oscObj;
|
|
1198
|
-
});
|
|
1199
|
-
_defineProperty(this, "getClockProcessedPayload", function () {
|
|
1200
|
-
var _this$getClockCalcula8, _this$getClockCalcula9, _this$getClockCalcula10, _this$getClockCalcula11, _this$getClockCalcula12, _this$getClockCalcula13, _this$getClockCalcula14;
|
|
1201
|
-
var clockObj = {
|
|
1202
|
-
fosc: (_this$getClockCalcula8 = _this.getClockCalculator().getCurrentSystemClk().toString()) !== null && _this$getClockCalcula8 !== void 0 ? _this$getClockCalcula8 : "1000000",
|
|
1203
|
-
extosc: (_this$getClockCalcula9 = _this.getClockCalculator().getExtOsc()) !== null && _this$getClockCalcula9 !== void 0 ? _this$getClockCalcula9 : "32768",
|
|
1204
|
-
hfintosc: (_this$getClockCalcula10 = _this.getClockCalculator().getHfIntOsc()) !== null && _this$getClockCalcula10 !== void 0 ? _this$getClockCalcula10 : "1000000",
|
|
1205
|
-
lfintosc: (_this$getClockCalcula11 = _this.getClockCalculator().getLfIntOsc()) !== null && _this$getClockCalcula11 !== void 0 ? _this$getClockCalcula11 : "31000",
|
|
1206
|
-
mfintosc: (_this$getClockCalcula12 = _this.getClockCalculator().getMfIntOsc()) !== null && _this$getClockCalcula12 !== void 0 ? _this$getClockCalcula12 : "500000",
|
|
1207
|
-
mfintosc_31Khz: (_this$getClockCalcula13 = _this.getClockCalculator().getMfIntOsc_31KHz()) !== null && _this$getClockCalcula13 !== void 0 ? _this$getClockCalcula13 : "31250",
|
|
1208
|
-
sosc: (_this$getClockCalcula14 = _this.getClockCalculator().getSosc()) !== null && _this$getClockCalcula14 !== void 0 ? _this$getClockCalcula14 : "32768"
|
|
1209
|
-
};
|
|
1210
|
-
var hasSosc = _this.dataModel.getComponent("soscenOscen") !== undefined ? true : false;
|
|
1211
|
-
if (hasSosc) {
|
|
1212
|
-
clockObj.hasSosc = true;
|
|
1213
|
-
clockObj.soscEnabled = _this.dataModel.isComponentValue("soscenOscen");
|
|
1214
|
-
clockObj.soscPowerMode = _this.dataModel.getComponentValue("soscpwrOsccon3");
|
|
1215
|
-
}
|
|
1216
|
-
return clockObj;
|
|
1217
|
-
});
|
|
1218
|
-
_defineProperty(this, "getModuleName", function () {
|
|
1219
|
-
return "Clock Control";
|
|
1220
|
-
});
|
|
1221
|
-
_defineProperty(this, "getModel", function () {
|
|
1222
|
-
return _this.dataModel;
|
|
1223
|
-
});
|
|
1224
|
-
_defineProperty(this, "getTemplateData", function () {
|
|
1225
|
-
var _this$getPLLStatus;
|
|
1226
|
-
var headers = {
|
|
1227
|
-
name: "clock.h",
|
|
1228
|
-
path: "../"
|
|
1229
|
-
};
|
|
1230
|
-
var initRegisters = _this.dataModel.getRegisterValues();
|
|
1231
|
-
//const registerValues = this.dataModel.getRegisterValues();
|
|
1232
|
-
return {
|
|
1233
|
-
deviceFrequency: _this.getClockCalculator().getCurrentSystemClk().toString(),
|
|
1234
|
-
initRegisters: initRegisters,
|
|
1235
|
-
header: headers,
|
|
1236
|
-
moduleNameUpperCase: _this.getModuleName().toUpperCase(),
|
|
1237
|
-
moduleNameLowerCase: _this.getModuleName().toLowerCase(),
|
|
1238
|
-
PackageVersion: "4.3.7",
|
|
1239
|
-
isPllEnabled: (_this$getPLLStatus = _this.getPLLStatus()) !== null && _this$getPLLStatus !== void 0 ? _this$getPLLStatus : false,
|
|
1240
|
-
//...registerValues,
|
|
1241
|
-
|
|
1242
|
-
initializerOptimize: _this.getModel().getComponentValue("generateInitializerCode") !== "Initialize all registers" ? true : false,
|
|
1243
|
-
generateCommentedCode: _this.getModel().getComponentValue("generateInitializerCode") === "Generate with commented unmodified registers" ? true : false
|
|
1244
|
-
};
|
|
1245
|
-
});
|
|
1246
|
-
_defineProperty(this, "config_device_results", function () {
|
|
1247
|
-
return {
|
|
1248
|
-
headers: [{
|
|
1249
|
-
name: "clock.h",
|
|
1250
|
-
path: "system/"
|
|
1251
|
-
}]
|
|
1252
|
-
};
|
|
1253
|
-
});
|
|
1254
|
-
_defineProperty(this, "isEnabled", function (componentName) {
|
|
1255
|
-
var _this$dataModel$getCo;
|
|
1256
|
-
switch (componentName) {
|
|
1257
|
-
case "hffrqOscfrq":
|
|
1258
|
-
return ((_this$dataModel$getCo = _this.dataModel.getComponentValue("noscOsccon1")) === null || _this$dataModel$getCo === void 0 ? void 0 : _this$dataModel$getCo.indexOf("HF")) != -1;
|
|
1259
|
-
case "currentSystemClk":
|
|
1260
|
-
return false;
|
|
1261
|
-
case "lfIntOscFreq":
|
|
1262
|
-
return false;
|
|
1263
|
-
default:
|
|
1264
|
-
return true;
|
|
1265
|
-
}
|
|
1266
|
-
});
|
|
1267
|
-
_defineProperty(this, "isVisible", function (componentName) {
|
|
1268
|
-
var componentValue = _this.dataModel.getComponentValue("noscOsccon1");
|
|
1269
|
-
switch (componentName) {
|
|
1270
|
-
case "externalClk":
|
|
1271
|
-
if (componentValue === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC || componentValue === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC_4xPLL) {
|
|
1272
|
-
return true;
|
|
1273
|
-
} else {
|
|
1274
|
-
return false;
|
|
1275
|
-
}
|
|
1276
|
-
case "lfIntOscFreq":
|
|
1277
|
-
if (componentValue != _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].LFINTOSC) {
|
|
1278
|
-
return false;
|
|
1279
|
-
} else {
|
|
1280
|
-
return true;
|
|
1281
|
-
}
|
|
1282
|
-
case "hffrqOscfrq":
|
|
1283
|
-
if (componentValue != _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].HFINTOSC && componentValue != _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].HFINTOSC_2xPLL) {
|
|
1284
|
-
return false;
|
|
1285
|
-
} else {
|
|
1286
|
-
return true;
|
|
1287
|
-
}
|
|
1288
|
-
default:
|
|
1289
|
-
return true;
|
|
1290
|
-
}
|
|
1291
|
-
});
|
|
1292
|
-
_defineProperty(this, "getfoscOptions", function () {
|
|
1293
|
-
var _this$dataModel$getHa, _this$dataModel$getHa2, _MHz$replace, _MHz;
|
|
1294
|
-
var foscOptions = (_this$dataModel$getHa = (_this$dataModel$getHa2 = _this.dataModel.getHardware()) === null || _this$dataModel$getHa2 === void 0 || (_this$dataModel$getHa2 = _this$dataModel$getHa2.getPeripheral()) === null || _this$dataModel$getHa2 === void 0 || (_this$dataModel$getHa2 = _this$dataModel$getHa2.registers.OSCFRQ) === null || _this$dataModel$getHa2 === void 0 || (_this$dataModel$getHa2 = _this$dataModel$getHa2.settings) === null || _this$dataModel$getHa2 === void 0 ? void 0 : _this$dataModel$getHa2.HFFRQ.options) !== null && _this$dataModel$getHa !== void 0 ? _this$dataModel$getHa : [];
|
|
1295
|
-
var defaultVal;
|
|
1296
|
-
var refClk = parseInt((_MHz$replace = (_MHz = "1_MHz") === null || _MHz === void 0 ? void 0 : _MHz.replace("_MHz", "")) !== null && _MHz$replace !== void 0 ? _MHz$replace : 0);
|
|
1297
|
-
if (foscOptions) {
|
|
1298
|
-
foscOptions.forEach(function (option) {
|
|
1299
|
-
var _option$name$replace, _option$name;
|
|
1300
|
-
var HFClk = parseInt((_option$name$replace = (_option$name = option.name) === null || _option$name === void 0 ? void 0 : _option$name.replace("_MHz", "")) !== null && _option$name$replace !== void 0 ? _option$name$replace : 0);
|
|
1301
|
-
if (HFClk > refClk) {
|
|
1302
|
-
refClk = HFClk;
|
|
1303
|
-
defaultVal = option.name;
|
|
1304
|
-
}
|
|
1305
|
-
});
|
|
1306
|
-
}
|
|
1307
|
-
return defaultVal;
|
|
1308
|
-
});
|
|
1309
|
-
_defineProperty(this, "overrideDefaultValue", function (componentName) {
|
|
1310
|
-
var defVal = undefined;
|
|
1311
|
-
switch (componentName) {
|
|
1312
|
-
case "hffrqOscfrq":
|
|
1313
|
-
defVal = _this.getfoscOptions();
|
|
1314
|
-
break;
|
|
1315
|
-
}
|
|
1316
|
-
return defVal;
|
|
1317
|
-
});
|
|
1318
|
-
_defineProperty(this, "getMyAlerts", function () {
|
|
1319
|
-
var _this$getDynamicCompo, _this$getModel$getCom5, _this$getModel$getCom6, _this$dataModel$getCo2, _this$dataModel$getCo3;
|
|
1320
|
-
var alerts = [];
|
|
1321
|
-
var selectedOptionVal = (_this$getDynamicCompo = _this.getDynamicComponetDefaultValue("FEXTOSC")) !== null && _this$getDynamicCompo !== void 0 ? _this$getDynamicCompo : "";
|
|
1322
|
-
var noscOsccon1 = _this.dataModel.getComponentValue("noscOsccon1");
|
|
1323
|
-
if (noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC_4xPLL || noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC) {
|
|
1324
|
-
alerts.push({
|
|
1325
|
-
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Hint,
|
|
1326
|
-
text: 'Please configure required "External Oscillator Selection" in System Module config bits'
|
|
1327
|
-
});
|
|
1328
|
-
}
|
|
1329
|
-
if (noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC_4xPLL && (((_this$getModel$getCom5 = _this.getModel().getComponentValue("externalClk")) !== null && _this$getModel$getCom5 !== void 0 ? _this$getModel$getCom5 : 0) <= _this.getClockCalculator().MIN_PLL || ((_this$getModel$getCom6 = _this.getModel().getComponentValue("externalClk")) !== null && _this$getModel$getCom6 !== void 0 ? _this$getModel$getCom6 : 0) > _this.getClockCalculator().MAX_PLL)) {
|
|
1330
|
-
alerts.push({
|
|
1331
|
-
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1332
|
-
text: "The frequency selected does not fall within the PLL locking range. Therefore, the actual frequency produced by hardware maybe unpredictable when the PLL is enabled. Either change the clock frequency or select a different option in Oscillator select."
|
|
1333
|
-
});
|
|
1334
|
-
}
|
|
1335
|
-
if (noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC_4xPLL || noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC) {
|
|
1336
|
-
var _this$getModel$getCom7;
|
|
1337
|
-
if ((selectedOptionVal === null || selectedOptionVal === void 0 ? void 0 : selectedOptionVal.indexOf("external clock")) != -1 && _this.getClockCalculator().getCurrentSystemClk() > _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_64MHz) {
|
|
1338
|
-
alerts.push({
|
|
1339
|
-
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1340
|
-
text: "External clock frequency is greater than recommended value (" + _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_64MHz + " Hz)"
|
|
1341
|
-
});
|
|
1342
|
-
}
|
|
1343
|
-
if ((selectedOptionVal === null || selectedOptionVal === void 0 ? void 0 : selectedOptionVal.indexOf("crystal oscillator")) != -1 && ((_this$getModel$getCom7 = _this.getModel().getComponentValue("externalClk")) !== null && _this$getModel$getCom7 !== void 0 ? _this$getModel$getCom7 : 0) > 16000000 && _this.getClockCalculator().getCurrentSystemClk() > _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_20MHz) {
|
|
1344
|
-
alerts.push({
|
|
1345
|
-
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1346
|
-
text: "External clock frequency is greater than recommended value (" + _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_20MHz + " Hz)"
|
|
1347
|
-
});
|
|
1348
|
-
}
|
|
1349
|
-
if (selectedOptionVal.indexOf("Oscillator not enabled") != -1 && _this.getClockCalculator().getCurrentSystemClk() > _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_32MHz) {
|
|
1350
|
-
alerts.push({
|
|
1351
|
-
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1352
|
-
text: "External clock frequency is greater than recommended value (" + _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_32MHz + " Hz)"
|
|
1353
|
-
});
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
var HFClk = parseInt((_this$dataModel$getCo2 = (_this$dataModel$getCo3 = _this.dataModel.getComponentValue("hffrqOscfrq")) === null || _this$dataModel$getCo3 === void 0 ? void 0 : _this$dataModel$getCo3.replace("_MHz", "")) !== null && _this$dataModel$getCo2 !== void 0 ? _this$dataModel$getCo2 : "0");
|
|
1357
|
-
if (_this.dataModel.getComponentValue("noscOsccon1") === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].HFINTOSC_2xPLL && (HFClk == 1 || HFClk == 2 || HFClk == 4 || HFClk == 32)) {
|
|
1358
|
-
alerts.push({
|
|
1359
|
-
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1360
|
-
text: "The frequency set in HF Internal Clock may not get generated by the clock hardware properly since it does not fall within the 2xPLL range of 8-16 MHz. Therefore, it is recommended that the option 'HFINTOSC' be selected in the Oscillator select combo box."
|
|
1361
|
-
});
|
|
1362
|
-
}
|
|
1363
|
-
return alerts;
|
|
1364
|
-
});
|
|
1365
|
-
this.dataModel = dataModel;
|
|
1366
|
-
});
|
|
1367
|
-
|
|
1368
|
-
/***/ }),
|
|
1369
|
-
|
|
1370
|
-
/***/ "./src/PinsLogic.ts":
|
|
1371
|
-
/*!**************************!*\
|
|
1372
|
-
!*** ./src/PinsLogic.ts ***!
|
|
1373
|
-
\**************************/
|
|
1374
|
-
/*! exports provided: getCompletePinData, getRowData */
|
|
1375
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1376
|
-
|
|
1377
|
-
"use strict";
|
|
1378
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1379
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCompletePinData", function() { return getCompletePinData; });
|
|
1380
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRowData", function() { return getRowData; });
|
|
1381
|
-
/* 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");
|
|
1382
|
-
/* 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__);
|
|
1383
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1384
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, 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; } } }; }
|
|
1385
|
-
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); }
|
|
1386
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
1387
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1388
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1389
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1390
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
1391
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1392
|
-
|
|
1393
|
-
// provide complete dynamic data for all pin rows. It overrides static pindata.json
|
|
1394
|
-
var getCompletePinData = function getCompletePinData(appModel) {
|
|
1395
|
-
// way to programatically override the json data
|
|
1396
|
-
return {};
|
|
1397
|
-
};
|
|
1398
|
-
|
|
1399
|
-
// overrides pin data for a particular row based on model.
|
|
1400
|
-
function getRowData(appModel, rowData) {
|
|
1401
|
-
var _appModel$getImportVa, _appModel$getImportVa2, _appModel$getImportVa3, _appModel$getImportVa4;
|
|
1402
|
-
var retRowJSONdata = rowData;
|
|
1403
|
-
var rowActions = [];
|
|
1404
|
-
var clockOutEnable = (_appModel$getImportVa = appModel.getImportValue("configbits_basic_interface")) === null || _appModel$getImportVa === void 0 || (_appModel$getImportVa = _appModel$getImportVa.configsResp) === null || _appModel$getImportVa === void 0 ? void 0 : _appModel$getImportVa["CLKOUTEN"];
|
|
1405
|
-
if (clockOutEnable) {
|
|
1406
|
-
var _appModel$getPCPHelpe;
|
|
1407
|
-
delete clockOutEnable["setting"];
|
|
1408
|
-
delete clockOutEnable["displayOptionSetting"];
|
|
1409
|
-
var selectedOption = clockOutEnable["defaultValue"]["value"];
|
|
1410
|
-
if (selectedOption.indexOf("CLKOUT function is enabled") != -1) {
|
|
1411
|
-
if (rowData.name === "clockout") {
|
|
1412
|
-
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1413
|
-
behaviourMeta: {
|
|
1414
|
-
lockPinRegEx: "CLKOUT"
|
|
1415
|
-
}
|
|
1416
|
-
});
|
|
1417
|
-
}
|
|
1418
|
-
}
|
|
1419
|
-
var isPic18ClkOut = selectedOption === "CLKOUT function is enabled" || selectedOption === "CLKOUT function is disabled" ? true : false;
|
|
1420
|
-
var actionArr = (_appModel$getPCPHelpe = appModel.getPCPHelper) === null || _appModel$getPCPHelpe === void 0 ? void 0 : _appModel$getPCPHelpe.call(appModel).stateActionBuilder(rowData).rowWithName("clockout").forComponent(clockOutEnable).addIfLockedSetValue("CLKOUT", isPic18ClkOut ? "CLKOUT function is enabled" : "CLKOUT function is enabled; FOSC/4 clock appears at OSC2").addIfUnLockedSetValue(".*", isPic18ClkOut ? "CLKOUT function is disabled" : "CLKOUT function is disabled; i/o or oscillator function on OSC2").build();
|
|
1421
|
-
// Provide the module reference(scriptID) of remote config bits module
|
|
1422
|
-
var _iterator = _createForOfIteratorHelper(actionArr),
|
|
1423
|
-
_step;
|
|
1424
|
-
try {
|
|
1425
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
1426
|
-
var eachAction = _step.value;
|
|
1427
|
-
var lockedState = eachAction.state[_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["pin_state"].LOCKED];
|
|
1428
|
-
if (lockedState) {
|
|
1429
|
-
var _appModel$getAssigned;
|
|
1430
|
-
lockedState.meta = {
|
|
1431
|
-
to: (_appModel$getAssigned = appModel.getAssignedImport("configbits_basic_interface")) === null || _appModel$getAssigned === void 0 || (_appModel$getAssigned = _appModel$getAssigned.handle) === null || _appModel$getAssigned === void 0 ? void 0 : _appModel$getAssigned.providerId
|
|
1432
|
-
};
|
|
1433
|
-
}
|
|
1434
|
-
var unlockedState = eachAction.state[_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["pin_state"].UNLOCK];
|
|
1435
|
-
if (unlockedState) {
|
|
1436
|
-
var _appModel$getAssigned2;
|
|
1437
|
-
unlockedState.meta = {
|
|
1438
|
-
to: (_appModel$getAssigned2 = appModel.getAssignedImport("configbits_basic_interface")) === null || _appModel$getAssigned2 === void 0 || (_appModel$getAssigned2 = _appModel$getAssigned2.handle) === null || _appModel$getAssigned2 === void 0 ? void 0 : _appModel$getAssigned2.providerId
|
|
1439
|
-
};
|
|
1440
|
-
}
|
|
1441
|
-
rowActions.push(eachAction);
|
|
1442
|
-
}
|
|
1443
|
-
} catch (err) {
|
|
1444
|
-
_iterator.e(err);
|
|
1445
|
-
} finally {
|
|
1446
|
-
_iterator.f();
|
|
1447
|
-
}
|
|
1448
|
-
}
|
|
1449
|
-
var extClkSelect = (_appModel$getImportVa2 = appModel.getImportValue("configbits_basic_interface")) === null || _appModel$getImportVa2 === void 0 || (_appModel$getImportVa2 = _appModel$getImportVa2.configsResp) === null || _appModel$getImportVa2 === void 0 ? void 0 : _appModel$getImportVa2["FEXTOSC"];
|
|
1450
|
-
if (extClkSelect) {
|
|
1451
|
-
var _appModel$getComponen;
|
|
1452
|
-
delete extClkSelect["setting"];
|
|
1453
|
-
delete extClkSelect["displayOptionSetting"];
|
|
1454
|
-
var _selectedOption = extClkSelect["defaultValue"]["value"];
|
|
1455
|
-
if (_selectedOption.indexOf("(external clock)") != -1 || _selectedOption.indexOf("EC") != -1) {
|
|
1456
|
-
if (rowData.name === "osc1" || rowData.name === "osc2") {
|
|
1457
|
-
retRowJSONdata = undefined;
|
|
1458
|
-
}
|
|
1459
|
-
}
|
|
1460
|
-
if (_selectedOption.indexOf("(crystal oscillator)") != -1) {
|
|
1461
|
-
if (rowData.name === "clockin") {
|
|
1462
|
-
retRowJSONdata = undefined;
|
|
1463
|
-
}
|
|
1464
|
-
}
|
|
1465
|
-
if (_selectedOption.indexOf("Oscillator not enabled") != -1 || _selectedOption.indexOf("Reserved") != -1) {
|
|
1466
|
-
if (rowData.name === "clockin" || rowData.name === "osc1" || rowData.name === "osc2") {
|
|
1467
|
-
retRowJSONdata = undefined;
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1470
|
-
// Restricting pin actions for clockin, osc1 and osc2 pin rows
|
|
1471
|
-
var mclrKey = (_appModel$getComponen = appModel.getComponent("mclrUnusedKey")) === null || _appModel$getComponen === void 0 ? void 0 : _appModel$getComponen.component;
|
|
1472
|
-
if (mclrKey) {
|
|
1473
|
-
var _appModel$getPCPHelpe2, _appModel$getPCPHelpe3, _appModel$getPCPHelpe4;
|
|
1474
|
-
rowActions = rowActions.concat((_appModel$getPCPHelpe2 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe2 === void 0 ? void 0 : _appModel$getPCPHelpe2.call(appModel).stateActionBuilder(rowData).rowWithName("clockin").forComponent(mclrKey).addIfLockedSetValue(".*", "").addIfUnLockedSetValue(".*", "").build());
|
|
1475
|
-
rowActions = rowActions.concat((_appModel$getPCPHelpe3 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe3 === void 0 ? void 0 : _appModel$getPCPHelpe3.call(appModel).stateActionBuilder(rowData).rowWithName("osc1").forComponent(mclrKey).addIfLockedSetValue(".*", "").addIfUnLockedSetValue(".*", "").build());
|
|
1476
|
-
rowActions = rowActions.concat((_appModel$getPCPHelpe4 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe4 === void 0 ? void 0 : _appModel$getPCPHelpe4.call(appModel).stateActionBuilder(rowData).rowWithName("osc2").forComponent(mclrKey).addIfLockedSetValue(".*", "").addIfUnLockedSetValue(".*", "").build());
|
|
1477
|
-
}
|
|
1478
|
-
}
|
|
1479
|
-
var mclrEnable = (_appModel$getImportVa3 = appModel.getImportValue("configbits_basic_interface")) === null || _appModel$getImportVa3 === void 0 || (_appModel$getImportVa3 = _appModel$getImportVa3.configsResp) === null || _appModel$getImportVa3 === void 0 ? void 0 : _appModel$getImportVa3["MCLRE"];
|
|
1480
|
-
var lvpEnable = (_appModel$getImportVa4 = appModel.getImportValue("configbits_basic_interface")) === null || _appModel$getImportVa4 === void 0 || (_appModel$getImportVa4 = _appModel$getImportVa4.configsResp) === null || _appModel$getImportVa4 === void 0 ? void 0 : _appModel$getImportVa4["LVP"];
|
|
1481
|
-
if (mclrEnable && lvpEnable) {
|
|
1482
|
-
delete mclrEnable["setting"];
|
|
1483
|
-
delete mclrEnable["displayOptionSetting"];
|
|
1484
|
-
var selectedMclrOption = mclrEnable["defaultValue"]["value"];
|
|
1485
|
-
delete lvpEnable["setting"];
|
|
1486
|
-
delete lvpEnable["displayOptionSetting"];
|
|
1487
|
-
var selectedLvpOption = lvpEnable["defaultValue"]["value"];
|
|
1488
|
-
if (selectedLvpOption.indexOf("HV on MCLR/VPP must be used for programming") != -1 || selectedLvpOption.indexOf("High Voltage on MCLR/Vpp must be used for programming") != -1) {
|
|
1489
|
-
if (selectedMclrOption.indexOf("MCLR pin is MCLR") != -1 || selectedMclrOption.indexOf("MCLR pin is Master Clear function") != -1 || selectedMclrOption === "MCLR pin (RE3) is MCLR") {
|
|
1490
|
-
if (rowData.name === "reset" && retRowJSONdata) {
|
|
1491
|
-
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1492
|
-
behaviourMeta: {
|
|
1493
|
-
lockPinRegEx: "MCLR"
|
|
1494
|
-
}
|
|
1495
|
-
});
|
|
1496
|
-
}
|
|
1497
|
-
}
|
|
1498
|
-
var isPic18Mclr = selectedMclrOption === "If LVP = 0, MCLR pin is MCLR; If LVP = 1, RE3 pin function is MCLR " || selectedMclrOption === "If LVP = 0, MCLR pin function is port defined function; If LVP =1, RE3 pin fuction is MCLR" ? true : false;
|
|
1499
|
-
var isQ10Mclr = selectedMclrOption === "MCLR pin (RE3) is MCLR" || selectedMclrOption === "If LVP = 0, MCLR pin (RE3) is an input; If LVP =1, MCLR pin (RE3) is MCLR" ? true : false;
|
|
1500
|
-
var _actionArr = [];
|
|
1501
|
-
|
|
1502
|
-
// For handling Q10 devices
|
|
1503
|
-
if (isQ10Mclr) {
|
|
1504
|
-
var _appModel$getPCPHelpe5;
|
|
1505
|
-
_actionArr = (_appModel$getPCPHelpe5 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe5 === void 0 ? void 0 : _appModel$getPCPHelpe5.call(appModel).stateActionBuilder(rowData).rowWithName("reset").forComponent(mclrEnable).addIfLockedSetValue("MCLR", "MCLR pin (RE3) is MCLR").addIfUnLockedSetValue(".*", "If LVP = 0, MCLR pin (RE3) is an input; If LVP =1, MCLR pin (RE3) is MCLR").build();
|
|
1506
|
-
} else {
|
|
1507
|
-
var _appModel$getPCPHelpe6;
|
|
1508
|
-
_actionArr = (_appModel$getPCPHelpe6 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe6 === void 0 ? void 0 : _appModel$getPCPHelpe6.call(appModel).stateActionBuilder(rowData).rowWithName("reset").forComponent(mclrEnable).addIfLockedSetValue("MCLR", isPic18Mclr ? "If LVP = 0, MCLR pin is MCLR; If LVP = 1, RE3 pin function is MCLR " : "MCLR pin is Master Clear function").addIfUnLockedSetValue(".*", isPic18Mclr ? "If LVP = 0, MCLR pin function is port defined function; If LVP =1, RE3 pin fuction is MCLR" : "MCLR pin function is port defined function").build();
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
// Provide the module reference(scriptID) of remote config bits module
|
|
1512
|
-
var _iterator2 = _createForOfIteratorHelper(_actionArr),
|
|
1513
|
-
_step2;
|
|
1514
|
-
try {
|
|
1515
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
1516
|
-
var _eachAction = _step2.value;
|
|
1517
|
-
var _lockedState = _eachAction.state[_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["pin_state"].LOCKED];
|
|
1518
|
-
if (_lockedState) {
|
|
1519
|
-
var _appModel$getAssigned3;
|
|
1520
|
-
_lockedState.meta = {
|
|
1521
|
-
to: (_appModel$getAssigned3 = appModel.getAssignedImport("configbits_basic_interface")) === null || _appModel$getAssigned3 === void 0 || (_appModel$getAssigned3 = _appModel$getAssigned3.handle) === null || _appModel$getAssigned3 === void 0 ? void 0 : _appModel$getAssigned3.providerId
|
|
1522
|
-
};
|
|
1523
|
-
}
|
|
1524
|
-
var _unlockedState = _eachAction.state[_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["pin_state"].UNLOCK];
|
|
1525
|
-
if (_unlockedState) {
|
|
1526
|
-
var _appModel$getAssigned4;
|
|
1527
|
-
_unlockedState.meta = {
|
|
1528
|
-
to: (_appModel$getAssigned4 = appModel.getAssignedImport("configbits_basic_interface")) === null || _appModel$getAssigned4 === void 0 || (_appModel$getAssigned4 = _appModel$getAssigned4.handle) === null || _appModel$getAssigned4 === void 0 ? void 0 : _appModel$getAssigned4.providerId
|
|
1529
|
-
};
|
|
1530
|
-
}
|
|
1531
|
-
rowActions.push(_eachAction);
|
|
1532
|
-
}
|
|
1533
|
-
} catch (err) {
|
|
1534
|
-
_iterator2.e(err);
|
|
1535
|
-
} finally {
|
|
1536
|
-
_iterator2.f();
|
|
1537
|
-
}
|
|
1538
|
-
} else {
|
|
1539
|
-
var _appModel$getComponen2;
|
|
1540
|
-
if (selectedMclrOption) {
|
|
1541
|
-
if (rowData.name === "reset" && retRowJSONdata) {
|
|
1542
|
-
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1543
|
-
behaviourMeta: {
|
|
1544
|
-
lockPinRegEx: "MCLR"
|
|
1545
|
-
}
|
|
1546
|
-
});
|
|
1547
|
-
}
|
|
1548
|
-
}
|
|
1549
|
-
var _mclrKey = (_appModel$getComponen2 = appModel.getComponent("mclrUnusedKey")) === null || _appModel$getComponen2 === void 0 ? void 0 : _appModel$getComponen2.component;
|
|
1550
|
-
if (_mclrKey) {
|
|
1551
|
-
var _appModel$getPCPHelpe7;
|
|
1552
|
-
rowActions = rowActions.concat((_appModel$getPCPHelpe7 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe7 === void 0 ? void 0 : _appModel$getPCPHelpe7.call(appModel).stateActionBuilder(rowData).rowWithName("reset").forComponent(_mclrKey).addIfLockedSetValue(".*", "").addIfUnLockedSetValue(".*", "").build());
|
|
1553
|
-
}
|
|
1554
|
-
}
|
|
1555
|
-
}
|
|
1556
|
-
var noscOsccon1 = appModel.getComponentValue("noscOsccon1");
|
|
1557
|
-
if (noscOsccon1 === "HFINTOSC" || noscOsccon1 === "LFINTOSC" || noscOsccon1 === "SOSC" || noscOsccon1 === "HFINTOSC with 2x PLL") {
|
|
1558
|
-
if (rowData.name === "clockin") {
|
|
1559
|
-
retRowJSONdata = undefined;
|
|
1560
|
-
}
|
|
1561
|
-
if (rowData.name === "osc1") {
|
|
1562
|
-
retRowJSONdata = undefined;
|
|
1563
|
-
}
|
|
1564
|
-
if (rowData.name === "osc2") {
|
|
1565
|
-
retRowJSONdata = undefined;
|
|
1566
|
-
}
|
|
1567
|
-
}
|
|
1568
|
-
if (rowData.name === "sosci") {
|
|
1569
|
-
if (noscOsccon1 === "SOSC" && retRowJSONdata) {
|
|
1570
|
-
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1571
|
-
behaviourMeta: {
|
|
1572
|
-
lockPinRegEx: "SOSCI"
|
|
1573
|
-
}
|
|
1574
|
-
});
|
|
1575
|
-
} else {
|
|
1576
|
-
retRowJSONdata = undefined;
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
1579
|
-
if (rowData.name === "sosco") {
|
|
1580
|
-
if (noscOsccon1 === "SOSC" && retRowJSONdata) {
|
|
1581
|
-
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1582
|
-
behaviourMeta: {
|
|
1583
|
-
lockPinRegEx: "SOSCO"
|
|
1584
|
-
}
|
|
1585
|
-
});
|
|
1586
|
-
} else {
|
|
1587
|
-
retRowJSONdata = undefined;
|
|
1588
|
-
}
|
|
1589
|
-
}
|
|
1590
|
-
if (retRowJSONdata) retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1591
|
-
actions: rowActions
|
|
1592
|
-
});
|
|
1593
|
-
return retRowJSONdata;
|
|
1594
|
-
}
|
|
1595
|
-
|
|
1596
|
-
/***/ }),
|
|
1597
|
-
|
|
1598
|
-
/***/ "./src/StringConstants.ts":
|
|
1599
|
-
/*!********************************!*\
|
|
1600
|
-
!*** ./src/StringConstants.ts ***!
|
|
1601
|
-
\********************************/
|
|
1602
|
-
/*! exports provided: StringConstants */
|
|
1603
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1604
|
-
|
|
1605
|
-
"use strict";
|
|
1606
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1607
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StringConstants", function() { return StringConstants; });
|
|
1608
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1609
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
1610
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
1611
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1612
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1613
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
1614
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1615
|
-
var StringConstants = /*#__PURE__*/_createClass(function StringConstants() {
|
|
1616
|
-
_classCallCheck(this, StringConstants);
|
|
1617
|
-
});
|
|
1618
|
-
_defineProperty(StringConstants, "SOSC", "SOSC");
|
|
1619
|
-
_defineProperty(StringConstants, "LFINTOSC", "LFINTOSC");
|
|
1620
|
-
_defineProperty(StringConstants, "HFINTOSC", "HFINTOSC");
|
|
1621
|
-
_defineProperty(StringConstants, "HFINTOSC_2xPLL", "HFINTOSC with 2x PLL");
|
|
1622
|
-
_defineProperty(StringConstants, "EXTOSC", "EXTOSC");
|
|
1623
|
-
_defineProperty(StringConstants, "EXTOSC_4xPLL", "EXTOSC with 4x PLL");
|
|
1624
|
-
_defineProperty(StringConstants, "OSC_NOT_NEEDED", "Oscillator not needed");
|
|
1625
|
-
_defineProperty(StringConstants, "ON", "ON");
|
|
1626
|
-
_defineProperty(StringConstants, "ExtClkFreq_64MHz", 64000000);
|
|
1627
|
-
_defineProperty(StringConstants, "ExtClkFreq_20MHz", 20000000);
|
|
1628
|
-
_defineProperty(StringConstants, "ExtClkFreq_32MHz", 32000000);
|
|
1629
|
-
|
|
1630
|
-
/***/ }),
|
|
1631
|
-
|
|
1632
|
-
/***/ "./src/moduleConfig.json":
|
|
1633
|
-
/*!*******************************!*\
|
|
1634
|
-
!*** ./src/moduleConfig.json ***!
|
|
1635
|
-
\*******************************/
|
|
1636
|
-
/*! exports provided: moduleName, deviceType, booleanValues, hasPins, UIGroups, UIOrder, tabs, analytics, templates, help, imports, exports, softwareData, peripherals, default */
|
|
1637
|
-
/***/ (function(module) {
|
|
1638
|
-
|
|
1639
|
-
module.exports = JSON.parse("{\"moduleName\":\"Clock Control\",\"deviceType\":\"PIC\",\"booleanValues\":{\"true\":\"enabled\",\"false\":\"disabled\"},\"hasPins\":true,\"UIGroups\":{\"software\":\"Software Settings\",\"hardware\":\"Clock Settings\",\"advanced\":\"Advanced Settings\"},\"UIOrder\":{\"software\":[\"*\"],\"hardware\":[\"currentSystemClk\",\"noscOsccon1\",\"externalClk\",\"lfIntOscFreq\",\"hffrqOscfrq\",\"ndivOsccon1\",\"*\"]},\"tabs\":{\"main\":\"Easy View\",\"register\":\"Register Initialization\"},\"analytics\":{\"logAlwaysComps\":[\"noscOsccon1\",\"hffrqOscfrq\",\"ndivOsccon1\",\"soscpwrOsccon3\",\"cswholdOsccon3\",\"pllenOscen\",\"actenActcon\",\"actudActcon\",\"tunOsctune\"],\"logOnChangeComps\":[],\"compMapping\":{\"noscOsccon1\":\"ClockSourceSelection\",\"hffrqOscfrq\":\"HF_InternalClock\",\"ndivOsccon1\":\"ClockDivider\",\"soscpwrOsccon3\":\"SecondaryOscillatorPowerModeSelect\",\"cswholdOsccon3\":\"ClockSwitchHoldControl\",\"pllenOscen\":\"PLL_Enable\",\"actenActcon\":\"ActiveClockTuning\",\"actudActcon\":\"ActiveClockTuningUpdate\",\"tunOsctune\":\"HFINTOSC_FrequencyTuning\"}},\"templates\":[{\"src\":\"output/clock.c.ftl\",\"dest\":\"system/src/clock.c\",\"generateWithHardware\":true},{\"src\":\"output/clock.h.ftl\",\"dest\":\"system/clock.h\",\"generateWithHardware\":true}],\"help\":{\"url\":\"v2/keyword-lookup?keyword=scf-pic8-osc-v1&redirect=true\",\"tooltip\":\"The Oscillator module offers a wide selection of clock sources that allows it to be used in a large range of applications.\"},\"imports\":{\"scf_pic8_osc_v1\":{\"import\":{\"interfaceId\":{\"name\":\"scf-pic8-osc-v1\",\"version\":\"^1\"},\"isRequired\":true}},\"config_device\":{\"nodeModule\":{\"importName\":\"config_device\",\"node\":\"@microchip/config-device\"},\"fullyTyped\":true,\"import\":{\"interfaceId\":{\"name\":\"config-device\",\"version\":\"^1\"}}},\"sys_init_basic_interface\":{\"import\":{\"interfaceId\":{\"name\":\"sys-init-basic-interface\",\"version\":\"^1\"}},\"nodeModule\":{\"importName\":\"SysInitBasic\",\"node\":\"@microchip/sys-init-basic-interface\"}},\"configbits_basic_interface\":{\"import\":{\"interfaceId\":{\"name\":\"configbits-basic-interface\",\"version\":\"^1\"}},\"fullyTyped\":true,\"nodeModule\":{\"importName\":\"configbits_basic_interface\",\"node\":\"@microchip/configbits-basic-interface\"}},\"pins_interface\":{\"import\":{\"interfaceId\":{\"name\":\"pins-interface\",\"version\":\"^1\"}}},\"device_meta\":{\"import\":{\"interfaceId\":{\"name\":\"device-meta\",\"version\":\"^1\"}}}},\"exports\":{\"osc_clocks\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"osc-clocks\",\"version\":\"0.2.0\"},\"fullyTyped\":true,\"nodeModule\":{\"importName\":\"osc_clocks\",\"node\":\"@microchip/osc-clocks\"}}]},\"clock_basic_interface\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"clock-basic-interface\",\"version\":\"1.0.0\"},\"fullyTyped\":true,\"nodeModule\":{\"importName\":\"clock_basic_interface\",\"node\":\"@microchip/clock-basic-interface\"}}]},\"fosc\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"fosc-hz\",\"version\":\"0.3.0\"},\"fullyTyped\":true,\"nodeModule\":{\"importName\":\"fosc_hz\",\"node\":\"@microchip/fosc-hz\"}}]}},\"softwareData\":{\"generateInitializerCode\":{\"name\":\"generateInitializerCode\",\"description\":\"Generate Initializer Code\",\"type\":\"ComboBox\",\"defaultValue\":{\"value\":\"Initialize all registers\",\"options\":[\"Initialize all registers\",\"Generate only modified registers\",\"Generate with commented unmodified registers\"]},\"group\":\"software\",\"tabs\":[\"main\"],\"category\":\"software\"},\"currentSystemClk\":{\"name\":\"currentSystemClk\",\"description\":\"System Clock (Hz)\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"tabs\":[\"main\"],\"uiBehavior\":{\"readonly\":true},\"category\":\"software\"},\"externalClk\":{\"name\":\"externalClk\",\"description\":\"External Clock (Hz)\",\"type\":\"number\",\"defaultValue\":32768,\"group\":\"hardware\",\"tabs\":[\"main\"],\"category\":\"software\"},\"lfIntOscFreq\":{\"name\":\"lfIntOscFreq\",\"description\":\"LF Internal Clock (Hz)\",\"type\":\"number\",\"defaultValue\":31000,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"},\"mclrUnusedKey\":{\"name\":\"mclrUnusedKey\",\"description\":\"Custom Name\",\"type\":\"string\",\"defaultValue\":\"key\",\"group\":\"software\",\"tabs\":[\"Register\"],\"category\":\"software\",\"isVisibleProperty\":\"doNotShow\"}},\"peripherals\":[{\"interfaceId\":{\"name\":\"scf-pic8-osc-v1\",\"version\":\"^1\"},\"registers\":{\"OSCCON1\":[{\"setting\":\"NDIV\",\"name\":\"ndivOsccon1\",\"description\":\"Clock Divider\",\"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\":\"NOSC\",\"name\":\"noscOsccon1\",\"description\":\"Clock Source\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"main\"],\"overrideDefaultValue\":\"HFINTOSC\",\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"OSCCON2\":[{\"setting\":\"CDIV\",\"name\":\"cdivOsccon2\",\"description\":\"Current Divider Select\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"COSC\",\"name\":\"coscOsccon2\",\"description\":\"Current Oscillator Source Select\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}],\"OSCCON3\":[{\"setting\":\"NOSCR\",\"name\":\"noscrOsccon3\",\"description\":\"New Oscillator is Ready\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"ORDY\",\"name\":\"ordyOsccon3\",\"description\":\"Oscillator Ready\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"SOSCPWR\",\"name\":\"soscpwrOsccon3\",\"description\":\"Secondary Oscillator Power Mode Select\",\"type\":\"ComboBox\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"CSWHOLD\",\"name\":\"cswholdOsccon3\",\"description\":\"Clock Switch Hold Control\",\"type\":\"ComboBox\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"OSCEN\":[{\"setting\":\"EXTOEN\",\"name\":\"extoenOscen\",\"description\":\"External Oscillator\",\"type\":\"boolean\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"},\"isVisibleProperty\":\"doNotShow\"},{\"setting\":\"HFOEN\",\"name\":\"hfoenOscen\",\"description\":\"HFINTOSC\",\"type\":\"boolean\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"},\"isVisibleProperty\":\"doNotShow\"},{\"setting\":\"MFOEN\",\"name\":\"mfoenOscen\",\"description\":\"MFINTOSC\",\"type\":\"boolean\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"},\"isVisibleProperty\":\"doNotShow\"},{\"setting\":\"LFOEN\",\"name\":\"lfoenOscen\",\"description\":\"LFINTOSC\",\"type\":\"boolean\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"},\"isVisibleProperty\":\"doNotShow\"},{\"setting\":\"SOSCEN\",\"name\":\"soscenOscen\",\"description\":\"Secondary Oscillator\",\"type\":\"boolean\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"ADOEN\",\"name\":\"adoenOscen\",\"description\":\"ADCRC Oscillator\",\"type\":\"boolean\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"},\"isVisibleProperty\":\"doNotShow\"},{\"setting\":\"PLLEN\",\"name\":\"pllenOscen\",\"category\":\"hardware\",\"description\":\"PLL Enable\",\"type\":\"boolean\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"OSCFRQ\":[{\"setting\":\"HFFRQ\",\"name\":\"hffrqOscfrq\",\"description\":\"HF Internal Clock\",\"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\"}}],\"OSCSTAT\":[{\"setting\":\"PLLR\",\"name\":\"pllrOscstat\",\"description\":\"PLL is Ready\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"ADOR\",\"name\":\"adorOscstat\",\"description\":\"ADCRC Oscillator Ready\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"SOR\",\"name\":\"sorOscstat\",\"description\":\"Secondary Oscillator (SOSC) Ready\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"LFOR\",\"name\":\"lforOscstat\",\"description\":\"LFINTOSC Ready\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"MFOR\",\"name\":\"mforOscstat\",\"description\":\"MFINTOSC Ready\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"HFOR\",\"name\":\"hforOscstat\",\"description\":\"HFINTOSC Ready\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"EXTOR\",\"name\":\"extorOscstat\",\"description\":\"External Oscillator Ready\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}],\"OSCTUNE\":[{\"setting\":\"TUN\",\"name\":\"tunOsctune\",\"description\":\"HFINTOSC Frequency Tuning\",\"group\":\"advanced\",\"type\":\"register\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"ACTCON\":[{\"setting\":\"ACTEN\",\"name\":\"actenActcon\",\"description\":\"Active Clock Tuning\",\"type\":\"boolean\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"ACTUD\",\"name\":\"actudActcon\",\"description\":\"Active Clock Tuning Update\",\"type\":\"boolean\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"ACTLOCK\",\"name\":\"actlockActcon\",\"description\":\"Active Clock Tuning Lock Status\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"ACTORS\",\"name\":\"actorsActcon\",\"description\":\"Active Clock Tuning Out-of-Range Status\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}],\"FSCMCON\":[{\"setting\":\"FSCMFEV\",\"name\":\"fscmfevFscmcon\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]},{\"setting\":\"FSCMFFI\",\"name\":\"fscmffiFscmcon\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]},{\"setting\":\"FSCMPEV\",\"name\":\"fscmpevFscmcon\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]},{\"setting\":\"FSCMPFI\",\"name\":\"fscmpfiFscmcon\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]},{\"setting\":\"FSCMSEV\",\"name\":\"fscmsevFscmcon\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]},{\"setting\":\"FSCMSFI\",\"name\":\"fscmsfiFscmcon\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]}]},\"properties\":[\"PLLType\",\"freqMaxEC\",\"freqMaxHS\",\"freqMinPLLEC\",\"freqMaxPLLEC\",\"freqMinPLLINTOSC\",\"freqMaxPLLINTOSC\"]}]}");
|
|
1640
|
-
|
|
1641
|
-
/***/ }),
|
|
1642
|
-
|
|
1643
|
-
/***/ "./src/pinsdata.json":
|
|
1644
|
-
/*!***************************!*\
|
|
1645
|
-
!*** ./src/pinsdata.json ***!
|
|
1646
|
-
\***************************/
|
|
1647
|
-
/*! exports provided: rows, default */
|
|
1648
|
-
/***/ (function(module) {
|
|
1649
|
-
|
|
1650
|
-
module.exports = JSON.parse("{\"rows\":[{\"name\":\"clockout\",\"module\":\"OSC\",\"function\":\"CLKOUT\",\"direction\":\"output\",\"filter\":{\"module\":\"CLOCK CONTROL\",\"aliasReEx\":\"CLKOUT\"},\"behaviour\":\"EXCLUSIVE_LOCK\"},{\"name\":\"clockin\",\"module\":\"OSC\",\"function\":\"CLKIN\",\"direction\":\"input\",\"filter\":{\"module\":\"CLOCK CONTROL\",\"aliasReEx\":\"CLKIN\"},\"behaviour\":\"EXCLUSIVE_LOCK\",\"behaviourMeta\":{\"lockPinRegEx\":\"CLKIN\"}},{\"name\":\"osc1\",\"module\":\"OSC\",\"function\":\"OSC1\",\"direction\":\"input\",\"filter\":{\"module\":\"CLOCK CONTROL\",\"aliasReEx\":\"OSC1\"},\"behaviour\":\"EXCLUSIVE_LOCK\",\"behaviourMeta\":{\"lockPinRegEx\":\"OSC1\"}},{\"name\":\"osc2\",\"module\":\"OSC\",\"function\":\"OSC2\",\"direction\":\"input\",\"filter\":{\"module\":\"CLOCK CONTROL\",\"aliasReEx\":\"OSC2\"},\"behaviour\":\"EXCLUSIVE_LOCK\",\"behaviourMeta\":{\"lockPinRegEx\":\"OSC2\"}},{\"name\":\"sosci\",\"module\":\"OSC\",\"function\":\"SOSCI\",\"direction\":\"input\",\"filter\":{\"module\":\"CLOCK CONTROL\",\"aliasReEx\":\"SOSCI\"},\"behaviour\":\"ALWAYS_LOCKED\"},{\"name\":\"sosco\",\"module\":\"OSC\",\"function\":\"SOSCO\",\"direction\":\"output\",\"filter\":{\"module\":\"CLOCK CONTROL\",\"aliasReEx\":\"SOSCO\"},\"behaviour\":\"LOCK_UNLOCK\"},{\"name\":\"reset\",\"module\":\"RESET\",\"function\":\"MCLR\",\"direction\":\"input\",\"filter\":{\"module\":\"RESET\",\"aliasReEx\":\"MCLR\"},\"behaviour\":\"EXCLUSIVE_LOCK\"}]}");
|
|
1651
|
-
|
|
1652
|
-
/***/ })
|
|
1653
|
-
|
|
1654
|
-
/******/ });
|
|
1
|
+
var autoCreator;!function(){"use strict";var e={87:function(e,t){t.tc=t.uK=t.oW=t.xn=t.Iu=t.Bh=t.M4=t.pw=void 0,function(e){e.ALLPINS="allpins",e.ALLPINS_FOR_ATTRIBS="allpins_for_attribs",e.PPS="pps",e.APFCON="apfcon",e.PORTMUX="portmux",e.HASPPS="hasPPS"}(t.pw||(t.pw={})),function(e){e.EMPTY="E",e.LOCKED="L",e.UNLOCK="UL",e.DiSABLE_LOCK="DL",e.UNLOCKED_DISABLED="DUL",e.LOCKED_LINK="LL",e.UNLOCKED_MUX="MUL",e.LOCKED_CONFLICT="CL"}(t.M4||(t.M4={})),function(e){e.INTDIS_BUFFEN="INTDIS_BUFFEN",e.BOTH_EDGES="BOTH_EDGES",e.RISING_EDGE="RISING_EDGE",e.FALLING_EDGE="FALLING_EDGE",e.NONE="NONE",e.LOW_LEVEL="LOW_LEVEL"}(t.Bh||(t.Bh={})),function(e){e.aliasReEx="aliasReEx",e.cname="cname",e.high="high",e.inv="inv",e.wpu="wpu",e.wpd="wpd",e.od="od",e.analog="analog",e.ioc="ioc",e.intcallback="intcallback",e.alias="alias",e.advInpBuff="advInpBuff"}(t.Iu||(t.Iu={})),function(e){e.SETACTION="SETACTION",e.ATTRIBACTION="ATTRIBACTION"}(t.xn||(t.xn={})),function(e){e.output="output",e.input="input",e.bidirectional="bidirectional"}(t.oW||(t.oW={})),function(e){e.LOCK_UNLOCK="LOCK_UNLOCK",e.ALWAYS_LOCKED="ALWAYS_LOCKED",e.SINGLE_PIN_MUX="SINGLE_PIN_MUX",e.OPTIONAL_PIN_MUX="OPTIONAL_PIN_MUX",e.PPS="PPS",e.APFCON="APFCON",e.PORTMUX="PORTMUX",e.EXCLUSIVE_LOCK="EXCLUSIVE_LOCK",e.LOCKED_DISABLED="LOCKED_DISABLED"}(t.uK||(t.uK={})),function(e){e.PIC18F="PIC18F",e.AVR8="AVR8",e.PIC16F="PIC16F",e.PIC24F="PIC24F"}(t.tc||(t.tc={}))},898:function(e,t){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOptionLabels=t.filterOptions=t.isSingleton=t.isUnassigned=t.isAssigned=t.hasOptions=t.AlertTypes=void 0,function(e){e.Error="error",e.Warning="warning",e.Hint="hint"}(t.AlertTypes||(t.AlertTypes={})),t.hasOptions=function(e){return void 0!==e.options},t.isAssigned=function(e){return"undefined"!==typeof e.handle},t.isUnassigned=function(e){return"undefined"===typeof e.handle},t.isSingleton=function(e){return"undefined"!==typeof e.isSingleton&&e.isSingleton},t.filterOptions=function(e,t){return e.options?r(r({},e),{options:e.options.filter(t)}):e},t.mapOptionLabels=function(e,t){return e.options?r(r({},e),{options:e.options.map((function(e){return r(r({},e),{handle:r(r({},e.handle),{label:t(e)})})}))}):e}},408:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.buildSimpleApi=function(e){var t={};for(var o in e)t[o]=r(e[o]);return t};var r=function(e){return e.returns+" "+e.name+"("+o(e.arguments)+")"},o=function(e){return e?e.map((function(e){return e.type+" "+e.name})).join(", "):"void"}},695:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getInterfaceName=function(e){var t;if(e&&(t=e.name)&&(t=t.replace("@microchip/","")),!t)throw new Error("Invalid Interface Name...!");return t},t.getInterfaceVersion=function(e){var t,r=new RegExp("\\d+.\\d+.\\d+");if(e&&(t=e.version),!t&&!r.test(t))throw new Error("Invalid Interface Version...!");return t}},6:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(408);t.buildSimpleApi=o.buildSimpleApi;var i=r(695);t.getInterfaceName=i.getInterfaceName,t.getInterfaceVersion=i.getInterfaceVersion},727:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&o(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.createPrototypeExport=t.createPrototypeImport=t.getInterfaceId=void 0;var a=n(r(6)),c=r(608);t.getInterfaceId=function(){return{name:a.getInterfaceName(c),version:a.getInterfaceVersion(c)}},t.createPrototypeImport=function(){return{interfaceId:t.getInterfaceId()}},t.createPrototypeExport=function(){return{interfaces:[{interfaceId:t.getInterfaceId()}]}}},987:function(e,t,r){var o=r(92)},937:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.createMock=void 0;var o=r(727);t.createMock=function(){return{interfaceId:o.getInterfaceId(),payload:{moduleName:"MyModule"},args:{},results:{requestId:{initializers:[{name:"mymodule_init1();",header:{name:"../mymodule.h",path:"include/"},priority:1}],localInitializers:[{funcDec:"void mymodule_init2(void);",name:"mymodule_init2();",funcBody:"/** \n * @ingroup systemdriver\n * @brief Initializes the Peripheral module.\n * @param None.\n * @return None.\n * void mymodule_init2(void){\n * //IOCMD IOC enabled; CLKRMD CLKR enabled;\n * PMD0 = 0x0;\n * }\n */",priority:1}]}}}}},92:function(e,t,r){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)},i=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<r;t++)for(var n=arguments[t],a=0,c=n.length;a<c;a++,i++)o[i]=n[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.Interface=t.sortSysInitInitializers=t.prioritySorter=t.INIT_PRIORITY=void 0;var n,a=r(937),c=r(727);!function(e){e[e.START=1]="START",e[e.PRE_PERIPHERAL=50]="PRE_PERIPHERAL",e[e.PERIPHERAL=100]="PERIPHERAL",e[e.POST_PERIPHERAL=150]="POST_PERIPHERAL",e[e.DEFAULT=200]="DEFAULT",e[e.PRE_SOFTWARE=250]="PRE_SOFTWARE",e[e.SOFTWARE=300]="SOFTWARE",e[e.POST_SOFTWARE=350]="POST_SOFTWARE",e[e.END=400]="END"}(n=t.INIT_PRIORITY||(t.INIT_PRIORITY={})),t.prioritySorter=function(e,t){var r,o,i,a,c=null!==(r=null===e||void 0===e?void 0:e.initializer.priority)&&void 0!==r?r:n.DEFAULT,s=null!==(o=null===t||void 0===t?void 0:t.initializer.priority)&&void 0!==o?o:n.DEFAULT;return c<s?-1:c>s?1:null!==(a=null===(i=null===e||void 0===e?void 0:e.initializer.name)||void 0===i?void 0:i.localeCompare(null===t||void 0===t?void 0:t.initializer.name))&&void 0!==a?a:0},t.sortSysInitInitializers=function(e){for(var r=i(e),n=[],a=0,c=r;a<c.length;a++){if((m=c[a]).initializers)for(var s=0,l=m.initializers;s<l.length;s++){var d=l[s],u={initializer:o(o({},d),{isLocalInit:!1,isNewInterface:!0})};n.push(u)}}for(var f=0,p=r;f<p.length;f++){var m;if((m=p[f]).localInitializers)for(var g=0,y=m.localInitializers;g<y.length;g++){d=y[g],u={initializer:o(o({},d),{isLocalInit:!0,isNewInterface:!0})};n.push(u)}}return n.sort(t.prioritySorter),n},t.Interface={createPrototypeExport:c.createPrototypeExport,createPrototypeImport:c.createPrototypeImport,getInterfaceId:c.getInterfaceId,createMock:a.createMock}},242:function(e,t,r){r.r(t),r.d(t,{getCompletePinData:function(){return d},getRowData:function(){return u}});var o=r(87);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function n(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}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 n,c=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){s=!0,n=e},f:function(){try{c||null==r.return||r.return()}finally{if(s)throw n}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=function(e){return{}};function u(e,t){var r,i,a,c,l=t,d=[],u=null===(r=e.getImportValue("configbits_basic_interface"))||void 0===r||null===(r=r.configsResp)||void 0===r?void 0:r.CLKOUTEN;if(u){var f;delete u.setting,delete u.displayOptionSetting;var p=u.defaultValue.value;-1!=p.indexOf("CLKOUT function is enabled")&&"clockout"===t.name&&(l=s(s({},l),{},{behaviourMeta:{lockPinRegEx:"CLKOUT"}}));var m,g="CLKOUT function is enabled"===p||"CLKOUT function is disabled"===p,y=n(null===(f=e.getPCPHelper)||void 0===f?void 0:f.call(e).stateActionBuilder(t).rowWithName("clockout").forComponent(u).addIfLockedSetValue("CLKOUT",g?"CLKOUT function is enabled":"CLKOUT function is enabled; FOSC/4 clock appears at OSC2").addIfUnLockedSetValue(".*",g?"CLKOUT function is disabled":"CLKOUT function is disabled; i/o or oscillator function on OSC2").build());try{for(y.s();!(m=y.n()).done;){var v,O=m.value,C=O.state[o.M4.LOCKED];if(C)C.meta={to:null===(v=e.getAssignedImport("configbits_basic_interface"))||void 0===v||null===(v=v.handle)||void 0===v?void 0:v.providerId};var b,S=O.state[o.M4.UNLOCK];if(S)S.meta={to:null===(b=e.getAssignedImport("configbits_basic_interface"))||void 0===b||null===(b=b.handle)||void 0===b?void 0:b.providerId};d.push(O)}}catch(X){y.e(X)}finally{y.f()}}var I=null===(i=e.getImportValue("configbits_basic_interface"))||void 0===i||null===(i=i.configsResp)||void 0===i?void 0:i.FEXTOSC;if(I){var h;delete I.setting,delete I.displayOptionSetting;var L=I.defaultValue.value;-1==L.indexOf("(external clock)")&&-1==L.indexOf("EC")||"osc1"!==t.name&&"osc2"!==t.name||(l=void 0),-1!=L.indexOf("(crystal oscillator)")&&"clockin"===t.name&&(l=void 0),-1==L.indexOf("Oscillator not enabled")&&-1==L.indexOf("Reserved")||"clockin"!==t.name&&"osc1"!==t.name&&"osc2"!==t.name||(l=void 0);var w,E,P,N=null===(h=e.getComponent("mclrUnusedKey"))||void 0===h?void 0:h.component;if(N)d=(d=(d=d.concat(null===(w=e.getPCPHelper)||void 0===w?void 0:w.call(e).stateActionBuilder(t).rowWithName("clockin").forComponent(N).addIfLockedSetValue(".*","").addIfUnLockedSetValue(".*","").build())).concat(null===(E=e.getPCPHelper)||void 0===E?void 0:E.call(e).stateActionBuilder(t).rowWithName("osc1").forComponent(N).addIfLockedSetValue(".*","").addIfUnLockedSetValue(".*","").build())).concat(null===(P=e.getPCPHelper)||void 0===P?void 0:P.call(e).stateActionBuilder(t).rowWithName("osc2").forComponent(N).addIfLockedSetValue(".*","").addIfUnLockedSetValue(".*","").build())}var k=null===(a=e.getImportValue("configbits_basic_interface"))||void 0===a||null===(a=a.configsResp)||void 0===a?void 0:a.MCLRE,R=null===(c=e.getImportValue("configbits_basic_interface"))||void 0===c||null===(c=c.configsResp)||void 0===c?void 0:c.LVP;if(k&&R){delete k.setting,delete k.displayOptionSetting;var _=k.defaultValue.value;delete R.setting,delete R.displayOptionSetting;var T=R.defaultValue.value;if(-1!=T.indexOf("HV on MCLR/VPP must be used for programming")||-1!=T.indexOf("High Voltage on MCLR/Vpp must be used for programming")){-1==_.indexOf("MCLR pin is MCLR")&&-1==_.indexOf("MCLR pin is Master Clear function")&&"MCLR pin (RE3) is MCLR"!==_||"reset"===t.name&&l&&(l=s(s({},l),{},{behaviourMeta:{lockPinRegEx:"MCLR"}}));var M,x,A="If LVP = 0, MCLR pin is MCLR; If LVP = 1, RE3 pin function is MCLR "===_||"If LVP = 0, MCLR pin function is port defined function; If LVP =1, RE3 pin fuction is MCLR"===_,F=[];if("MCLR pin (RE3) is MCLR"===_||"If LVP = 0, MCLR pin (RE3) is an input; If LVP =1, MCLR pin (RE3) is MCLR"===_)F=null===(M=e.getPCPHelper)||void 0===M?void 0:M.call(e).stateActionBuilder(t).rowWithName("reset").forComponent(k).addIfLockedSetValue("MCLR","MCLR pin (RE3) is MCLR").addIfUnLockedSetValue(".*","If LVP = 0, MCLR pin (RE3) is an input; If LVP =1, MCLR pin (RE3) is MCLR").build();else F=null===(x=e.getPCPHelper)||void 0===x?void 0:x.call(e).stateActionBuilder(t).rowWithName("reset").forComponent(k).addIfLockedSetValue("MCLR",A?"If LVP = 0, MCLR pin is MCLR; If LVP = 1, RE3 pin function is MCLR ":"MCLR pin is Master Clear function").addIfUnLockedSetValue(".*",A?"If LVP = 0, MCLR pin function is port defined function; If LVP =1, RE3 pin fuction is MCLR":"MCLR pin function is port defined function").build();var V,D=n(F);try{for(D.s();!(V=D.n()).done;){var H,U=V.value,j=U.state[o.M4.LOCKED];if(j)j.meta={to:null===(H=e.getAssignedImport("configbits_basic_interface"))||void 0===H||null===(H=H.handle)||void 0===H?void 0:H.providerId};var K,B=U.state[o.M4.UNLOCK];if(B)B.meta={to:null===(K=e.getAssignedImport("configbits_basic_interface"))||void 0===K||null===(K=K.handle)||void 0===K?void 0:K.providerId};d.push(U)}}catch(X){D.e(X)}finally{D.f()}}else{var $;_&&"reset"===t.name&&l&&(l=s(s({},l),{},{behaviourMeta:{lockPinRegEx:"MCLR"}}));var z,W=null===($=e.getComponent("mclrUnusedKey"))||void 0===$?void 0:$.component;if(W)d=d.concat(null===(z=e.getPCPHelper)||void 0===z?void 0:z.call(e).stateActionBuilder(t).rowWithName("reset").forComponent(W).addIfLockedSetValue(".*","").addIfUnLockedSetValue(".*","").build())}}var q=e.getComponentValue("noscOsccon1");return"HFINTOSC"!==q&&"LFINTOSC"!==q&&"SOSC"!==q&&"HFINTOSC with 2x PLL"!==q||("clockin"===t.name&&(l=void 0),"osc1"===t.name&&(l=void 0),"osc2"===t.name&&(l=void 0)),"sosci"===t.name&&(l="SOSC"===q&&l?s(s({},l),{},{behaviourMeta:{lockPinRegEx:"SOSCI"}}):void 0),"sosco"===t.name&&(l="SOSC"===q&&l?s(s({},l),{},{behaviourMeta:{lockPinRegEx:"SOSCO"}}):void 0),l&&(l=s(s({},l),{},{actions:d})),l}},608:function(e){e.exports=JSON.parse('{"name":"@microchip/sys-init-basic-interface","version":"1.0.0","license":"SEE LICENSE IN LICENSE.txt","main":"lib/index.js","typings":"./lib/index.d.ts","scripts":{"build":"tsc","test":"jest","lint:nofix":"eslint \\"./src/**/*.{ts,tsx}\\" --quiet","lint":"tsc --noEmit && yarn lint:nofix --fix"},"husky":{"hooks":{"pre-commit":"tsc --noEmit && lint-staged"}},"lint-staged":{"./src/**/*.{ts,tsx}":["eslint --fix"]},"jest":{"testPathIgnorePatterns":["/node_modules/","/run/","/lib/"],"modulePathIgnorePatterns":["<rootDir>/run"],"preset":"ts-jest","collectCoverage":true,"coverageThreshold":{"./src":{"branches":80,"functions":80,"lines":80,"statements":80}}},"dependencies":{"@microchip/scf-common":"^3.22.2","@microchip/scf-interface":"^1.4.0"},"devDependencies":{"@types/jest":"^24.0.14","@types/node":"^12.0.10","@typescript-eslint/eslint-plugin":"^2.27.0","@typescript-eslint/parser":"^2.27.0","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","husky":"^4.2.4","jest":"^24.8.0","lint-staged":"^10.2.0","prettier":"^2.0.4","ts-jest":"^24.0.2","typescript":"^3.8.3"},"files":["lib/**/*"],"notificationEmail":"03234d44.microchip.com@amer.teams.ms"}')},139:function(e){e.exports=JSON.parse('{"moduleName":"Clock Control","deviceType":"PIC","booleanValues":{"true":"enabled","false":"disabled"},"showRegisterEditor":true,"hasPins":true,"UIGroups":{"software":"Software Settings","hardware":"Clock Settings","advanced":"Advanced Settings"},"UIOrder":{"software":["*"],"hardware":["currentSystemClk","noscOsccon1","externalClk","lfIntOscFreq","hffrqOscfrq","ndivOsccon1","*"]},"tabs":{"main":"Easy View","register":"Register Initialization"},"analytics":{"logAlwaysComps":["noscOsccon1","hffrqOscfrq","ndivOsccon1","soscpwrOsccon3","cswholdOsccon3","pllenOscen","actenActcon","actudActcon","tunOsctune"],"logOnChangeComps":[],"compMapping":{"noscOsccon1":"ClockSourceSelection","hffrqOscfrq":"HF_InternalClock","ndivOsccon1":"ClockDivider","soscpwrOsccon3":"SecondaryOscillatorPowerModeSelect","cswholdOsccon3":"ClockSwitchHoldControl","pllenOscen":"PLL_Enable","actenActcon":"ActiveClockTuning","actudActcon":"ActiveClockTuningUpdate","tunOsctune":"HFINTOSC_FrequencyTuning"}},"templates":[{"src":"output/clock.c.ftl","dest":"system/src/clock.c","generateWithHardware":true},{"src":"output/clock.h.ftl","dest":"system/clock.h","generateWithHardware":true}],"help":{"url":"v2/keyword-lookup?keyword=scf-pic8-osc-v1&redirect=true","tooltip":"The Oscillator module offers a wide selection of clock sources that allows it to be used in a large range of applications."},"imports":{"scf_pic8_osc_v1":{"import":{"interfaceId":{"name":"scf-pic8-osc-v1","version":"^1"},"isRequired":true}},"config_device":{"nodeModule":{"importName":"config_device","node":"@microchip/config-device"},"fullyTyped":true,"import":{"interfaceId":{"name":"config-device","version":"^1"}}},"sys_init_basic_interface":{"import":{"interfaceId":{"name":"sys-init-basic-interface","version":"^1"}},"nodeModule":{"importName":"SysInitBasic","node":"@microchip/sys-init-basic-interface"}},"configbits_basic_interface":{"import":{"interfaceId":{"name":"configbits-basic-interface","version":"^1"}},"fullyTyped":true,"nodeModule":{"importName":"configbits_basic_interface","node":"@microchip/configbits-basic-interface"}},"pins_interface":{"import":{"interfaceId":{"name":"pins-interface","version":"^1"}}},"device_meta":{"import":{"interfaceId":{"name":"device-meta","version":"^1"}}}},"exports":{"osc_clocks":{"interfaces":[{"interfaceId":{"name":"osc-clocks","version":"0.2.0"},"fullyTyped":true,"nodeModule":{"importName":"osc_clocks","node":"@microchip/osc-clocks"}}]},"clock_basic_interface":{"interfaces":[{"interfaceId":{"name":"clock-basic-interface","version":"1.0.0"},"fullyTyped":true,"nodeModule":{"importName":"clock_basic_interface","node":"@microchip/clock-basic-interface"}}]},"fosc":{"interfaces":[{"interfaceId":{"name":"fosc-hz","version":"0.3.0"},"fullyTyped":true,"nodeModule":{"importName":"fosc_hz","node":"@microchip/fosc-hz"}}]}},"softwareData":{"generateInitializerCode":{"name":"generateInitializerCode","description":"Generate Initializer Code","type":"ComboBox","defaultValue":{"value":"Initialize all registers","options":["Initialize all registers","Generate only modified registers","Generate with commented unmodified registers"]},"group":"software","tabs":["main"],"category":"software"},"currentSystemClk":{"name":"currentSystemClk","description":"System Clock (Hz)","type":"number","defaultValue":0,"group":"hardware","tabs":["main"],"uiBehavior":{"readonly":true},"category":"software"},"externalClk":{"name":"externalClk","description":"External Clock (Hz)","type":"number","defaultValue":32768,"group":"hardware","tabs":["main"],"category":"software"},"lfIntOscFreq":{"name":"lfIntOscFreq","description":"LF Internal Clock (Hz)","type":"number","defaultValue":31000,"group":"hardware","uiBehavior":{"readonly":true},"tabs":["main"],"category":"software"},"mclrUnusedKey":{"name":"mclrUnusedKey","description":"Custom Name","type":"string","defaultValue":"key","group":"software","tabs":["Register"],"category":"software","isVisibleProperty":"doNotShow"}},"peripherals":[{"interfaceId":{"name":"scf-pic8-osc-v1","version":"^1"},"registers":{"OSCCON1":[{"setting":"NDIV","name":"ndivOsccon1","description":"Clock Divider","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":"NOSC","name":"noscOsccon1","description":"Clock Source","type":"ComboBox","group":"hardware","tabs":["main"],"overrideDefaultValue":"HFINTOSC","category":"hardware","sdlHelp":{"tooltip":"Click for more Information","url":"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"}}],"OSCCON2":[{"setting":"CDIV","name":"cdivOsccon2","description":"Current Divider Select","type":"ComboBox","group":"hardware","tabs":["register"],"category":"hardware"},{"setting":"COSC","name":"coscOsccon2","description":"Current Oscillator Source Select","type":"ComboBox","group":"hardware","tabs":["register"],"category":"hardware"}],"OSCCON3":[{"setting":"NOSCR","name":"noscrOsccon3","description":"New Oscillator is Ready","type":"ComboBox","group":"hardware","tabs":["register"],"category":"hardware"},{"setting":"ORDY","name":"ordyOsccon3","description":"Oscillator Ready","type":"ComboBox","group":"hardware","tabs":["register"],"category":"hardware"},{"setting":"SOSCPWR","name":"soscpwrOsccon3","description":"Secondary Oscillator Power Mode Select","type":"ComboBox","group":"advanced","tabs":["main"],"category":"hardware","sdlHelp":{"tooltip":"Click for more Information","url":"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"}},{"setting":"CSWHOLD","name":"cswholdOsccon3","description":"Clock Switch Hold Control","type":"ComboBox","group":"advanced","tabs":["main"],"category":"hardware","sdlHelp":{"tooltip":"Click for more Information","url":"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"}}],"OSCEN":[{"setting":"EXTOEN","name":"extoenOscen","description":"External Oscillator","type":"boolean","group":"advanced","tabs":["main"],"category":"hardware","sdlHelp":{"tooltip":"Click for more Information","url":"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"},"isVisibleProperty":"doNotShow"},{"setting":"HFOEN","name":"hfoenOscen","description":"HFINTOSC","type":"boolean","group":"advanced","tabs":["main"],"category":"hardware","sdlHelp":{"tooltip":"Click for more Information","url":"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"},"isVisibleProperty":"doNotShow"},{"setting":"MFOEN","name":"mfoenOscen","description":"MFINTOSC","type":"boolean","group":"advanced","tabs":["main"],"category":"hardware","sdlHelp":{"tooltip":"Click for more Information","url":"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"},"isVisibleProperty":"doNotShow"},{"setting":"LFOEN","name":"lfoenOscen","description":"LFINTOSC","type":"boolean","group":"advanced","tabs":["main"],"category":"hardware","sdlHelp":{"tooltip":"Click for more Information","url":"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"},"isVisibleProperty":"doNotShow"},{"setting":"SOSCEN","name":"soscenOscen","description":"Secondary Oscillator","type":"boolean","group":"advanced","tabs":["main"],"category":"hardware","sdlHelp":{"tooltip":"Click for more Information","url":"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"}},{"setting":"ADOEN","name":"adoenOscen","description":"ADCRC Oscillator","type":"boolean","group":"advanced","tabs":["main"],"category":"hardware","sdlHelp":{"tooltip":"Click for more Information","url":"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"},"isVisibleProperty":"doNotShow"},{"setting":"PLLEN","name":"pllenOscen","category":"hardware","description":"PLL Enable","type":"boolean","group":"advanced","tabs":["main"],"sdlHelp":{"tooltip":"Click for more Information","url":"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"}}],"OSCFRQ":[{"setting":"HFFRQ","name":"hffrqOscfrq","description":"HF Internal Clock","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"}}],"OSCSTAT":[{"setting":"PLLR","name":"pllrOscstat","description":"PLL is Ready","type":"ComboBox","group":"hardware","tabs":["register"],"category":"hardware"},{"setting":"ADOR","name":"adorOscstat","description":"ADCRC Oscillator Ready","type":"ComboBox","group":"hardware","tabs":["register"],"category":"hardware"},{"setting":"SOR","name":"sorOscstat","description":"Secondary Oscillator (SOSC) Ready","type":"ComboBox","group":"hardware","tabs":["register"],"category":"hardware"},{"setting":"LFOR","name":"lforOscstat","description":"LFINTOSC Ready","type":"ComboBox","group":"hardware","tabs":["register"],"category":"hardware"},{"setting":"MFOR","name":"mforOscstat","description":"MFINTOSC Ready","type":"ComboBox","group":"hardware","tabs":["register"],"category":"hardware"},{"setting":"HFOR","name":"hforOscstat","description":"HFINTOSC Ready","type":"ComboBox","group":"hardware","tabs":["register"],"category":"hardware"},{"setting":"EXTOR","name":"extorOscstat","description":"External Oscillator Ready","type":"ComboBox","group":"hardware","tabs":["register"],"category":"hardware"}],"OSCTUNE":[{"setting":"TUN","name":"tunOsctune","description":"HFINTOSC Frequency Tuning","group":"advanced","type":"register","tabs":["main"],"category":"hardware","sdlHelp":{"tooltip":"Click for more Information","url":"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"}}],"ACTCON":[{"setting":"ACTEN","name":"actenActcon","description":"Active Clock Tuning","type":"boolean","group":"advanced","tabs":["main"],"category":"hardware","sdlHelp":{"tooltip":"Click for more Information","url":"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"}},{"setting":"ACTUD","name":"actudActcon","description":"Active Clock Tuning Update","type":"boolean","group":"advanced","tabs":["main"],"category":"hardware","sdlHelp":{"tooltip":"Click for more Information","url":"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"}},{"setting":"ACTLOCK","name":"actlockActcon","description":"Active Clock Tuning Lock Status","type":"ComboBox","group":"hardware","tabs":["register"],"category":"hardware"},{"setting":"ACTORS","name":"actorsActcon","description":"Active Clock Tuning Out-of-Range Status","type":"ComboBox","group":"hardware","tabs":["register"],"category":"hardware"}],"FSCMCON":[{"setting":"FSCMFEV","name":"fscmfevFscmcon","category":"hardware","description":"Insert Description Here","type":"ComboBox","group":"hardware","tabs":["register"]},{"setting":"FSCMFFI","name":"fscmffiFscmcon","category":"hardware","description":"Insert Description Here","type":"ComboBox","group":"hardware","tabs":["register"]},{"setting":"FSCMPEV","name":"fscmpevFscmcon","category":"hardware","description":"Insert Description Here","type":"ComboBox","group":"hardware","tabs":["register"]},{"setting":"FSCMPFI","name":"fscmpfiFscmcon","category":"hardware","description":"Insert Description Here","type":"ComboBox","group":"hardware","tabs":["register"]},{"setting":"FSCMSEV","name":"fscmsevFscmcon","category":"hardware","description":"Insert Description Here","type":"ComboBox","group":"hardware","tabs":["register"]},{"setting":"FSCMSFI","name":"fscmsfiFscmcon","category":"hardware","description":"Insert Description Here","type":"ComboBox","group":"hardware","tabs":["register"]}]},"properties":["PLLType","freqMaxEC","freqMaxHS","freqMinPLLEC","freqMaxPLLEC","freqMinPLLINTOSC","freqMaxPLLINTOSC"]}]}')},181:function(e){e.exports=JSON.parse('{"rows":[{"name":"clockout","module":"OSC","function":"CLKOUT","direction":"output","filter":{"module":"CLOCK CONTROL","aliasReEx":"CLKOUT"},"behaviour":"EXCLUSIVE_LOCK"},{"name":"clockin","module":"OSC","function":"CLKIN","direction":"input","filter":{"module":"CLOCK CONTROL","aliasReEx":"CLKIN"},"behaviour":"EXCLUSIVE_LOCK","behaviourMeta":{"lockPinRegEx":"CLKIN"}},{"name":"osc1","module":"OSC","function":"OSC1","direction":"input","filter":{"module":"CLOCK CONTROL","aliasReEx":"OSC1"},"behaviour":"EXCLUSIVE_LOCK","behaviourMeta":{"lockPinRegEx":"OSC1"}},{"name":"osc2","module":"OSC","function":"OSC2","direction":"input","filter":{"module":"CLOCK CONTROL","aliasReEx":"OSC2"},"behaviour":"EXCLUSIVE_LOCK","behaviourMeta":{"lockPinRegEx":"OSC2"}},{"name":"sosci","module":"OSC","function":"SOSCI","direction":"input","filter":{"module":"CLOCK CONTROL","aliasReEx":"SOSCI"},"behaviour":"ALWAYS_LOCKED"},{"name":"sosco","module":"OSC","function":"SOSCO","direction":"output","filter":{"module":"CLOCK CONTROL","aliasReEx":"SOSCO"},"behaviour":"LOCK_UNLOCK"},{"name":"reset","module":"RESET","function":"MCLR","direction":"input","filter":{"module":"RESET","aliasReEx":"MCLR"},"behaviour":"EXCLUSIVE_LOCK"}]}')}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o].call(n.exports,n,n.exports,r),n.exports}r.d=function(e,t){for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};r.r(o),r.d(o,{getCreatorFunctions:function(){return g}});var i=function(e,t){return!0};r(898);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,l(o.key),o)}}function c(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}var d=c((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));s(d,"SOSC","SOSC"),s(d,"LFINTOSC","LFINTOSC"),s(d,"HFINTOSC","HFINTOSC"),s(d,"HFINTOSC_2xPLL","HFINTOSC with 2x PLL"),s(d,"EXTOSC","EXTOSC"),s(d,"EXTOSC_4xPLL","EXTOSC with 4x PLL"),s(d,"OSC_NOT_NEEDED","Oscillator not needed"),s(d,"ON","ON"),s(d,"ExtClkFreq_64MHz",64e6),s(d,"ExtClkFreq_20MHz",2e7),s(d,"ExtClkFreq_32MHz",32e6);r(987);var u=function(){try{return r(139)}catch(e){return}};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function m(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===f(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=function(e){return function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({getModuleConfig:u},e())}}((function(){return{shouldImport:i}}));autoCreator=o}();
|
|
1655
2
|
//# sourceMappingURL=autoCreator.js.map
|