@mchp-mcc/scf-pic8-osc-v1 4.3.4 → 4.3.6
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 +9 -14
- package/LICENSE.txt +1 -1
- package/Readme.md +9 -14
- package/output/autoCreator.js +450 -452
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +450 -453
- package/output/autoProcessor.js.map +1 -1
- package/output/clock.c.ftl +60 -29
- package/output/clock.h.ftl +3 -1
- package/output/creator.js +1362 -615
- package/output/creator.js.map +1 -1
- package/output/nullPrototype.json +24 -14
- package/output/processor.js +1362 -615
- package/output/processor.js.map +1 -1
- package/package.json +47 -33
package/output/autoProcessor.js
CHANGED
|
@@ -98,13 +98,12 @@ var autoProcessor =
|
|
|
98
98
|
__webpack_require__.r(__webpack_exports__);
|
|
99
99
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDerivedData", function() { return getDerivedData; });
|
|
100
100
|
/* harmony import */ var _getUserData__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getUserData */ "./generated_module/src/getUserData.ts");
|
|
101
|
-
function
|
|
102
|
-
|
|
103
|
-
function _objectSpread(
|
|
104
|
-
|
|
105
|
-
function
|
|
106
|
-
|
|
107
|
-
|
|
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); }
|
|
108
107
|
|
|
109
108
|
function createAutoProcessor(getDerivedData) {
|
|
110
109
|
var derivedDataGetter = function derivedDataGetter(dataModel) {
|
|
@@ -112,10 +111,8 @@ function createAutoProcessor(getDerivedData) {
|
|
|
112
111
|
getModuleConfig: _getUserData__WEBPACK_IMPORTED_MODULE_0__["getModuleConfigFromFile"]
|
|
113
112
|
}, getDerivedData(dataModel));
|
|
114
113
|
};
|
|
115
|
-
|
|
116
114
|
return derivedDataGetter;
|
|
117
115
|
}
|
|
118
|
-
|
|
119
116
|
var getDerivedData = createAutoProcessor(_getUserData__WEBPACK_IMPORTED_MODULE_0__["getDerivedData"]);
|
|
120
117
|
|
|
121
118
|
/***/ }),
|
|
@@ -176,40 +173,34 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
176
173
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPinsData", function() { return getPinsData; });
|
|
177
174
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPinsLogic", function() { return getPinsLogic; });
|
|
178
175
|
/* harmony import */ var _getUserData__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../getUserData */ "./generated_module/src/getUserData.ts");
|
|
179
|
-
function
|
|
180
|
-
|
|
181
|
-
function _objectSpread(
|
|
182
|
-
|
|
183
|
-
function
|
|
184
|
-
|
|
185
|
-
|
|
176
|
+
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); }
|
|
177
|
+
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; }
|
|
178
|
+
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; }
|
|
179
|
+
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; }
|
|
180
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
181
|
+
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); }
|
|
186
182
|
|
|
187
183
|
var mockPinsLogic = function mockPinsLogic(getPinsData) {
|
|
188
184
|
var getCompletePinData = function getCompletePinData(appModel) {
|
|
189
185
|
return {};
|
|
190
186
|
};
|
|
191
|
-
|
|
192
187
|
var getRowData = function getRowData(appModel, rowData) {
|
|
193
188
|
return rowData;
|
|
194
189
|
};
|
|
195
|
-
|
|
196
190
|
return {
|
|
197
191
|
getCompletePinData: getCompletePinData,
|
|
198
192
|
getRowData: getRowData,
|
|
199
193
|
getPinsData: getPinsData
|
|
200
194
|
};
|
|
201
195
|
};
|
|
202
|
-
|
|
203
196
|
var getPinsData = function getPinsData() {
|
|
204
197
|
var _getPinsDataFromFile;
|
|
205
|
-
|
|
206
198
|
return (_getPinsDataFromFile = Object(_getUserData__WEBPACK_IMPORTED_MODULE_0__["getPinsDataFromFile"])()) !== null && _getPinsDataFromFile !== void 0 ? _getPinsDataFromFile : {
|
|
207
199
|
rows: []
|
|
208
200
|
};
|
|
209
201
|
};
|
|
210
202
|
var getPinsLogic = function getPinsLogic() {
|
|
211
203
|
var pinsLogic = Object(_getUserData__WEBPACK_IMPORTED_MODULE_0__["getPinsLogicFromFile"])();
|
|
212
|
-
|
|
213
204
|
if (pinsLogic) {
|
|
214
205
|
return _objectSpread(_objectSpread({}, pinsLogic), {}, {
|
|
215
206
|
getPinsData: getPinsData
|
|
@@ -221,195 +212,23 @@ var getPinsLogic = function getPinsLogic() {
|
|
|
221
212
|
|
|
222
213
|
/***/ }),
|
|
223
214
|
|
|
224
|
-
/***/ "./node_modules/@microchip/
|
|
225
|
-
|
|
226
|
-
!*** ./node_modules/@microchip/
|
|
227
|
-
|
|
228
|
-
/*! exports provided: name, version, license, main, typings, scripts, husky, lint-staged, bitBucketRepository, repository, publishConfig, jest, dependencies, devDependencies, files, notificationEmail, default */
|
|
229
|
-
/***/ (function(module) {
|
|
230
|
-
|
|
231
|
-
module.exports = JSON.parse("{\"name\":\"@microchip/initializer-system\",\"version\":\"0.5.4\",\"license\":\"SEE LICENSE IN LICENSE.txt\",\"main\":\"lib/src/index.js\",\"typings\":\"./lib/src/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\"]},\"bitBucketRepository\":\"https://bitbucket.microchip.com/projects/SCF/repos/initializer-system/browse\",\"repository\":{\"type\":\"git\",\"url\":\"git+ssh://git@https://bitbucket.microchip.com/scm/scf/initializer-system.git\"},\"publishConfig\":{\"registry\":\"https://artifacts.microchip.com/artifactory/api/npm/npm/\"},\"jest\":{\"testPathIgnorePatterns\":[\"/node_modules/\",\"/run/\",\"/lib/\"],\"modulePathIgnorePatterns\":[\"<rootDir>/run\"],\"preset\":\"ts-jest\",\"collectCoverage\":true},\"dependencies\":{\"@microchip/scf-common\":\"^3.6.0\",\"@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\"}");
|
|
232
|
-
|
|
233
|
-
/***/ }),
|
|
234
|
-
|
|
235
|
-
/***/ "./node_modules/@microchip/initializer-system/lib/src/index.js":
|
|
236
|
-
/*!*********************************************************************!*\
|
|
237
|
-
!*** ./node_modules/@microchip/initializer-system/lib/src/index.js ***!
|
|
238
|
-
\*********************************************************************/
|
|
239
|
-
/*! no static exports found */
|
|
240
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
241
|
-
|
|
242
|
-
"use strict";
|
|
243
|
-
|
|
244
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
245
|
-
var initializer_system_1 = __webpack_require__(/*! ./initializer-system */ "./node_modules/@microchip/initializer-system/lib/src/initializer-system.js");
|
|
246
|
-
exports.Interface = initializer_system_1.Interface;
|
|
247
|
-
exports.INIT_PRIORITY = initializer_system_1.INIT_PRIORITY;
|
|
248
|
-
exports.sortInitializers = initializer_system_1.sortInitializers;
|
|
249
|
-
//# sourceMappingURL=index.js.map
|
|
250
|
-
|
|
251
|
-
/***/ }),
|
|
252
|
-
|
|
253
|
-
/***/ "./node_modules/@microchip/initializer-system/lib/src/initializer-system.js":
|
|
254
|
-
/*!**********************************************************************************!*\
|
|
255
|
-
!*** ./node_modules/@microchip/initializer-system/lib/src/initializer-system.js ***!
|
|
256
|
-
\**********************************************************************************/
|
|
257
|
-
/*! no static exports found */
|
|
258
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
259
|
-
|
|
260
|
-
"use strict";
|
|
261
|
-
|
|
262
|
-
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
263
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
264
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
265
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
266
|
-
r[k] = a[j];
|
|
267
|
-
return r;
|
|
268
|
-
};
|
|
269
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
270
|
-
if (mod && mod.__esModule) return mod;
|
|
271
|
-
var result = {};
|
|
272
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
273
|
-
result["default"] = mod;
|
|
274
|
-
return result;
|
|
275
|
-
};
|
|
276
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
277
|
-
var InterfaceTypes = __importStar(__webpack_require__(/*! @microchip/scf-interface */ "./node_modules/@microchip/scf-interface/lib/index.js"));
|
|
278
|
-
var pkgJson = __importStar(__webpack_require__(/*! ../package.json */ "./node_modules/@microchip/initializer-system/lib/package.json"));
|
|
279
|
-
var getInterfaceId = function () {
|
|
280
|
-
return {
|
|
281
|
-
name: InterfaceTypes.getInterfaceName(pkgJson),
|
|
282
|
-
version: InterfaceTypes.getInterfaceVersion(pkgJson),
|
|
283
|
-
};
|
|
284
|
-
};
|
|
285
|
-
exports.sortInitializers = function (initializers) {
|
|
286
|
-
var retinitializers = __spreadArrays(initializers);
|
|
287
|
-
retinitializers.sort(prioritySorter);
|
|
288
|
-
return retinitializers;
|
|
289
|
-
};
|
|
290
|
-
var prioritySorter = function (a, b) {
|
|
291
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
292
|
-
var result = 0;
|
|
293
|
-
var apriority = (_b = (_a = a === null || a === void 0 ? void 0 : a.initializer) === null || _a === void 0 ? void 0 : _a.priority) !== null && _b !== void 0 ? _b : INIT_PRIORITY.DEFAULT;
|
|
294
|
-
var bpriority = (_d = (_c = b === null || b === void 0 ? void 0 : b.initializer) === null || _c === void 0 ? void 0 : _c.priority) !== null && _d !== void 0 ? _d : INIT_PRIORITY.DEFAULT;
|
|
295
|
-
if (apriority < bpriority) {
|
|
296
|
-
result = -1;
|
|
297
|
-
}
|
|
298
|
-
else if (apriority > bpriority) {
|
|
299
|
-
result = 1;
|
|
300
|
-
}
|
|
301
|
-
else {
|
|
302
|
-
//same priority sort via intializer name alphabetically
|
|
303
|
-
result = (_h = (_f = (_e = a === null || a === void 0 ? void 0 : a.initializer) === null || _e === void 0 ? void 0 : _e.name) === null || _f === void 0 ? void 0 : _f.localeCompare((_g = b === null || b === void 0 ? void 0 : b.initializer) === null || _g === void 0 ? void 0 : _g.name)) !== null && _h !== void 0 ? _h : 0;
|
|
304
|
-
}
|
|
305
|
-
return result;
|
|
306
|
-
};
|
|
307
|
-
var INIT_PRIORITY;
|
|
308
|
-
(function (INIT_PRIORITY) {
|
|
309
|
-
INIT_PRIORITY[INIT_PRIORITY["START"] = 1] = "START";
|
|
310
|
-
INIT_PRIORITY[INIT_PRIORITY["PRE_PERIPHERAL"] = 50] = "PRE_PERIPHERAL";
|
|
311
|
-
INIT_PRIORITY[INIT_PRIORITY["PERIPHERAL"] = 100] = "PERIPHERAL";
|
|
312
|
-
INIT_PRIORITY[INIT_PRIORITY["POST_PERIPHERAL"] = 150] = "POST_PERIPHERAL";
|
|
313
|
-
INIT_PRIORITY[INIT_PRIORITY["DEFAULT"] = 200] = "DEFAULT";
|
|
314
|
-
INIT_PRIORITY[INIT_PRIORITY["PRE_SOFTWARE"] = 250] = "PRE_SOFTWARE";
|
|
315
|
-
INIT_PRIORITY[INIT_PRIORITY["SOFTWARE"] = 300] = "SOFTWARE";
|
|
316
|
-
INIT_PRIORITY[INIT_PRIORITY["POST_SOFTWARE"] = 350] = "POST_SOFTWARE";
|
|
317
|
-
INIT_PRIORITY[INIT_PRIORITY["END"] = 400] = "END";
|
|
318
|
-
})(INIT_PRIORITY = exports.INIT_PRIORITY || (exports.INIT_PRIORITY = {}));
|
|
319
|
-
var createMock = function () {
|
|
320
|
-
return {
|
|
321
|
-
interfaceId: getInterfaceId(),
|
|
322
|
-
payload: {
|
|
323
|
-
moduleName: "MyModule",
|
|
324
|
-
},
|
|
325
|
-
args: {},
|
|
326
|
-
results: {
|
|
327
|
-
requestId: {
|
|
328
|
-
initializer: {
|
|
329
|
-
name: "mymodule_init",
|
|
330
|
-
header: {
|
|
331
|
-
name: "mymodule.h",
|
|
332
|
-
path: "include/",
|
|
333
|
-
},
|
|
334
|
-
},
|
|
335
|
-
registerInit: [
|
|
336
|
-
{
|
|
337
|
-
name: "OSCCON1",
|
|
338
|
-
comment: "//Comments",
|
|
339
|
-
value: 55,
|
|
340
|
-
valueAsHex: "0x55",
|
|
341
|
-
},
|
|
342
|
-
],
|
|
343
|
-
},
|
|
344
|
-
},
|
|
345
|
-
};
|
|
346
|
-
};
|
|
347
|
-
var createPrototypeImport = function () {
|
|
348
|
-
return {
|
|
349
|
-
interfaceId: getInterfaceId(),
|
|
350
|
-
};
|
|
351
|
-
};
|
|
352
|
-
var createPrototypeExport = function () {
|
|
353
|
-
return {
|
|
354
|
-
interfaces: [{ interfaceId: getInterfaceId() }],
|
|
355
|
-
};
|
|
356
|
-
};
|
|
357
|
-
exports.Interface = {
|
|
358
|
-
createPrototypeExport: createPrototypeExport,
|
|
359
|
-
createPrototypeImport: createPrototypeImport,
|
|
360
|
-
getInterfaceId: getInterfaceId,
|
|
361
|
-
createMock: createMock,
|
|
362
|
-
};
|
|
363
|
-
//# sourceMappingURL=initializer-system.js.map
|
|
364
|
-
|
|
365
|
-
/***/ }),
|
|
366
|
-
|
|
367
|
-
/***/ "./node_modules/@microchip/pin-standard/lib/index.js":
|
|
368
|
-
/*!***********************************************************!*\
|
|
369
|
-
!*** ./node_modules/@microchip/pin-standard/lib/index.js ***!
|
|
370
|
-
\***********************************************************/
|
|
371
|
-
/*! no static exports found */
|
|
372
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
373
|
-
|
|
374
|
-
"use strict";
|
|
375
|
-
|
|
376
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
377
|
-
var pin_standard_1 = __webpack_require__(/*! ./pin-standard */ "./node_modules/@microchip/pin-standard/lib/pin-standard.js");
|
|
378
|
-
exports.pin_standard = pin_standard_1.pin_standard;
|
|
379
|
-
exports.pin_state = pin_standard_1.pin_state;
|
|
380
|
-
exports.direction = pin_standard_1.direction;
|
|
381
|
-
exports.behaviour = pin_standard_1.behaviour;
|
|
382
|
-
exports.data_schema = pin_standard_1.data_schema;
|
|
383
|
-
exports.pin_attribs_enum = pin_standard_1.pin_attribs_enum;
|
|
384
|
-
exports.actiontype = pin_standard_1.actiontype;
|
|
385
|
-
exports.QueryAdapterKey = pin_standard_1.QueryAdapterKey;
|
|
386
|
-
//# sourceMappingURL=index.js.map
|
|
387
|
-
|
|
388
|
-
/***/ }),
|
|
389
|
-
|
|
390
|
-
/***/ "./node_modules/@microchip/pin-standard/lib/pin-standard.js":
|
|
391
|
-
/*!******************************************************************!*\
|
|
392
|
-
!*** ./node_modules/@microchip/pin-standard/lib/pin-standard.js ***!
|
|
393
|
-
\******************************************************************/
|
|
215
|
+
/***/ "./node_modules/@microchip/pins-interface/lib/types.js":
|
|
216
|
+
/*!*************************************************************!*\
|
|
217
|
+
!*** ./node_modules/@microchip/pins-interface/lib/types.js ***!
|
|
218
|
+
\*************************************************************/
|
|
394
219
|
/*! no static exports found */
|
|
395
220
|
/***/ (function(module, exports, __webpack_require__) {
|
|
396
221
|
|
|
397
222
|
"use strict";
|
|
398
223
|
|
|
399
224
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
400
|
-
exports.
|
|
401
|
-
return {
|
|
402
|
-
interfaceId: {
|
|
403
|
-
name: "pin-standard",
|
|
404
|
-
version: "0.1.0",
|
|
405
|
-
},
|
|
406
|
-
};
|
|
407
|
-
};
|
|
225
|
+
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;
|
|
408
226
|
var QueryAdapterKey;
|
|
409
227
|
(function (QueryAdapterKey) {
|
|
410
228
|
QueryAdapterKey["ALLPINS"] = "allpins";
|
|
411
229
|
QueryAdapterKey["ALLPINS_FOR_ATTRIBS"] = "allpins_for_attribs";
|
|
412
230
|
QueryAdapterKey["PPS"] = "pps";
|
|
231
|
+
QueryAdapterKey["APFCON"] = "apfcon";
|
|
413
232
|
QueryAdapterKey["PORTMUX"] = "portmux";
|
|
414
233
|
QueryAdapterKey["HASPPS"] = "hasPPS";
|
|
415
234
|
})(QueryAdapterKey = exports.QueryAdapterKey || (exports.QueryAdapterKey = {}));
|
|
@@ -446,6 +265,7 @@ var pin_attribs_enum;
|
|
|
446
265
|
pin_attribs_enum["ioc"] = "ioc";
|
|
447
266
|
pin_attribs_enum["intcallback"] = "intcallback";
|
|
448
267
|
pin_attribs_enum["alias"] = "alias";
|
|
268
|
+
pin_attribs_enum["advInpBuff"] = "advInpBuff";
|
|
449
269
|
})(pin_attribs_enum = exports.pin_attribs_enum || (exports.pin_attribs_enum = {}));
|
|
450
270
|
var actiontype;
|
|
451
271
|
(function (actiontype) {
|
|
@@ -465,10 +285,18 @@ var behaviour;
|
|
|
465
285
|
behaviour["SINGLE_PIN_MUX"] = "SINGLE_PIN_MUX";
|
|
466
286
|
behaviour["OPTIONAL_PIN_MUX"] = "OPTIONAL_PIN_MUX";
|
|
467
287
|
behaviour["PPS"] = "PPS";
|
|
288
|
+
behaviour["APFCON"] = "APFCON";
|
|
468
289
|
behaviour["PORTMUX"] = "PORTMUX";
|
|
469
290
|
behaviour["EXCLUSIVE_LOCK"] = "EXCLUSIVE_LOCK";
|
|
470
291
|
behaviour["LOCKED_DISABLED"] = "LOCKED_DISABLED";
|
|
471
292
|
})(behaviour = exports.behaviour || (exports.behaviour = {}));
|
|
293
|
+
var PIN_ARCH;
|
|
294
|
+
(function (PIN_ARCH) {
|
|
295
|
+
PIN_ARCH["PIC18F"] = "PIC18F";
|
|
296
|
+
PIN_ARCH["AVR8"] = "AVR8";
|
|
297
|
+
PIN_ARCH["PIC16F"] = "PIC16F";
|
|
298
|
+
PIN_ARCH["PIC24F"] = "PIC24F";
|
|
299
|
+
})(PIN_ARCH = exports.PIN_ARCH || (exports.PIN_ARCH = {}));
|
|
472
300
|
//------------------------------------ schema ------------------------------------//
|
|
473
301
|
exports.data_schema = {
|
|
474
302
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
@@ -654,7 +482,7 @@ exports.data_schema = {
|
|
|
654
482
|
},
|
|
655
483
|
},
|
|
656
484
|
};
|
|
657
|
-
//# sourceMappingURL=
|
|
485
|
+
//# sourceMappingURL=types.js.map
|
|
658
486
|
|
|
659
487
|
/***/ }),
|
|
660
488
|
|
|
@@ -746,7 +574,7 @@ function mapOptionLabels(populatedImport, labelFactory) {
|
|
|
746
574
|
return populatedImport;
|
|
747
575
|
}
|
|
748
576
|
exports.mapOptionLabels = mapOptionLabels;
|
|
749
|
-
|
|
577
|
+
|
|
750
578
|
|
|
751
579
|
/***/ }),
|
|
752
580
|
|
|
@@ -838,6 +666,243 @@ exports.getInterfaceName = helpers_1.getInterfaceName;
|
|
|
838
666
|
exports.getInterfaceVersion = helpers_1.getInterfaceVersion;
|
|
839
667
|
|
|
840
668
|
|
|
669
|
+
/***/ }),
|
|
670
|
+
|
|
671
|
+
/***/ "./node_modules/@microchip/sys-init-basic-interface/lib/api.js":
|
|
672
|
+
/*!*********************************************************************!*\
|
|
673
|
+
!*** ./node_modules/@microchip/sys-init-basic-interface/lib/api.js ***!
|
|
674
|
+
\*********************************************************************/
|
|
675
|
+
/*! no static exports found */
|
|
676
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
677
|
+
|
|
678
|
+
"use strict";
|
|
679
|
+
|
|
680
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
681
|
+
if (k2 === undefined) k2 = k;
|
|
682
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
683
|
+
}) : (function(o, m, k, k2) {
|
|
684
|
+
if (k2 === undefined) k2 = k;
|
|
685
|
+
o[k2] = m[k];
|
|
686
|
+
}));
|
|
687
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
688
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
689
|
+
}) : function(o, v) {
|
|
690
|
+
o["default"] = v;
|
|
691
|
+
});
|
|
692
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
693
|
+
if (mod && mod.__esModule) return mod;
|
|
694
|
+
var result = {};
|
|
695
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
696
|
+
__setModuleDefault(result, mod);
|
|
697
|
+
return result;
|
|
698
|
+
};
|
|
699
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
700
|
+
exports.createPrototypeExport = exports.createPrototypeImport = exports.getInterfaceId = void 0;
|
|
701
|
+
var InterfaceTypes = __importStar(__webpack_require__(/*! @microchip/scf-interface */ "./node_modules/@microchip/scf-interface/lib/index.js"));
|
|
702
|
+
var pkgJson = __webpack_require__(/*! ../package.json */ "./node_modules/@microchip/sys-init-basic-interface/package.json");
|
|
703
|
+
exports.getInterfaceId = function () {
|
|
704
|
+
return {
|
|
705
|
+
name: InterfaceTypes.getInterfaceName(pkgJson),
|
|
706
|
+
version: InterfaceTypes.getInterfaceVersion(pkgJson),
|
|
707
|
+
};
|
|
708
|
+
};
|
|
709
|
+
exports.createPrototypeImport = function () {
|
|
710
|
+
return {
|
|
711
|
+
interfaceId: exports.getInterfaceId(),
|
|
712
|
+
};
|
|
713
|
+
};
|
|
714
|
+
exports.createPrototypeExport = function () {
|
|
715
|
+
return {
|
|
716
|
+
interfaces: [{ interfaceId: exports.getInterfaceId() }],
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
/***/ }),
|
|
722
|
+
|
|
723
|
+
/***/ "./node_modules/@microchip/sys-init-basic-interface/lib/index.js":
|
|
724
|
+
/*!***********************************************************************!*\
|
|
725
|
+
!*** ./node_modules/@microchip/sys-init-basic-interface/lib/index.js ***!
|
|
726
|
+
\***********************************************************************/
|
|
727
|
+
/*! no static exports found */
|
|
728
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
729
|
+
|
|
730
|
+
"use strict";
|
|
731
|
+
|
|
732
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
733
|
+
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");
|
|
734
|
+
Object.defineProperty(exports, "Interface", { enumerable: true, get: function () { return sys_init_basic_interface_1.Interface; } });
|
|
735
|
+
Object.defineProperty(exports, "INIT_PRIORITY", { enumerable: true, get: function () { return sys_init_basic_interface_1.INIT_PRIORITY; } });
|
|
736
|
+
Object.defineProperty(exports, "prioritySorter", { enumerable: true, get: function () { return sys_init_basic_interface_1.prioritySorter; } });
|
|
737
|
+
Object.defineProperty(exports, "sortSysInitInitializers", { enumerable: true, get: function () { return sys_init_basic_interface_1.sortSysInitInitializers; } });
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
/***/ }),
|
|
741
|
+
|
|
742
|
+
/***/ "./node_modules/@microchip/sys-init-basic-interface/lib/mock.js":
|
|
743
|
+
/*!**********************************************************************!*\
|
|
744
|
+
!*** ./node_modules/@microchip/sys-init-basic-interface/lib/mock.js ***!
|
|
745
|
+
\**********************************************************************/
|
|
746
|
+
/*! no static exports found */
|
|
747
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
748
|
+
|
|
749
|
+
"use strict";
|
|
750
|
+
|
|
751
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
752
|
+
exports.createMock = void 0;
|
|
753
|
+
var api_1 = __webpack_require__(/*! ./api */ "./node_modules/@microchip/sys-init-basic-interface/lib/api.js");
|
|
754
|
+
exports.createMock = function () {
|
|
755
|
+
return {
|
|
756
|
+
interfaceId: api_1.getInterfaceId(),
|
|
757
|
+
payload: {
|
|
758
|
+
moduleName: "MyModule",
|
|
759
|
+
},
|
|
760
|
+
args: {},
|
|
761
|
+
results: {
|
|
762
|
+
requestId: {
|
|
763
|
+
initializers: [
|
|
764
|
+
{
|
|
765
|
+
name: "mymodule_init1();",
|
|
766
|
+
header: {
|
|
767
|
+
name: "../mymodule.h",
|
|
768
|
+
path: "include/",
|
|
769
|
+
},
|
|
770
|
+
priority: 1,
|
|
771
|
+
},
|
|
772
|
+
],
|
|
773
|
+
localInitializers: [
|
|
774
|
+
{
|
|
775
|
+
funcDec: "void mymodule_init2(void);",
|
|
776
|
+
name: "mymodule_init2();",
|
|
777
|
+
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 */",
|
|
778
|
+
priority: 1,
|
|
779
|
+
},
|
|
780
|
+
],
|
|
781
|
+
},
|
|
782
|
+
},
|
|
783
|
+
};
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
/***/ }),
|
|
788
|
+
|
|
789
|
+
/***/ "./node_modules/@microchip/sys-init-basic-interface/lib/sys-init-basic-interface.js":
|
|
790
|
+
/*!******************************************************************************************!*\
|
|
791
|
+
!*** ./node_modules/@microchip/sys-init-basic-interface/lib/sys-init-basic-interface.js ***!
|
|
792
|
+
\******************************************************************************************/
|
|
793
|
+
/*! no static exports found */
|
|
794
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
795
|
+
|
|
796
|
+
"use strict";
|
|
797
|
+
|
|
798
|
+
var __assign = (this && this.__assign) || function () {
|
|
799
|
+
__assign = Object.assign || function(t) {
|
|
800
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
801
|
+
s = arguments[i];
|
|
802
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
803
|
+
t[p] = s[p];
|
|
804
|
+
}
|
|
805
|
+
return t;
|
|
806
|
+
};
|
|
807
|
+
return __assign.apply(this, arguments);
|
|
808
|
+
};
|
|
809
|
+
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
810
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
811
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
812
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
813
|
+
r[k] = a[j];
|
|
814
|
+
return r;
|
|
815
|
+
};
|
|
816
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
817
|
+
exports.Interface = exports.sortSysInitInitializers = exports.prioritySorter = exports.INIT_PRIORITY = void 0;
|
|
818
|
+
var mock_1 = __webpack_require__(/*! ./mock */ "./node_modules/@microchip/sys-init-basic-interface/lib/mock.js");
|
|
819
|
+
var api_1 = __webpack_require__(/*! ./api */ "./node_modules/@microchip/sys-init-basic-interface/lib/api.js");
|
|
820
|
+
var INIT_PRIORITY;
|
|
821
|
+
(function (INIT_PRIORITY) {
|
|
822
|
+
INIT_PRIORITY[INIT_PRIORITY["START"] = 1] = "START";
|
|
823
|
+
INIT_PRIORITY[INIT_PRIORITY["PRE_PERIPHERAL"] = 50] = "PRE_PERIPHERAL";
|
|
824
|
+
INIT_PRIORITY[INIT_PRIORITY["PERIPHERAL"] = 100] = "PERIPHERAL";
|
|
825
|
+
INIT_PRIORITY[INIT_PRIORITY["POST_PERIPHERAL"] = 150] = "POST_PERIPHERAL";
|
|
826
|
+
INIT_PRIORITY[INIT_PRIORITY["DEFAULT"] = 200] = "DEFAULT";
|
|
827
|
+
INIT_PRIORITY[INIT_PRIORITY["PRE_SOFTWARE"] = 250] = "PRE_SOFTWARE";
|
|
828
|
+
INIT_PRIORITY[INIT_PRIORITY["SOFTWARE"] = 300] = "SOFTWARE";
|
|
829
|
+
INIT_PRIORITY[INIT_PRIORITY["POST_SOFTWARE"] = 350] = "POST_SOFTWARE";
|
|
830
|
+
INIT_PRIORITY[INIT_PRIORITY["END"] = 400] = "END";
|
|
831
|
+
})(INIT_PRIORITY = exports.INIT_PRIORITY || (exports.INIT_PRIORITY = {}));
|
|
832
|
+
/** Sorting initializer based on the priority. */
|
|
833
|
+
exports.prioritySorter = function (a, b) {
|
|
834
|
+
var _a, _b, _c, _d;
|
|
835
|
+
var result = 0;
|
|
836
|
+
var apriority = (_a = a === null || a === void 0 ? void 0 : a.initializer.priority) !== null && _a !== void 0 ? _a : INIT_PRIORITY.DEFAULT;
|
|
837
|
+
var bpriority = (_b = b === null || b === void 0 ? void 0 : b.initializer.priority) !== null && _b !== void 0 ? _b : INIT_PRIORITY.DEFAULT;
|
|
838
|
+
if (apriority < bpriority) {
|
|
839
|
+
result = -1;
|
|
840
|
+
}
|
|
841
|
+
else if (apriority > bpriority) {
|
|
842
|
+
result = 1;
|
|
843
|
+
}
|
|
844
|
+
else {
|
|
845
|
+
//same priority sort via intializer name alphabetically
|
|
846
|
+
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;
|
|
847
|
+
}
|
|
848
|
+
return result;
|
|
849
|
+
};
|
|
850
|
+
/**Creating list - combination of initializers and localInitializers */
|
|
851
|
+
exports.sortSysInitInitializers = function (data) {
|
|
852
|
+
var retinitializers = __spreadArrays(data);
|
|
853
|
+
var initSystemList = [];
|
|
854
|
+
//iterating initializers[]
|
|
855
|
+
for (var _i = 0, retinitializers_1 = retinitializers; _i < retinitializers_1.length; _i++) {
|
|
856
|
+
var entry = retinitializers_1[_i];
|
|
857
|
+
if (entry.initializers) {
|
|
858
|
+
for (var _a = 0, _b = entry.initializers; _a < _b.length; _a++) {
|
|
859
|
+
var subentry = _b[_a];
|
|
860
|
+
// if (subentry) {
|
|
861
|
+
var temp = {
|
|
862
|
+
initializer: __assign(__assign({}, subentry), { isLocalInit: false, isNewInterface: true }),
|
|
863
|
+
};
|
|
864
|
+
initSystemList.push(temp);
|
|
865
|
+
// }
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
//iterating localInitializers[]
|
|
870
|
+
for (var _c = 0, retinitializers_2 = retinitializers; _c < retinitializers_2.length; _c++) {
|
|
871
|
+
var entry = retinitializers_2[_c];
|
|
872
|
+
if (entry.localInitializers) {
|
|
873
|
+
for (var _d = 0, _e = entry.localInitializers; _d < _e.length; _d++) {
|
|
874
|
+
var subentry = _e[_d];
|
|
875
|
+
// if (subentry) {
|
|
876
|
+
var temp = {
|
|
877
|
+
initializer: __assign(__assign({}, subentry), { isLocalInit: true, isNewInterface: true }),
|
|
878
|
+
};
|
|
879
|
+
initSystemList.push(temp);
|
|
880
|
+
// }
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
initSystemList.sort(exports.prioritySorter);
|
|
885
|
+
return initSystemList;
|
|
886
|
+
};
|
|
887
|
+
exports.Interface = {
|
|
888
|
+
createPrototypeExport: api_1.createPrototypeExport,
|
|
889
|
+
createPrototypeImport: api_1.createPrototypeImport,
|
|
890
|
+
getInterfaceId: api_1.getInterfaceId,
|
|
891
|
+
createMock: mock_1.createMock,
|
|
892
|
+
};
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
/***/ }),
|
|
896
|
+
|
|
897
|
+
/***/ "./node_modules/@microchip/sys-init-basic-interface/package.json":
|
|
898
|
+
/*!***********************************************************************!*\
|
|
899
|
+
!*** ./node_modules/@microchip/sys-init-basic-interface/package.json ***!
|
|
900
|
+
\***********************************************************************/
|
|
901
|
+
/*! exports provided: name, version, license, main, typings, scripts, husky, lint-staged, jest, dependencies, devDependencies, files, notificationEmail, default */
|
|
902
|
+
/***/ (function(module) {
|
|
903
|
+
|
|
904
|
+
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\"}");
|
|
905
|
+
|
|
841
906
|
/***/ }),
|
|
842
907
|
|
|
843
908
|
/***/ "./src/ClockCalculator.ts":
|
|
@@ -851,56 +916,45 @@ exports.getInterfaceVersion = helpers_1.getInterfaceVersion;
|
|
|
851
916
|
__webpack_require__.r(__webpack_exports__);
|
|
852
917
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClockCalculator", function() { return ClockCalculator; });
|
|
853
918
|
/* harmony import */ var _StringConstants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./StringConstants */ "./src/StringConstants.ts");
|
|
919
|
+
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); }
|
|
920
|
+
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); } }
|
|
921
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
854
922
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
923
|
+
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; }
|
|
924
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
925
|
+
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); }
|
|
855
926
|
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
var ClockCalculator = // in Hz
|
|
927
|
+
var ClockCalculator = /*#__PURE__*/_createClass(
|
|
860
928
|
// in Hz
|
|
929
|
+
|
|
861
930
|
function ClockCalculator(oscSelect, HFInternalClk, externalClk, clkDivider) {
|
|
862
931
|
var _this = this;
|
|
863
|
-
|
|
864
932
|
_classCallCheck(this, ClockCalculator);
|
|
865
|
-
|
|
866
933
|
_defineProperty(this, "lfintosc", "31000");
|
|
867
|
-
|
|
868
934
|
_defineProperty(this, "mfintosc", "500000");
|
|
869
|
-
|
|
870
935
|
_defineProperty(this, "mfintosc_31KHz", "31250");
|
|
871
|
-
|
|
872
936
|
_defineProperty(this, "sosc", "32768");
|
|
873
|
-
|
|
874
937
|
_defineProperty(this, "oscSelect", void 0);
|
|
875
|
-
|
|
876
938
|
_defineProperty(this, "HFInternalClk", void 0);
|
|
877
|
-
|
|
878
939
|
_defineProperty(this, "externalClk", void 0);
|
|
879
|
-
|
|
880
940
|
_defineProperty(this, "clkDivider", void 0);
|
|
881
|
-
|
|
882
941
|
_defineProperty(this, "MAX_PLL", 16000000);
|
|
883
|
-
|
|
942
|
+
// in Hz
|
|
884
943
|
_defineProperty(this, "MIN_PLL", 3000000);
|
|
885
|
-
|
|
886
944
|
_defineProperty(this, "getCurrentSystemClk", function () {
|
|
887
945
|
var currentSystemClk;
|
|
888
946
|
var HFClk;
|
|
889
|
-
|
|
890
947
|
if (_this.oscSelect === _StringConstants__WEBPACK_IMPORTED_MODULE_0__["StringConstants"].SOSC) {
|
|
891
948
|
currentSystemClk = 32768 / _this.clkDivider;
|
|
892
949
|
} else if (_this.oscSelect === _StringConstants__WEBPACK_IMPORTED_MODULE_0__["StringConstants"].LFINTOSC) {
|
|
893
950
|
currentSystemClk = 31000 / _this.clkDivider;
|
|
894
951
|
} else if (_this.oscSelect === _StringConstants__WEBPACK_IMPORTED_MODULE_0__["StringConstants"].HFINTOSC) {
|
|
895
952
|
var _this$HFInternalClk$r, _this$HFInternalClk;
|
|
896
|
-
|
|
897
953
|
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");
|
|
898
954
|
currentSystemClk = HFClk * 1000000 / _this.clkDivider;
|
|
899
955
|
} else if (_this.oscSelect === _StringConstants__WEBPACK_IMPORTED_MODULE_0__["StringConstants"].HFINTOSC_2xPLL) {
|
|
900
956
|
var _this$HFInternalClk$r2, _this$HFInternalClk2;
|
|
901
|
-
|
|
902
957
|
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");
|
|
903
|
-
|
|
904
958
|
if (HFClk == 8 || HFClk == 12 || HFClk == 16) {
|
|
905
959
|
currentSystemClk = HFClk * 2 * 1000000 / _this.clkDivider;
|
|
906
960
|
} else {
|
|
@@ -915,41 +969,32 @@ function ClockCalculator(oscSelect, HFInternalClk, externalClk, clkDivider) {
|
|
|
915
969
|
currentSystemClk = _this.externalClk * 4 / _this.clkDivider;
|
|
916
970
|
}
|
|
917
971
|
}
|
|
918
|
-
|
|
919
972
|
return Math.round(currentSystemClk);
|
|
920
973
|
});
|
|
921
|
-
|
|
922
974
|
_defineProperty(this, "getHfIntOsc", function () {
|
|
923
975
|
var _this$HFInternalClk$r3, _this$HFInternalClk3;
|
|
924
|
-
|
|
925
976
|
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";
|
|
926
977
|
});
|
|
927
|
-
|
|
928
978
|
_defineProperty(this, "getMfIntOsc", function () {
|
|
929
979
|
return _this.mfintosc;
|
|
930
980
|
});
|
|
931
|
-
|
|
932
981
|
_defineProperty(this, "getMfIntOsc_31KHz", function () {
|
|
933
982
|
return _this.mfintosc_31KHz;
|
|
934
983
|
});
|
|
935
|
-
|
|
936
984
|
_defineProperty(this, "getLfIntOsc", function () {
|
|
937
985
|
return _this.lfintosc;
|
|
938
986
|
});
|
|
939
|
-
|
|
940
987
|
_defineProperty(this, "getExtOsc", function () {
|
|
941
988
|
return _this.externalClk.toString();
|
|
942
989
|
});
|
|
943
|
-
|
|
944
990
|
_defineProperty(this, "getSosc", function () {
|
|
945
991
|
return _this.sosc;
|
|
946
992
|
});
|
|
947
|
-
|
|
948
993
|
this.oscSelect = oscSelect;
|
|
949
994
|
this.HFInternalClk = HFInternalClk;
|
|
950
995
|
this.externalClk = externalClk;
|
|
951
996
|
this.clkDivider = clkDivider;
|
|
952
|
-
};
|
|
997
|
+
});
|
|
953
998
|
|
|
954
999
|
/***/ }),
|
|
955
1000
|
|
|
@@ -968,7 +1013,6 @@ var getCreatorFunctions = function getCreatorFunctions() {
|
|
|
968
1013
|
shouldImport: shouldImport
|
|
969
1014
|
};
|
|
970
1015
|
};
|
|
971
|
-
|
|
972
1016
|
var shouldImport = function shouldImport(importKey, state) {
|
|
973
1017
|
return true;
|
|
974
1018
|
};
|
|
@@ -990,18 +1034,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
990
1034
|
/* 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");
|
|
991
1035
|
/* 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__);
|
|
992
1036
|
/* harmony import */ var _ClockCalculator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ClockCalculator */ "./src/ClockCalculator.ts");
|
|
993
|
-
/* harmony import */ var
|
|
994
|
-
/* harmony import */ var
|
|
995
|
-
/* harmony import */ var
|
|
996
|
-
/* harmony import */ var
|
|
997
|
-
function
|
|
998
|
-
|
|
999
|
-
function
|
|
1000
|
-
|
|
1037
|
+
/* harmony import */ var _StringConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./StringConstants */ "./src/StringConstants.ts");
|
|
1038
|
+
/* 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");
|
|
1039
|
+
/* 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");
|
|
1040
|
+
/* 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__);
|
|
1041
|
+
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); }
|
|
1042
|
+
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); } }
|
|
1043
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
1001
1044
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1002
|
-
|
|
1003
|
-
function
|
|
1004
|
-
|
|
1045
|
+
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; }
|
|
1046
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
1047
|
+
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); }
|
|
1005
1048
|
|
|
1006
1049
|
|
|
1007
1050
|
|
|
@@ -1011,41 +1054,33 @@ var getDerivedData = function getDerivedData(dataModel) {
|
|
|
1011
1054
|
if (dataModel) {
|
|
1012
1055
|
return new MyDerivedData(dataModel);
|
|
1013
1056
|
}
|
|
1014
|
-
|
|
1015
1057
|
return new EmptyDerivedData();
|
|
1016
|
-
};
|
|
1058
|
+
};
|
|
1017
1059
|
|
|
1018
|
-
|
|
1060
|
+
//This data will be used at the creator stage and relies on only the state
|
|
1061
|
+
var EmptyDerivedData = /*#__PURE__*/_createClass(function EmptyDerivedData() {
|
|
1019
1062
|
_classCallCheck(this, EmptyDerivedData);
|
|
1020
|
-
|
|
1021
1063
|
_defineProperty(this, "getMyFunctions", function () {
|
|
1022
1064
|
return {};
|
|
1023
1065
|
});
|
|
1024
|
-
|
|
1025
1066
|
_defineProperty(this, "getModel", function () {
|
|
1026
1067
|
return undefined;
|
|
1027
1068
|
});
|
|
1028
|
-
};
|
|
1069
|
+
});
|
|
1029
1070
|
|
|
1030
|
-
|
|
1071
|
+
//This data will be used at the processor stage
|
|
1072
|
+
var MyDerivedData = /*#__PURE__*/_createClass(function MyDerivedData(dataModel) {
|
|
1031
1073
|
var _this = this;
|
|
1032
|
-
|
|
1033
1074
|
_classCallCheck(this, MyDerivedData);
|
|
1034
|
-
|
|
1035
1075
|
_defineProperty(this, "dataModel", void 0);
|
|
1036
|
-
|
|
1037
1076
|
_defineProperty(this, "clockCalculator", void 0);
|
|
1038
|
-
|
|
1039
1077
|
_defineProperty(this, "getClockCalculator", function () {
|
|
1040
1078
|
if (!_this.clockCalculator) {
|
|
1041
1079
|
var _this$getModel$getCom, _this$getModel$getCom2, _this$getModel$getCom3, _this$getModel$getCom4;
|
|
1042
|
-
|
|
1043
1080
|
_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 : ""));
|
|
1044
1081
|
}
|
|
1045
|
-
|
|
1046
1082
|
return _this.clockCalculator;
|
|
1047
1083
|
});
|
|
1048
|
-
|
|
1049
1084
|
_defineProperty(this, "getMyFunctions", function () {
|
|
1050
1085
|
return {
|
|
1051
1086
|
moduleName: _this.getModuleName,
|
|
@@ -1059,69 +1094,92 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
1059
1094
|
"fosc-hz_payload": function foscHz_payload() {
|
|
1060
1095
|
return _this.getClockCalculator().getCurrentSystemClk().toString();
|
|
1061
1096
|
},
|
|
1062
|
-
|
|
1097
|
+
sys_init_basic_interface_results: _this.sys_init_basic_interface_results,
|
|
1063
1098
|
config_device_results: _this.config_device_results,
|
|
1064
1099
|
templateData: _this.getTemplateData,
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
},
|
|
1100
|
+
overrideDefaultValues: _this.overrideDefaultValue,
|
|
1101
|
+
configbits_basic_interface_args: _this.getConfigbitsBasicInterfaceArgs,
|
|
1068
1102
|
"osc-clocks_payload": _this.getOscClocksProcessedPayload,
|
|
1103
|
+
"clock-basic-interface_payload": _this.getClockProcessedPayload,
|
|
1069
1104
|
doNotShow: function doNotShow() {
|
|
1070
1105
|
return false;
|
|
1071
1106
|
},
|
|
1072
|
-
getPinsLogic:
|
|
1107
|
+
getPinsLogic: _generated_module_src_pins_PCPHelper__WEBPACK_IMPORTED_MODULE_3__["getPinsLogic"],
|
|
1073
1108
|
importName: _this.friendlyImportName
|
|
1074
1109
|
};
|
|
1075
1110
|
});
|
|
1076
|
-
|
|
1077
1111
|
_defineProperty(this, "friendlyImportName", function (importKey) {
|
|
1078
1112
|
if (importKey === "scf_pic8_osc_v1") return "Oscillator Hardware";
|
|
1079
|
-
if (importKey === "
|
|
1113
|
+
if (importKey === "sys_init_basic_interface") return "system.c Initialize()";
|
|
1080
1114
|
if (importKey === "config_device") return "Configuration Device";
|
|
1081
|
-
if (importKey === "
|
|
1082
|
-
if (importKey === "
|
|
1115
|
+
if (importKey === "configbits_basic_interface") return "Configuration Request";
|
|
1116
|
+
if (importKey === "pins_interface") return "Pins";
|
|
1083
1117
|
return importKey;
|
|
1084
1118
|
});
|
|
1085
|
-
|
|
1119
|
+
_defineProperty(this, "sys_init_basic_interface_results", function () {
|
|
1120
|
+
return {
|
|
1121
|
+
initializers: [{
|
|
1122
|
+
name: "CLOCK_Initialize();",
|
|
1123
|
+
header: {
|
|
1124
|
+
name: "clock.h",
|
|
1125
|
+
path: "system/"
|
|
1126
|
+
},
|
|
1127
|
+
priority: _microchip_sys_init_basic_interface__WEBPACK_IMPORTED_MODULE_4__["INIT_PRIORITY"].START
|
|
1128
|
+
}]
|
|
1129
|
+
};
|
|
1130
|
+
});
|
|
1131
|
+
_defineProperty(this, "getConfigbitsBasicInterfaceArgs", function () {
|
|
1132
|
+
return {
|
|
1133
|
+
configsReq: ["FEXTOSC", "CLKOUTEN", "MCLRE", "LVP", "RSTOSC"]
|
|
1134
|
+
};
|
|
1135
|
+
});
|
|
1136
|
+
_defineProperty(this, "getDynamicComponetDefaultValue", function (componentName) {
|
|
1137
|
+
var _this$dataModel$getIm, _selectedOptionVal;
|
|
1138
|
+
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];
|
|
1139
|
+
var selectedOptionVal;
|
|
1140
|
+
if (externalClkSelectedOptions) {
|
|
1141
|
+
selectedOptionVal = externalClkSelectedOptions["defaultValue"]["value"];
|
|
1142
|
+
}
|
|
1143
|
+
return (_selectedOptionVal = selectedOptionVal) !== null && _selectedOptionVal !== void 0 ? _selectedOptionVal : undefined;
|
|
1144
|
+
});
|
|
1086
1145
|
_defineProperty(this, "getResOscValue", function () {
|
|
1087
1146
|
var resetOscValue = _this.getDynamicComponetDefaultValue("RSTOSC");
|
|
1088
|
-
|
|
1089
1147
|
var actualOscValue;
|
|
1090
|
-
|
|
1091
1148
|
if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("4x PLL")) !== -1) {
|
|
1092
|
-
actualOscValue = "EXTOSC
|
|
1149
|
+
actualOscValue = "EXTOSC with 4x PLL";
|
|
1093
1150
|
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("Secondary Oscillator")) !== -1) {
|
|
1094
1151
|
actualOscValue = "SOSC";
|
|
1095
1152
|
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("Low-Frequency")) !== -1) {
|
|
1096
1153
|
actualOscValue = "LFINTOSC";
|
|
1097
1154
|
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("HFINTOSC with HFFRQ = 4 MHz and CDIV = 4:1")) !== -1) {
|
|
1098
1155
|
actualOscValue = "HFINTOSC";
|
|
1156
|
+
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("HFINTOSC with HFFRQ = 64 MHz and CDIV = 1:1")) !== -1) {
|
|
1157
|
+
actualOscValue = "HFINTOSC";
|
|
1099
1158
|
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("FEXTOSC")) !== -1) {
|
|
1100
1159
|
actualOscValue = "EXTOSC";
|
|
1101
1160
|
} else {
|
|
1102
1161
|
actualOscValue = undefined;
|
|
1103
1162
|
}
|
|
1104
|
-
|
|
1105
1163
|
return actualOscValue;
|
|
1106
1164
|
});
|
|
1107
|
-
|
|
1108
1165
|
_defineProperty(this, "getPLLStatus", function () {
|
|
1109
1166
|
var pllStatus = _this.getResOscValue();
|
|
1110
|
-
|
|
1111
1167
|
var pllEnable = _this.dataModel.isComponentValue("pllenOscen");
|
|
1112
|
-
|
|
1113
|
-
if (pllStatus === "EXTOSC
|
|
1168
|
+
var clkSrcVal = _this.dataModel.getComponentValue("noscOsccon1");
|
|
1169
|
+
if (pllStatus === "EXTOSC with 4x PLL") {
|
|
1114
1170
|
return true;
|
|
1115
1171
|
} else if (pllEnable === true) {
|
|
1116
1172
|
return true;
|
|
1173
|
+
} else if ((clkSrcVal === null || clkSrcVal === void 0 ? void 0 : clkSrcVal.indexOf("4x PLL")) !== -1) {
|
|
1174
|
+
return true;
|
|
1175
|
+
} else if ((clkSrcVal === null || clkSrcVal === void 0 ? void 0 : clkSrcVal.indexOf("2x PLL")) !== -1) {
|
|
1176
|
+
return true;
|
|
1117
1177
|
} else {
|
|
1118
1178
|
return false;
|
|
1119
1179
|
}
|
|
1120
1180
|
});
|
|
1121
|
-
|
|
1122
1181
|
_defineProperty(this, "getOscClocksProcessedPayload", function () {
|
|
1123
1182
|
var _this$getClockCalcula, _this$getClockCalcula2, _this$getClockCalcula3, _this$getClockCalcula4, _this$getClockCalcula5, _this$getClockCalcula6, _this$getClockCalcula7;
|
|
1124
|
-
|
|
1125
1183
|
var oscObj = {
|
|
1126
1184
|
extosc: (_this$getClockCalcula = _this.getClockCalculator().getExtOsc()) !== null && _this$getClockCalcula !== void 0 ? _this$getClockCalcula : "32768",
|
|
1127
1185
|
fosc: (_this$getClockCalcula2 = _this.getClockCalculator().getCurrentSystemClk().toString()) !== null && _this$getClockCalcula2 !== void 0 ? _this$getClockCalcula2 : "1000000",
|
|
@@ -1132,57 +1190,60 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
1132
1190
|
sosc: (_this$getClockCalcula7 = _this.getClockCalculator().getSosc()) !== null && _this$getClockCalcula7 !== void 0 ? _this$getClockCalcula7 : "32768"
|
|
1133
1191
|
};
|
|
1134
1192
|
var hasSosc = _this.dataModel.isComponentValue("soscenOscen") !== undefined ? true : false;
|
|
1135
|
-
|
|
1136
1193
|
if (hasSosc) {
|
|
1137
1194
|
oscObj.hasSosc = true;
|
|
1138
1195
|
oscObj.soscEnabled = _this.dataModel.isComponentValue("soscenOscen");
|
|
1139
1196
|
oscObj.soscPowerMode = _this.dataModel.getComponentValue("soscpwrOsccon3");
|
|
1140
1197
|
}
|
|
1141
|
-
|
|
1142
1198
|
return oscObj;
|
|
1143
1199
|
});
|
|
1144
|
-
|
|
1200
|
+
_defineProperty(this, "getClockProcessedPayload", function () {
|
|
1201
|
+
var _this$getClockCalcula8, _this$getClockCalcula9, _this$getClockCalcula10, _this$getClockCalcula11, _this$getClockCalcula12, _this$getClockCalcula13, _this$getClockCalcula14;
|
|
1202
|
+
var clockObj = {
|
|
1203
|
+
fosc: (_this$getClockCalcula8 = _this.getClockCalculator().getCurrentSystemClk().toString()) !== null && _this$getClockCalcula8 !== void 0 ? _this$getClockCalcula8 : "1000000",
|
|
1204
|
+
extosc: (_this$getClockCalcula9 = _this.getClockCalculator().getExtOsc()) !== null && _this$getClockCalcula9 !== void 0 ? _this$getClockCalcula9 : "32768",
|
|
1205
|
+
hfintosc: (_this$getClockCalcula10 = _this.getClockCalculator().getHfIntOsc()) !== null && _this$getClockCalcula10 !== void 0 ? _this$getClockCalcula10 : "1000000",
|
|
1206
|
+
lfintosc: (_this$getClockCalcula11 = _this.getClockCalculator().getLfIntOsc()) !== null && _this$getClockCalcula11 !== void 0 ? _this$getClockCalcula11 : "31000",
|
|
1207
|
+
mfintosc: (_this$getClockCalcula12 = _this.getClockCalculator().getMfIntOsc()) !== null && _this$getClockCalcula12 !== void 0 ? _this$getClockCalcula12 : "500000",
|
|
1208
|
+
mfintosc_31Khz: (_this$getClockCalcula13 = _this.getClockCalculator().getMfIntOsc_31KHz()) !== null && _this$getClockCalcula13 !== void 0 ? _this$getClockCalcula13 : "31250",
|
|
1209
|
+
sosc: (_this$getClockCalcula14 = _this.getClockCalculator().getSosc()) !== null && _this$getClockCalcula14 !== void 0 ? _this$getClockCalcula14 : "32768"
|
|
1210
|
+
};
|
|
1211
|
+
var hasSosc = _this.dataModel.isComponentValue("soscenOscen") !== undefined ? true : false;
|
|
1212
|
+
if (hasSosc) {
|
|
1213
|
+
clockObj.hasSosc = true;
|
|
1214
|
+
clockObj.soscEnabled = _this.dataModel.isComponentValue("soscenOscen");
|
|
1215
|
+
clockObj.soscPowerMode = _this.dataModel.getComponentValue("soscpwrOsccon3");
|
|
1216
|
+
}
|
|
1217
|
+
return clockObj;
|
|
1218
|
+
});
|
|
1145
1219
|
_defineProperty(this, "getModuleName", function () {
|
|
1146
1220
|
return "Clock Control";
|
|
1147
1221
|
});
|
|
1148
|
-
|
|
1149
1222
|
_defineProperty(this, "getModel", function () {
|
|
1150
1223
|
return _this.dataModel;
|
|
1151
1224
|
});
|
|
1152
|
-
|
|
1153
1225
|
_defineProperty(this, "getTemplateData", function () {
|
|
1154
1226
|
var _this$getPLLStatus;
|
|
1155
|
-
|
|
1156
1227
|
var headers = {
|
|
1157
1228
|
name: "clock.h",
|
|
1158
1229
|
path: "../"
|
|
1159
|
-
};
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
return _objectSpread({
|
|
1230
|
+
};
|
|
1231
|
+
var initRegisters = _this.dataModel.getRegisterValues();
|
|
1232
|
+
//const registerValues = this.dataModel.getRegisterValues();
|
|
1233
|
+
return {
|
|
1164
1234
|
deviceFrequency: _this.getClockCalculator().getCurrentSystemClk().toString(),
|
|
1165
|
-
|
|
1235
|
+
initRegisters: initRegisters,
|
|
1166
1236
|
header: headers,
|
|
1167
1237
|
moduleNameUpperCase: _this.getModuleName().toUpperCase(),
|
|
1168
1238
|
moduleNameLowerCase: _this.getModuleName().toLowerCase(),
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1239
|
+
PackageVersion: "4.3.6",
|
|
1240
|
+
isPllEnabled: (_this$getPLLStatus = _this.getPLLStatus()) !== null && _this$getPLLStatus !== void 0 ? _this$getPLLStatus : false,
|
|
1241
|
+
//...registerValues,
|
|
1172
1242
|
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
initializer: {
|
|
1176
|
-
name: "CLOCK_Initialize",
|
|
1177
|
-
header: {
|
|
1178
|
-
name: "clock.h",
|
|
1179
|
-
path: "system/"
|
|
1180
|
-
},
|
|
1181
|
-
priority: _microchip_initializer_system__WEBPACK_IMPORTED_MODULE_2__["INIT_PRIORITY"].START
|
|
1182
|
-
}
|
|
1243
|
+
initializerOptimize: _this.getModel().getComponentValue("generateInitializerCode") !== "Initialize all registers" ? true : false,
|
|
1244
|
+
generateCommentedCode: _this.getModel().getComponentValue("generateInitializerCode") === "Generate with commented unmodified registers" ? true : false
|
|
1183
1245
|
};
|
|
1184
1246
|
});
|
|
1185
|
-
|
|
1186
1247
|
_defineProperty(this, "config_device_results", function () {
|
|
1187
1248
|
return {
|
|
1188
1249
|
headers: [{
|
|
@@ -1191,129 +1252,119 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
1191
1252
|
}]
|
|
1192
1253
|
};
|
|
1193
1254
|
});
|
|
1194
|
-
|
|
1195
1255
|
_defineProperty(this, "isEnabled", function (componentName) {
|
|
1196
1256
|
var _this$dataModel$getCo;
|
|
1197
|
-
|
|
1198
1257
|
switch (componentName) {
|
|
1199
1258
|
case "hffrqOscfrq":
|
|
1200
1259
|
return ((_this$dataModel$getCo = _this.dataModel.getComponentValue("noscOsccon1")) === null || _this$dataModel$getCo === void 0 ? void 0 : _this$dataModel$getCo.indexOf("HF")) != -1;
|
|
1201
|
-
|
|
1202
1260
|
case "currentSystemClk":
|
|
1203
1261
|
return false;
|
|
1204
|
-
|
|
1205
1262
|
case "lfIntOscFreq":
|
|
1206
1263
|
return false;
|
|
1207
|
-
|
|
1208
1264
|
default:
|
|
1209
1265
|
return true;
|
|
1210
1266
|
}
|
|
1211
1267
|
});
|
|
1212
|
-
|
|
1213
1268
|
_defineProperty(this, "isVisible", function (componentName) {
|
|
1214
1269
|
var componentValue = _this.dataModel.getComponentValue("noscOsccon1");
|
|
1215
|
-
|
|
1216
1270
|
switch (componentName) {
|
|
1217
1271
|
case "externalClk":
|
|
1218
|
-
if (componentValue ===
|
|
1272
|
+
if (componentValue === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC || componentValue === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC_4xPLL) {
|
|
1219
1273
|
return true;
|
|
1220
1274
|
} else {
|
|
1221
1275
|
return false;
|
|
1222
1276
|
}
|
|
1223
|
-
|
|
1224
1277
|
case "lfIntOscFreq":
|
|
1225
|
-
if (componentValue !=
|
|
1278
|
+
if (componentValue != _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].LFINTOSC) {
|
|
1226
1279
|
return false;
|
|
1227
1280
|
} else {
|
|
1228
1281
|
return true;
|
|
1229
1282
|
}
|
|
1230
|
-
|
|
1231
1283
|
case "hffrqOscfrq":
|
|
1232
|
-
if (componentValue !=
|
|
1284
|
+
if (componentValue != _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].HFINTOSC && componentValue != _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].HFINTOSC_2xPLL) {
|
|
1233
1285
|
return false;
|
|
1234
1286
|
} else {
|
|
1235
1287
|
return true;
|
|
1236
1288
|
}
|
|
1237
|
-
|
|
1238
1289
|
default:
|
|
1239
1290
|
return true;
|
|
1240
1291
|
}
|
|
1241
1292
|
});
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
var _this$dataModel$
|
|
1245
|
-
|
|
1246
|
-
var
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1293
|
+
_defineProperty(this, "getfoscOptions", function () {
|
|
1294
|
+
var _this$dataModel$getHa, _this$dataModel$getHa2, _MHz$replace, _MHz;
|
|
1295
|
+
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 : [];
|
|
1296
|
+
var defaultVal;
|
|
1297
|
+
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);
|
|
1298
|
+
if (foscOptions) {
|
|
1299
|
+
foscOptions.forEach(function (option) {
|
|
1300
|
+
var _option$name$replace, _option$name;
|
|
1301
|
+
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);
|
|
1302
|
+
if (HFClk > refClk) {
|
|
1303
|
+
refClk = HFClk;
|
|
1304
|
+
defaultVal = option.name;
|
|
1305
|
+
}
|
|
1306
|
+
});
|
|
1251
1307
|
}
|
|
1252
|
-
|
|
1253
|
-
|
|
1308
|
+
return defaultVal;
|
|
1309
|
+
});
|
|
1310
|
+
_defineProperty(this, "overrideDefaultValue", function (componentName) {
|
|
1311
|
+
var defVal = undefined;
|
|
1312
|
+
switch (componentName) {
|
|
1313
|
+
case "hffrqOscfrq":
|
|
1314
|
+
defVal = _this.getfoscOptions();
|
|
1315
|
+
break;
|
|
1316
|
+
}
|
|
1317
|
+
return defVal;
|
|
1254
1318
|
});
|
|
1255
|
-
|
|
1256
1319
|
_defineProperty(this, "getMyAlerts", function () {
|
|
1257
1320
|
var _this$getDynamicCompo, _this$getModel$getCom5, _this$getModel$getCom6, _this$dataModel$getCo2, _this$dataModel$getCo3;
|
|
1258
|
-
|
|
1259
1321
|
var alerts = [];
|
|
1260
1322
|
var selectedOptionVal = (_this$getDynamicCompo = _this.getDynamicComponetDefaultValue("FEXTOSC")) !== null && _this$getDynamicCompo !== void 0 ? _this$getDynamicCompo : "";
|
|
1261
|
-
|
|
1262
1323
|
var noscOsccon1 = _this.dataModel.getComponentValue("noscOsccon1");
|
|
1263
|
-
|
|
1264
|
-
if (noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].EXTOSC_4xPLL || noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].EXTOSC) {
|
|
1324
|
+
if (noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC_4xPLL || noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC) {
|
|
1265
1325
|
alerts.push({
|
|
1266
1326
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Hint,
|
|
1267
1327
|
text: 'Please configure required "External Oscillator Selection" in System Module config bits'
|
|
1268
1328
|
});
|
|
1269
1329
|
}
|
|
1270
|
-
|
|
1271
|
-
if (noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["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
|
+
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)) {
|
|
1272
1331
|
alerts.push({
|
|
1273
1332
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1274
1333
|
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."
|
|
1275
1334
|
});
|
|
1276
1335
|
}
|
|
1277
|
-
|
|
1278
|
-
if (noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].EXTOSC_4xPLL || noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].EXTOSC) {
|
|
1336
|
+
if (noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC_4xPLL || noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC) {
|
|
1279
1337
|
var _this$getModel$getCom7;
|
|
1280
|
-
|
|
1281
|
-
if ((selectedOptionVal === null || selectedOptionVal === void 0 ? void 0 : selectedOptionVal.indexOf("external clock")) != -1 && _this.getClockCalculator().getCurrentSystemClk() > _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].ExtClkFreq_64MHz) {
|
|
1338
|
+
if ((selectedOptionVal === null || selectedOptionVal === void 0 ? void 0 : selectedOptionVal.indexOf("external clock")) != -1 && _this.getClockCalculator().getCurrentSystemClk() > _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_64MHz) {
|
|
1282
1339
|
alerts.push({
|
|
1283
1340
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1284
|
-
text: "External clock frequency is greater than recommended value (" +
|
|
1341
|
+
text: "External clock frequency is greater than recommended value (" + _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_64MHz + " Hz)"
|
|
1285
1342
|
});
|
|
1286
1343
|
}
|
|
1287
|
-
|
|
1288
|
-
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_3__["StringConstants"].ExtClkFreq_20MHz) {
|
|
1344
|
+
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) {
|
|
1289
1345
|
alerts.push({
|
|
1290
1346
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1291
|
-
text: "External clock frequency is greater than recommended value (" +
|
|
1347
|
+
text: "External clock frequency is greater than recommended value (" + _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_20MHz + " Hz)"
|
|
1292
1348
|
});
|
|
1293
1349
|
}
|
|
1294
|
-
|
|
1295
|
-
if (selectedOptionVal.indexOf("Oscillator not enabled") != -1 && _this.getClockCalculator().getCurrentSystemClk() > _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].ExtClkFreq_32MHz) {
|
|
1350
|
+
if (selectedOptionVal.indexOf("Oscillator not enabled") != -1 && _this.getClockCalculator().getCurrentSystemClk() > _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_32MHz) {
|
|
1296
1351
|
alerts.push({
|
|
1297
1352
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1298
|
-
text: "External clock frequency is greater than recommended value (" +
|
|
1353
|
+
text: "External clock frequency is greater than recommended value (" + _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_32MHz + " Hz)"
|
|
1299
1354
|
});
|
|
1300
1355
|
}
|
|
1301
1356
|
}
|
|
1302
|
-
|
|
1303
1357
|
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");
|
|
1304
|
-
|
|
1305
|
-
if (_this.dataModel.getComponentValue("noscOsccon1") === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].HFINTOSC_2xPLL && (HFClk == 1 || HFClk == 2 || HFClk == 4 || HFClk == 32)) {
|
|
1358
|
+
if (_this.dataModel.getComponentValue("noscOsccon1") === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].HFINTOSC_2xPLL && (HFClk == 1 || HFClk == 2 || HFClk == 4 || HFClk == 32)) {
|
|
1306
1359
|
alerts.push({
|
|
1307
1360
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1308
1361
|
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."
|
|
1309
1362
|
});
|
|
1310
1363
|
}
|
|
1311
|
-
|
|
1312
1364
|
return alerts;
|
|
1313
1365
|
});
|
|
1314
|
-
|
|
1315
1366
|
this.dataModel = dataModel;
|
|
1316
|
-
};
|
|
1367
|
+
});
|
|
1317
1368
|
|
|
1318
1369
|
/***/ }),
|
|
1319
1370
|
|
|
@@ -1328,41 +1379,35 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
1328
1379
|
__webpack_require__.r(__webpack_exports__);
|
|
1329
1380
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCompletePinData", function() { return getCompletePinData; });
|
|
1330
1381
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRowData", function() { return getRowData; });
|
|
1331
|
-
/* harmony import */ var
|
|
1332
|
-
/* harmony import */ var
|
|
1333
|
-
function
|
|
1334
|
-
|
|
1382
|
+
/* 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");
|
|
1383
|
+
/* 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__);
|
|
1384
|
+
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); }
|
|
1385
|
+
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; } } }; }
|
|
1335
1386
|
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); }
|
|
1336
|
-
|
|
1337
|
-
function
|
|
1338
|
-
|
|
1339
|
-
function
|
|
1340
|
-
|
|
1341
|
-
function
|
|
1342
|
-
|
|
1343
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1344
|
-
|
|
1387
|
+
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; }
|
|
1388
|
+
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; }
|
|
1389
|
+
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; }
|
|
1390
|
+
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; }
|
|
1391
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
1392
|
+
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); }
|
|
1345
1393
|
|
|
1346
1394
|
// provide complete dynamic data for all pin rows. It overrides static pindata.json
|
|
1347
1395
|
var getCompletePinData = function getCompletePinData(appModel) {
|
|
1348
1396
|
// way to programatically override the json data
|
|
1349
1397
|
return {};
|
|
1350
|
-
};
|
|
1398
|
+
};
|
|
1351
1399
|
|
|
1400
|
+
// overrides pin data for a particular row based on model.
|
|
1352
1401
|
function getRowData(appModel, rowData) {
|
|
1353
1402
|
var _appModel$getImportVa, _appModel$getImportVa2, _appModel$getImportVa3, _appModel$getImportVa4;
|
|
1354
|
-
|
|
1355
1403
|
var retRowJSONdata = rowData;
|
|
1356
1404
|
var rowActions = [];
|
|
1357
|
-
var clockOutEnable = (_appModel$getImportVa = appModel.getImportValue("
|
|
1358
|
-
|
|
1405
|
+
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"];
|
|
1359
1406
|
if (clockOutEnable) {
|
|
1360
1407
|
var _appModel$getPCPHelpe;
|
|
1361
|
-
|
|
1362
1408
|
delete clockOutEnable["setting"];
|
|
1363
1409
|
delete clockOutEnable["displayOptionSetting"];
|
|
1364
1410
|
var selectedOption = clockOutEnable["defaultValue"]["value"];
|
|
1365
|
-
|
|
1366
1411
|
if (selectedOption.indexOf("CLKOUT function is enabled") != -1) {
|
|
1367
1412
|
if (rowData.name === "clockout") {
|
|
1368
1413
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
@@ -1372,36 +1417,28 @@ function getRowData(appModel, rowData) {
|
|
|
1372
1417
|
});
|
|
1373
1418
|
}
|
|
1374
1419
|
}
|
|
1375
|
-
|
|
1376
1420
|
var isPic18ClkOut = selectedOption === "CLKOUT function is enabled" || selectedOption === "CLKOUT function is disabled" ? true : false;
|
|
1377
|
-
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();
|
|
1378
|
-
|
|
1421
|
+
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();
|
|
1422
|
+
// Provide the module reference(scriptID) of remote config bits module
|
|
1379
1423
|
var _iterator = _createForOfIteratorHelper(actionArr),
|
|
1380
|
-
|
|
1381
|
-
|
|
1424
|
+
_step;
|
|
1382
1425
|
try {
|
|
1383
1426
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
1384
1427
|
var eachAction = _step.value;
|
|
1385
|
-
var lockedState = eachAction.state[
|
|
1386
|
-
|
|
1428
|
+
var lockedState = eachAction.state[_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["pin_state"].LOCKED];
|
|
1387
1429
|
if (lockedState) {
|
|
1388
|
-
var _appModel$getAssigned
|
|
1389
|
-
|
|
1430
|
+
var _appModel$getAssigned;
|
|
1390
1431
|
lockedState.meta = {
|
|
1391
|
-
to: (_appModel$getAssigned = appModel.getAssignedImport("
|
|
1432
|
+
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
|
|
1392
1433
|
};
|
|
1393
1434
|
}
|
|
1394
|
-
|
|
1395
|
-
var unlockedState = eachAction.state[_microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["pin_state"].UNLOCK];
|
|
1396
|
-
|
|
1435
|
+
var unlockedState = eachAction.state[_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["pin_state"].UNLOCK];
|
|
1397
1436
|
if (unlockedState) {
|
|
1398
|
-
var _appModel$
|
|
1399
|
-
|
|
1437
|
+
var _appModel$getAssigned2;
|
|
1400
1438
|
unlockedState.meta = {
|
|
1401
|
-
to: (_appModel$
|
|
1439
|
+
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
|
|
1402
1440
|
};
|
|
1403
1441
|
}
|
|
1404
|
-
|
|
1405
1442
|
rowActions.push(eachAction);
|
|
1406
1443
|
}
|
|
1407
1444
|
} catch (err) {
|
|
@@ -1410,49 +1447,38 @@ function getRowData(appModel, rowData) {
|
|
|
1410
1447
|
_iterator.f();
|
|
1411
1448
|
}
|
|
1412
1449
|
}
|
|
1413
|
-
|
|
1414
|
-
var extClkSelect = (_appModel$getImportVa2 = appModel.getImportValue("config_request")) === null || _appModel$getImportVa2 === void 0 ? void 0 : _appModel$getImportVa2["FEXTOSC"];
|
|
1415
|
-
|
|
1450
|
+
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"];
|
|
1416
1451
|
if (extClkSelect) {
|
|
1417
1452
|
var _appModel$getComponen;
|
|
1418
|
-
|
|
1419
1453
|
delete extClkSelect["setting"];
|
|
1420
1454
|
delete extClkSelect["displayOptionSetting"];
|
|
1421
1455
|
var _selectedOption = extClkSelect["defaultValue"]["value"];
|
|
1422
|
-
|
|
1423
1456
|
if (_selectedOption.indexOf("(external clock)") != -1 || _selectedOption.indexOf("EC") != -1) {
|
|
1424
1457
|
if (rowData.name === "osc1" || rowData.name === "osc2") {
|
|
1425
1458
|
retRowJSONdata = undefined;
|
|
1426
1459
|
}
|
|
1427
1460
|
}
|
|
1428
|
-
|
|
1429
1461
|
if (_selectedOption.indexOf("(crystal oscillator)") != -1) {
|
|
1430
1462
|
if (rowData.name === "clockin") {
|
|
1431
1463
|
retRowJSONdata = undefined;
|
|
1432
1464
|
}
|
|
1433
1465
|
}
|
|
1434
|
-
|
|
1435
1466
|
if (_selectedOption.indexOf("Oscillator not enabled") != -1 || _selectedOption.indexOf("Reserved") != -1) {
|
|
1436
1467
|
if (rowData.name === "clockin" || rowData.name === "osc1" || rowData.name === "osc2") {
|
|
1437
1468
|
retRowJSONdata = undefined;
|
|
1438
1469
|
}
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
|
|
1470
|
+
}
|
|
1471
|
+
// Restricting pin actions for clockin, osc1 and osc2 pin rows
|
|
1442
1472
|
var mclrKey = (_appModel$getComponen = appModel.getComponent("mclrUnusedKey")) === null || _appModel$getComponen === void 0 ? void 0 : _appModel$getComponen.component;
|
|
1443
|
-
|
|
1444
1473
|
if (mclrKey) {
|
|
1445
1474
|
var _appModel$getPCPHelpe2, _appModel$getPCPHelpe3, _appModel$getPCPHelpe4;
|
|
1446
|
-
|
|
1447
1475
|
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());
|
|
1448
1476
|
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());
|
|
1449
1477
|
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());
|
|
1450
1478
|
}
|
|
1451
1479
|
}
|
|
1452
|
-
|
|
1453
|
-
var
|
|
1454
|
-
var lvpEnable = (_appModel$getImportVa4 = appModel.getImportValue("config_request")) === null || _appModel$getImportVa4 === void 0 ? void 0 : _appModel$getImportVa4["LVP"];
|
|
1455
|
-
|
|
1480
|
+
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"];
|
|
1481
|
+
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"];
|
|
1456
1482
|
if (mclrEnable && lvpEnable) {
|
|
1457
1483
|
delete mclrEnable["setting"];
|
|
1458
1484
|
delete mclrEnable["displayOptionSetting"];
|
|
@@ -1460,7 +1486,6 @@ function getRowData(appModel, rowData) {
|
|
|
1460
1486
|
delete lvpEnable["setting"];
|
|
1461
1487
|
delete lvpEnable["displayOptionSetting"];
|
|
1462
1488
|
var selectedLvpOption = lvpEnable["defaultValue"]["value"];
|
|
1463
|
-
|
|
1464
1489
|
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) {
|
|
1465
1490
|
if (selectedMclrOption.indexOf("MCLR pin is MCLR") != -1 || selectedMclrOption.indexOf("MCLR pin is Master Clear function") != -1 || selectedMclrOption === "MCLR pin (RE3) is MCLR") {
|
|
1466
1491
|
if (rowData.name === "reset" && retRowJSONdata) {
|
|
@@ -1471,48 +1496,39 @@ function getRowData(appModel, rowData) {
|
|
|
1471
1496
|
});
|
|
1472
1497
|
}
|
|
1473
1498
|
}
|
|
1474
|
-
|
|
1475
1499
|
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;
|
|
1476
1500
|
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;
|
|
1477
|
-
var _actionArr = [];
|
|
1501
|
+
var _actionArr = [];
|
|
1478
1502
|
|
|
1503
|
+
// For handling Q10 devices
|
|
1479
1504
|
if (isQ10Mclr) {
|
|
1480
1505
|
var _appModel$getPCPHelpe5;
|
|
1481
|
-
|
|
1482
1506
|
_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();
|
|
1483
1507
|
} else {
|
|
1484
1508
|
var _appModel$getPCPHelpe6;
|
|
1485
|
-
|
|
1486
1509
|
_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();
|
|
1487
|
-
}
|
|
1488
|
-
|
|
1510
|
+
}
|
|
1489
1511
|
|
|
1512
|
+
// Provide the module reference(scriptID) of remote config bits module
|
|
1490
1513
|
var _iterator2 = _createForOfIteratorHelper(_actionArr),
|
|
1491
|
-
|
|
1492
|
-
|
|
1514
|
+
_step2;
|
|
1493
1515
|
try {
|
|
1494
1516
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
1495
1517
|
var _eachAction = _step2.value;
|
|
1496
|
-
var _lockedState = _eachAction.state[
|
|
1497
|
-
|
|
1518
|
+
var _lockedState = _eachAction.state[_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["pin_state"].LOCKED];
|
|
1498
1519
|
if (_lockedState) {
|
|
1499
|
-
var _appModel$
|
|
1500
|
-
|
|
1520
|
+
var _appModel$getAssigned3;
|
|
1501
1521
|
_lockedState.meta = {
|
|
1502
|
-
to: (_appModel$
|
|
1522
|
+
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
|
|
1503
1523
|
};
|
|
1504
1524
|
}
|
|
1505
|
-
|
|
1506
|
-
var _unlockedState = _eachAction.state[_microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["pin_state"].UNLOCK];
|
|
1507
|
-
|
|
1525
|
+
var _unlockedState = _eachAction.state[_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["pin_state"].UNLOCK];
|
|
1508
1526
|
if (_unlockedState) {
|
|
1509
|
-
var _appModel$
|
|
1510
|
-
|
|
1527
|
+
var _appModel$getAssigned4;
|
|
1511
1528
|
_unlockedState.meta = {
|
|
1512
|
-
to: (_appModel$
|
|
1529
|
+
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
|
|
1513
1530
|
};
|
|
1514
1531
|
}
|
|
1515
|
-
|
|
1516
1532
|
rowActions.push(_eachAction);
|
|
1517
1533
|
}
|
|
1518
1534
|
} catch (err) {
|
|
@@ -1522,7 +1538,6 @@ function getRowData(appModel, rowData) {
|
|
|
1522
1538
|
}
|
|
1523
1539
|
} else {
|
|
1524
1540
|
var _appModel$getComponen2;
|
|
1525
|
-
|
|
1526
1541
|
if (selectedMclrOption) {
|
|
1527
1542
|
if (rowData.name === "reset" && retRowJSONdata) {
|
|
1528
1543
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
@@ -1532,33 +1547,25 @@ function getRowData(appModel, rowData) {
|
|
|
1532
1547
|
});
|
|
1533
1548
|
}
|
|
1534
1549
|
}
|
|
1535
|
-
|
|
1536
1550
|
var _mclrKey = (_appModel$getComponen2 = appModel.getComponent("mclrUnusedKey")) === null || _appModel$getComponen2 === void 0 ? void 0 : _appModel$getComponen2.component;
|
|
1537
|
-
|
|
1538
1551
|
if (_mclrKey) {
|
|
1539
1552
|
var _appModel$getPCPHelpe7;
|
|
1540
|
-
|
|
1541
1553
|
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());
|
|
1542
1554
|
}
|
|
1543
1555
|
}
|
|
1544
1556
|
}
|
|
1545
|
-
|
|
1546
1557
|
var noscOsccon1 = appModel.getComponentValue("noscOsccon1");
|
|
1547
|
-
|
|
1548
1558
|
if (noscOsccon1 === "HFINTOSC" || noscOsccon1 === "LFINTOSC" || noscOsccon1 === "SOSC" || noscOsccon1 === "HFINTOSC with 2x PLL") {
|
|
1549
1559
|
if (rowData.name === "clockin") {
|
|
1550
1560
|
retRowJSONdata = undefined;
|
|
1551
1561
|
}
|
|
1552
|
-
|
|
1553
1562
|
if (rowData.name === "osc1") {
|
|
1554
1563
|
retRowJSONdata = undefined;
|
|
1555
1564
|
}
|
|
1556
|
-
|
|
1557
1565
|
if (rowData.name === "osc2") {
|
|
1558
1566
|
retRowJSONdata = undefined;
|
|
1559
1567
|
}
|
|
1560
1568
|
}
|
|
1561
|
-
|
|
1562
1569
|
if (rowData.name === "sosci") {
|
|
1563
1570
|
if (noscOsccon1 === "SOSC" && retRowJSONdata) {
|
|
1564
1571
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
@@ -1570,7 +1577,6 @@ function getRowData(appModel, rowData) {
|
|
|
1570
1577
|
retRowJSONdata = undefined;
|
|
1571
1578
|
}
|
|
1572
1579
|
}
|
|
1573
|
-
|
|
1574
1580
|
if (rowData.name === "sosco") {
|
|
1575
1581
|
if (noscOsccon1 === "SOSC" && retRowJSONdata) {
|
|
1576
1582
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
@@ -1582,7 +1588,6 @@ function getRowData(appModel, rowData) {
|
|
|
1582
1588
|
retRowJSONdata = undefined;
|
|
1583
1589
|
}
|
|
1584
1590
|
}
|
|
1585
|
-
|
|
1586
1591
|
if (retRowJSONdata) retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1587
1592
|
actions: rowActions
|
|
1588
1593
|
});
|
|
@@ -1601,34 +1606,26 @@ function getRowData(appModel, rowData) {
|
|
|
1601
1606
|
"use strict";
|
|
1602
1607
|
__webpack_require__.r(__webpack_exports__);
|
|
1603
1608
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StringConstants", function() { return StringConstants; });
|
|
1609
|
+
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); }
|
|
1610
|
+
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); } }
|
|
1611
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
1604
1612
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1605
|
-
|
|
1606
|
-
function
|
|
1607
|
-
|
|
1608
|
-
var StringConstants = function StringConstants() {
|
|
1613
|
+
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; }
|
|
1614
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
1615
|
+
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); }
|
|
1616
|
+
var StringConstants = /*#__PURE__*/_createClass(function StringConstants() {
|
|
1609
1617
|
_classCallCheck(this, StringConstants);
|
|
1610
|
-
};
|
|
1611
|
-
|
|
1618
|
+
});
|
|
1612
1619
|
_defineProperty(StringConstants, "SOSC", "SOSC");
|
|
1613
|
-
|
|
1614
1620
|
_defineProperty(StringConstants, "LFINTOSC", "LFINTOSC");
|
|
1615
|
-
|
|
1616
1621
|
_defineProperty(StringConstants, "HFINTOSC", "HFINTOSC");
|
|
1617
|
-
|
|
1618
1622
|
_defineProperty(StringConstants, "HFINTOSC_2xPLL", "HFINTOSC with 2x PLL");
|
|
1619
|
-
|
|
1620
1623
|
_defineProperty(StringConstants, "EXTOSC", "EXTOSC");
|
|
1621
|
-
|
|
1622
|
-
_defineProperty(StringConstants, "EXTOSC_4xPLL", "EXTOSC with 4x PLL");
|
|
1623
|
-
|
|
1624
|
+
_defineProperty(StringConstants, "EXTOSC_4xPLL", "EXTOSC with 4x PLL");
|
|
1624
1625
|
_defineProperty(StringConstants, "OSC_NOT_NEEDED", "Oscillator not needed");
|
|
1625
|
-
|
|
1626
1626
|
_defineProperty(StringConstants, "ON", "ON");
|
|
1627
|
-
|
|
1628
1627
|
_defineProperty(StringConstants, "ExtClkFreq_64MHz", 64000000);
|
|
1629
|
-
|
|
1630
1628
|
_defineProperty(StringConstants, "ExtClkFreq_20MHz", 20000000);
|
|
1631
|
-
|
|
1632
1629
|
_defineProperty(StringConstants, "ExtClkFreq_32MHz", 32000000);
|
|
1633
1630
|
|
|
1634
1631
|
/***/ }),
|
|
@@ -1640,7 +1637,7 @@ _defineProperty(StringConstants, "ExtClkFreq_32MHz", 32000000);
|
|
|
1640
1637
|
/*! exports provided: moduleName, deviceType, booleanValues, hasPins, UIGroups, UIOrder, tabs, analytics, templates, help, imports, exports, softwareData, peripherals, default */
|
|
1641
1638
|
/***/ (function(module) {
|
|
1642
1639
|
|
|
1643
|
-
module.exports = JSON.parse("{\"moduleName\":\"Clock Control\",\"deviceType\":\"PIC\",\"booleanValues\":{\"true\":\"enabled\",\"false\":\"disabled\"},\"hasPins\":true,\"UIGroups\":{\"hardware\":\"Clock Settings\",\"advanced\":\"Advanced Settings\"},\"UIOrder\":{\"hardware\":[\"currentSystemClk\",\"noscOsccon1\",\"externalClk\",\"lfIntOscFreq\",\"hffrqOscfrq\",\"ndivOsccon1\",\"*\"]},\"tabs\":{\"main\":\"Easy View\",\"register\":\"Register Initialization\"},\"analytics\":{\"logAlwaysComps\":[\"noscOsccon1\",\"hffrqOscfrq\",\"ndivOsccon1\",\"soscpwrOsccon3\",\"cswholdOsccon3\",\"pllenOscen\",\"actenActcon\",\"actudActcon\",\"tun\"],\"logOnChangeComps\":[],\"compMapping\":{\"noscOsccon1\":\"ClockSourceSelection\",\"hffrqOscfrq\":\"HF_InternalClock\",\"ndivOsccon1\":\"ClockDivider\",\"soscpwrOsccon3\":\"SecondaryOscillatorPowerModeSelect\",\"cswholdOsccon3\":\"ClockSwitchHoldControl\",\"pllenOscen\":\"PLL_Enable\",\"actenActcon\":\"ActiveClockTuning\",\"actudActcon\":\"ActiveClockTuningUpdate\",\"tun\":\"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\":\"Click here to open documentation.\"},\"imports\":{\"scf_pic8_osc_v1\":{\"import\":{\"interfaceId\":{\"name\":\"scf-pic8-osc-v1\",\"version\":\"1.0.0\"},\"isRequired\":true}},\"initializer_system\":{\"nodeModule\":{\"importName\":\"systemInit\",\"node\":\"@microchip/initializer-system\"},\"fullyTyped\":true,\"import\":{\"interfaceId\":{\"name\":\"initializer-system\",\"version\":\"^0.5.3\"}}},\"config_device\":{\"nodeModule\":{\"importName\":\"config_device\",\"node\":\"@microchip/config-device\"},\"fullyTyped\":true,\"import\":{\"interfaceId\":{\"name\":\"config-device\",\"version\":\"^1.1.1\"}}},\"config_request\":{\"nodeModule\":{\"importName\":\"config_request\",\"node\":\"@microchip/config-request\"},\"fullyTyped\":true,\"import\":{\"interfaceId\":{\"name\":\"config-request\",\"version\":\"^2.0.1\"}}},\"pin_standard\":{\"import\":{\"interfaceId\":{\"name\":\"pin-standard\",\"version\":\"^0.1.0\"}}},\"device_meta\":{\"import\":{\"interfaceId\":{\"name\":\"device-meta\",\"version\":\"1.0.0\"}}}},\"exports\":{\"osc_clocks\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"osc-clocks\",\"version\":\"0.2.0\"},\"fullyTyped\":true,\"nodeModule\":{\"importName\":\"osc_clocks\",\"node\":\"@microchip/osc-clocks\"}}]},\"fosc\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"fosc-hz\",\"version\":\"0.3.0\"},\"fullyTyped\":true,\"nodeModule\":{\"importName\":\"fosc_hz\",\"node\":\"@microchip/fosc-hz\"}}]}},\"softwareData\":{\"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\":[\"main\"],\"category\":\"software\"}},\"peripherals\":[{\"interfaceId\":{\"name\":\"scf-pic8-osc-v1\",\"version\":\"1.0.0\"},\"registers\":{\"OSCCON1\":[{\"setting\":\"NDIV\",\"name\":\"ndivOsccon1\",\"description\":\"Clock Divider\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"main\"],\"overrideDefaultValue\":\"4\",\"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\":\"tun\",\"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
|
+
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\"]}]}");
|
|
1644
1641
|
|
|
1645
1642
|
/***/ }),
|
|
1646
1643
|
|