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