@mchp-mcc/scf-pic8-osc-v1 4.3.5 → 4.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog.md +11 -13
- package/LICENSE.txt +1 -1
- package/Readme.md +11 -13
- package/output/autoCreator.js +440 -450
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +440 -451
- package/output/autoProcessor.js.map +1 -1
- package/output/clock.c.ftl +60 -29
- package/output/clock.h.ftl +10 -2
- package/output/creator.js +1352 -613
- package/output/creator.js.map +1 -1
- package/output/nullPrototype.json +24 -14
- package/output/processor.js +1352 -613
- package/output/processor.js.map +1 -1
- package/package.json +45 -31
package/output/autoCreator.js
CHANGED
|
@@ -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
|
|
102
|
-
|
|
103
|
-
function _objectSpread(
|
|
104
|
-
|
|
105
|
-
function
|
|
106
|
-
|
|
107
|
-
|
|
101
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
102
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
103
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
104
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
105
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
106
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
108
107
|
|
|
109
108
|
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
|
|
178
|
-
|
|
179
|
-
function _objectSpread(
|
|
180
|
-
|
|
181
|
-
function
|
|
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/
|
|
223
|
-
|
|
224
|
-
!*** ./node_modules/@microchip/
|
|
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.
|
|
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=
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
992
|
-
/* harmony import */ var
|
|
993
|
-
/* harmony import */ var
|
|
994
|
-
/* harmony import */ var
|
|
995
|
-
function
|
|
996
|
-
|
|
997
|
-
function
|
|
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
|
|
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
|
-
};
|
|
1057
|
+
};
|
|
1015
1058
|
|
|
1016
|
-
|
|
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
|
-
};
|
|
1068
|
+
});
|
|
1027
1069
|
|
|
1028
|
-
|
|
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,35 +1093,57 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
1057
1093
|
"fosc-hz_payload": function foscHz_payload() {
|
|
1058
1094
|
return _this.getClockCalculator().getCurrentSystemClk().toString();
|
|
1059
1095
|
},
|
|
1060
|
-
|
|
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
|
-
|
|
1064
|
-
|
|
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:
|
|
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 === "
|
|
1112
|
+
if (importKey === "sys_init_basic_interface") return "system.c Initialize()";
|
|
1078
1113
|
if (importKey === "config_device") return "Configuration Device";
|
|
1079
|
-
if (importKey === "
|
|
1080
|
-
if (importKey === "
|
|
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
1148
|
actualOscValue = "EXTOSC with 4x PLL";
|
|
1091
1149
|
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("Secondary Oscillator")) !== -1) {
|
|
@@ -1101,17 +1159,12 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
1101
1159
|
} else {
|
|
1102
1160
|
actualOscValue = undefined;
|
|
1103
1161
|
}
|
|
1104
|
-
|
|
1105
1162
|
return actualOscValue;
|
|
1106
1163
|
});
|
|
1107
|
-
|
|
1108
1164
|
_defineProperty(this, "getPLLStatus", function () {
|
|
1109
1165
|
var pllStatus = _this.getResOscValue();
|
|
1110
|
-
|
|
1111
1166
|
var pllEnable = _this.dataModel.isComponentValue("pllenOscen");
|
|
1112
|
-
|
|
1113
1167
|
var clkSrcVal = _this.dataModel.getComponentValue("noscOsccon1");
|
|
1114
|
-
|
|
1115
1168
|
if (pllStatus === "EXTOSC with 4x PLL") {
|
|
1116
1169
|
return true;
|
|
1117
1170
|
} else if (pllEnable === true) {
|
|
@@ -1124,10 +1177,8 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
1124
1177
|
return false;
|
|
1125
1178
|
}
|
|
1126
1179
|
});
|
|
1127
|
-
|
|
1128
1180
|
_defineProperty(this, "getOscClocksProcessedPayload", function () {
|
|
1129
1181
|
var _this$getClockCalcula, _this$getClockCalcula2, _this$getClockCalcula3, _this$getClockCalcula4, _this$getClockCalcula5, _this$getClockCalcula6, _this$getClockCalcula7;
|
|
1130
|
-
|
|
1131
1182
|
var oscObj = {
|
|
1132
1183
|
extosc: (_this$getClockCalcula = _this.getClockCalculator().getExtOsc()) !== null && _this$getClockCalcula !== void 0 ? _this$getClockCalcula : "32768",
|
|
1133
1184
|
fosc: (_this$getClockCalcula2 = _this.getClockCalculator().getCurrentSystemClk().toString()) !== null && _this$getClockCalcula2 !== void 0 ? _this$getClockCalcula2 : "1000000",
|
|
@@ -1138,57 +1189,60 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
1138
1189
|
sosc: (_this$getClockCalcula7 = _this.getClockCalculator().getSosc()) !== null && _this$getClockCalcula7 !== void 0 ? _this$getClockCalcula7 : "32768"
|
|
1139
1190
|
};
|
|
1140
1191
|
var hasSosc = _this.dataModel.isComponentValue("soscenOscen") !== undefined ? true : false;
|
|
1141
|
-
|
|
1142
1192
|
if (hasSosc) {
|
|
1143
1193
|
oscObj.hasSosc = true;
|
|
1144
1194
|
oscObj.soscEnabled = _this.dataModel.isComponentValue("soscenOscen");
|
|
1145
1195
|
oscObj.soscPowerMode = _this.dataModel.getComponentValue("soscpwrOsccon3");
|
|
1146
1196
|
}
|
|
1147
|
-
|
|
1148
1197
|
return oscObj;
|
|
1149
1198
|
});
|
|
1150
|
-
|
|
1199
|
+
_defineProperty(this, "getClockProcessedPayload", function () {
|
|
1200
|
+
var _this$getClockCalcula8, _this$getClockCalcula9, _this$getClockCalcula10, _this$getClockCalcula11, _this$getClockCalcula12, _this$getClockCalcula13, _this$getClockCalcula14;
|
|
1201
|
+
var clockObj = {
|
|
1202
|
+
fosc: (_this$getClockCalcula8 = _this.getClockCalculator().getCurrentSystemClk().toString()) !== null && _this$getClockCalcula8 !== void 0 ? _this$getClockCalcula8 : "1000000",
|
|
1203
|
+
extosc: (_this$getClockCalcula9 = _this.getClockCalculator().getExtOsc()) !== null && _this$getClockCalcula9 !== void 0 ? _this$getClockCalcula9 : "32768",
|
|
1204
|
+
hfintosc: (_this$getClockCalcula10 = _this.getClockCalculator().getHfIntOsc()) !== null && _this$getClockCalcula10 !== void 0 ? _this$getClockCalcula10 : "1000000",
|
|
1205
|
+
lfintosc: (_this$getClockCalcula11 = _this.getClockCalculator().getLfIntOsc()) !== null && _this$getClockCalcula11 !== void 0 ? _this$getClockCalcula11 : "31000",
|
|
1206
|
+
mfintosc: (_this$getClockCalcula12 = _this.getClockCalculator().getMfIntOsc()) !== null && _this$getClockCalcula12 !== void 0 ? _this$getClockCalcula12 : "500000",
|
|
1207
|
+
mfintosc_31Khz: (_this$getClockCalcula13 = _this.getClockCalculator().getMfIntOsc_31KHz()) !== null && _this$getClockCalcula13 !== void 0 ? _this$getClockCalcula13 : "31250",
|
|
1208
|
+
sosc: (_this$getClockCalcula14 = _this.getClockCalculator().getSosc()) !== null && _this$getClockCalcula14 !== void 0 ? _this$getClockCalcula14 : "32768"
|
|
1209
|
+
};
|
|
1210
|
+
var hasSosc = _this.dataModel.getComponent("soscenOscen") !== undefined ? true : false;
|
|
1211
|
+
if (hasSosc) {
|
|
1212
|
+
clockObj.hasSosc = true;
|
|
1213
|
+
clockObj.soscEnabled = _this.dataModel.isComponentValue("soscenOscen");
|
|
1214
|
+
clockObj.soscPowerMode = _this.dataModel.getComponentValue("soscpwrOsccon3");
|
|
1215
|
+
}
|
|
1216
|
+
return clockObj;
|
|
1217
|
+
});
|
|
1151
1218
|
_defineProperty(this, "getModuleName", function () {
|
|
1152
1219
|
return "Clock Control";
|
|
1153
1220
|
});
|
|
1154
|
-
|
|
1155
1221
|
_defineProperty(this, "getModel", function () {
|
|
1156
1222
|
return _this.dataModel;
|
|
1157
1223
|
});
|
|
1158
|
-
|
|
1159
1224
|
_defineProperty(this, "getTemplateData", function () {
|
|
1160
1225
|
var _this$getPLLStatus;
|
|
1161
|
-
|
|
1162
1226
|
var headers = {
|
|
1163
1227
|
name: "clock.h",
|
|
1164
1228
|
path: "../"
|
|
1165
|
-
};
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
return _objectSpread({
|
|
1229
|
+
};
|
|
1230
|
+
var initRegisters = _this.dataModel.getRegisterValues();
|
|
1231
|
+
//const registerValues = this.dataModel.getRegisterValues();
|
|
1232
|
+
return {
|
|
1170
1233
|
deviceFrequency: _this.getClockCalculator().getCurrentSystemClk().toString(),
|
|
1171
|
-
|
|
1234
|
+
initRegisters: initRegisters,
|
|
1172
1235
|
header: headers,
|
|
1173
1236
|
moduleNameUpperCase: _this.getModuleName().toUpperCase(),
|
|
1174
1237
|
moduleNameLowerCase: _this.getModuleName().toLowerCase(),
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1238
|
+
PackageVersion: "4.3.7",
|
|
1239
|
+
isPllEnabled: (_this$getPLLStatus = _this.getPLLStatus()) !== null && _this$getPLLStatus !== void 0 ? _this$getPLLStatus : false,
|
|
1240
|
+
//...registerValues,
|
|
1178
1241
|
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
initializer: {
|
|
1182
|
-
name: "CLOCK_Initialize",
|
|
1183
|
-
header: {
|
|
1184
|
-
name: "clock.h",
|
|
1185
|
-
path: "system/"
|
|
1186
|
-
},
|
|
1187
|
-
priority: _microchip_initializer_system__WEBPACK_IMPORTED_MODULE_2__["INIT_PRIORITY"].START
|
|
1188
|
-
}
|
|
1242
|
+
initializerOptimize: _this.getModel().getComponentValue("generateInitializerCode") !== "Initialize all registers" ? true : false,
|
|
1243
|
+
generateCommentedCode: _this.getModel().getComponentValue("generateInitializerCode") === "Generate with commented unmodified registers" ? true : false
|
|
1189
1244
|
};
|
|
1190
1245
|
});
|
|
1191
|
-
|
|
1192
1246
|
_defineProperty(this, "config_device_results", function () {
|
|
1193
1247
|
return {
|
|
1194
1248
|
headers: [{
|
|
@@ -1197,129 +1251,119 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
1197
1251
|
}]
|
|
1198
1252
|
};
|
|
1199
1253
|
});
|
|
1200
|
-
|
|
1201
1254
|
_defineProperty(this, "isEnabled", function (componentName) {
|
|
1202
1255
|
var _this$dataModel$getCo;
|
|
1203
|
-
|
|
1204
1256
|
switch (componentName) {
|
|
1205
1257
|
case "hffrqOscfrq":
|
|
1206
1258
|
return ((_this$dataModel$getCo = _this.dataModel.getComponentValue("noscOsccon1")) === null || _this$dataModel$getCo === void 0 ? void 0 : _this$dataModel$getCo.indexOf("HF")) != -1;
|
|
1207
|
-
|
|
1208
1259
|
case "currentSystemClk":
|
|
1209
1260
|
return false;
|
|
1210
|
-
|
|
1211
1261
|
case "lfIntOscFreq":
|
|
1212
1262
|
return false;
|
|
1213
|
-
|
|
1214
1263
|
default:
|
|
1215
1264
|
return true;
|
|
1216
1265
|
}
|
|
1217
1266
|
});
|
|
1218
|
-
|
|
1219
1267
|
_defineProperty(this, "isVisible", function (componentName) {
|
|
1220
1268
|
var componentValue = _this.dataModel.getComponentValue("noscOsccon1");
|
|
1221
|
-
|
|
1222
1269
|
switch (componentName) {
|
|
1223
1270
|
case "externalClk":
|
|
1224
|
-
if (componentValue ===
|
|
1271
|
+
if (componentValue === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC || componentValue === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC_4xPLL) {
|
|
1225
1272
|
return true;
|
|
1226
1273
|
} else {
|
|
1227
1274
|
return false;
|
|
1228
1275
|
}
|
|
1229
|
-
|
|
1230
1276
|
case "lfIntOscFreq":
|
|
1231
|
-
if (componentValue !=
|
|
1277
|
+
if (componentValue != _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].LFINTOSC) {
|
|
1232
1278
|
return false;
|
|
1233
1279
|
} else {
|
|
1234
1280
|
return true;
|
|
1235
1281
|
}
|
|
1236
|
-
|
|
1237
1282
|
case "hffrqOscfrq":
|
|
1238
|
-
if (componentValue !=
|
|
1283
|
+
if (componentValue != _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].HFINTOSC && componentValue != _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].HFINTOSC_2xPLL) {
|
|
1239
1284
|
return false;
|
|
1240
1285
|
} else {
|
|
1241
1286
|
return true;
|
|
1242
1287
|
}
|
|
1243
|
-
|
|
1244
1288
|
default:
|
|
1245
1289
|
return true;
|
|
1246
1290
|
}
|
|
1247
1291
|
});
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
var _this$dataModel$
|
|
1251
|
-
|
|
1252
|
-
var
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
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
|
+
});
|
|
1257
1306
|
}
|
|
1258
|
-
|
|
1259
|
-
|
|
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;
|
|
1260
1317
|
});
|
|
1261
|
-
|
|
1262
1318
|
_defineProperty(this, "getMyAlerts", function () {
|
|
1263
1319
|
var _this$getDynamicCompo, _this$getModel$getCom5, _this$getModel$getCom6, _this$dataModel$getCo2, _this$dataModel$getCo3;
|
|
1264
|
-
|
|
1265
1320
|
var alerts = [];
|
|
1266
1321
|
var selectedOptionVal = (_this$getDynamicCompo = _this.getDynamicComponetDefaultValue("FEXTOSC")) !== null && _this$getDynamicCompo !== void 0 ? _this$getDynamicCompo : "";
|
|
1267
|
-
|
|
1268
1322
|
var noscOsccon1 = _this.dataModel.getComponentValue("noscOsccon1");
|
|
1269
|
-
|
|
1270
|
-
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) {
|
|
1271
1324
|
alerts.push({
|
|
1272
1325
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Hint,
|
|
1273
1326
|
text: 'Please configure required "External Oscillator Selection" in System Module config bits'
|
|
1274
1327
|
});
|
|
1275
1328
|
}
|
|
1276
|
-
|
|
1277
|
-
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)) {
|
|
1278
1330
|
alerts.push({
|
|
1279
1331
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1280
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."
|
|
1281
1333
|
});
|
|
1282
1334
|
}
|
|
1283
|
-
|
|
1284
|
-
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) {
|
|
1285
1336
|
var _this$getModel$getCom7;
|
|
1286
|
-
|
|
1287
|
-
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) {
|
|
1288
1338
|
alerts.push({
|
|
1289
1339
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1290
|
-
text: "External clock frequency is greater than recommended value (" +
|
|
1340
|
+
text: "External clock frequency is greater than recommended value (" + _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_64MHz + " Hz)"
|
|
1291
1341
|
});
|
|
1292
1342
|
}
|
|
1293
|
-
|
|
1294
|
-
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) {
|
|
1295
1344
|
alerts.push({
|
|
1296
1345
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1297
|
-
text: "External clock frequency is greater than recommended value (" +
|
|
1346
|
+
text: "External clock frequency is greater than recommended value (" + _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_20MHz + " Hz)"
|
|
1298
1347
|
});
|
|
1299
1348
|
}
|
|
1300
|
-
|
|
1301
|
-
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) {
|
|
1302
1350
|
alerts.push({
|
|
1303
1351
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1304
|
-
text: "External clock frequency is greater than recommended value (" +
|
|
1352
|
+
text: "External clock frequency is greater than recommended value (" + _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_32MHz + " Hz)"
|
|
1305
1353
|
});
|
|
1306
1354
|
}
|
|
1307
1355
|
}
|
|
1308
|
-
|
|
1309
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");
|
|
1310
|
-
|
|
1311
|
-
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)) {
|
|
1312
1358
|
alerts.push({
|
|
1313
1359
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1314
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."
|
|
1315
1361
|
});
|
|
1316
1362
|
}
|
|
1317
|
-
|
|
1318
1363
|
return alerts;
|
|
1319
1364
|
});
|
|
1320
|
-
|
|
1321
1365
|
this.dataModel = dataModel;
|
|
1322
|
-
};
|
|
1366
|
+
});
|
|
1323
1367
|
|
|
1324
1368
|
/***/ }),
|
|
1325
1369
|
|
|
@@ -1334,41 +1378,35 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
1334
1378
|
__webpack_require__.r(__webpack_exports__);
|
|
1335
1379
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCompletePinData", function() { return getCompletePinData; });
|
|
1336
1380
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRowData", function() { return getRowData; });
|
|
1337
|
-
/* harmony import */ var
|
|
1338
|
-
/* harmony import */ var
|
|
1339
|
-
function
|
|
1340
|
-
|
|
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; } } }; }
|
|
1341
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); }
|
|
1342
|
-
|
|
1343
|
-
function
|
|
1344
|
-
|
|
1345
|
-
function
|
|
1346
|
-
|
|
1347
|
-
function
|
|
1348
|
-
|
|
1349
|
-
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; }
|
|
1350
|
-
|
|
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); }
|
|
1351
1392
|
|
|
1352
1393
|
// provide complete dynamic data for all pin rows. It overrides static pindata.json
|
|
1353
1394
|
var getCompletePinData = function getCompletePinData(appModel) {
|
|
1354
1395
|
// way to programatically override the json data
|
|
1355
1396
|
return {};
|
|
1356
|
-
};
|
|
1397
|
+
};
|
|
1357
1398
|
|
|
1399
|
+
// overrides pin data for a particular row based on model.
|
|
1358
1400
|
function getRowData(appModel, rowData) {
|
|
1359
1401
|
var _appModel$getImportVa, _appModel$getImportVa2, _appModel$getImportVa3, _appModel$getImportVa4;
|
|
1360
|
-
|
|
1361
1402
|
var retRowJSONdata = rowData;
|
|
1362
1403
|
var rowActions = [];
|
|
1363
|
-
var clockOutEnable = (_appModel$getImportVa = appModel.getImportValue("
|
|
1364
|
-
|
|
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"];
|
|
1365
1405
|
if (clockOutEnable) {
|
|
1366
1406
|
var _appModel$getPCPHelpe;
|
|
1367
|
-
|
|
1368
1407
|
delete clockOutEnable["setting"];
|
|
1369
1408
|
delete clockOutEnable["displayOptionSetting"];
|
|
1370
1409
|
var selectedOption = clockOutEnable["defaultValue"]["value"];
|
|
1371
|
-
|
|
1372
1410
|
if (selectedOption.indexOf("CLKOUT function is enabled") != -1) {
|
|
1373
1411
|
if (rowData.name === "clockout") {
|
|
1374
1412
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
@@ -1378,36 +1416,28 @@ function getRowData(appModel, rowData) {
|
|
|
1378
1416
|
});
|
|
1379
1417
|
}
|
|
1380
1418
|
}
|
|
1381
|
-
|
|
1382
1419
|
var isPic18ClkOut = selectedOption === "CLKOUT function is enabled" || selectedOption === "CLKOUT function is disabled" ? true : false;
|
|
1383
|
-
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();
|
|
1384
|
-
|
|
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
|
|
1385
1422
|
var _iterator = _createForOfIteratorHelper(actionArr),
|
|
1386
|
-
|
|
1387
|
-
|
|
1423
|
+
_step;
|
|
1388
1424
|
try {
|
|
1389
1425
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
1390
1426
|
var eachAction = _step.value;
|
|
1391
|
-
var lockedState = eachAction.state[
|
|
1392
|
-
|
|
1427
|
+
var lockedState = eachAction.state[_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["pin_state"].LOCKED];
|
|
1393
1428
|
if (lockedState) {
|
|
1394
|
-
var _appModel$getAssigned
|
|
1395
|
-
|
|
1429
|
+
var _appModel$getAssigned;
|
|
1396
1430
|
lockedState.meta = {
|
|
1397
|
-
to: (_appModel$getAssigned = appModel.getAssignedImport("
|
|
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
|
|
1398
1432
|
};
|
|
1399
1433
|
}
|
|
1400
|
-
|
|
1401
|
-
var unlockedState = eachAction.state[_microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["pin_state"].UNLOCK];
|
|
1402
|
-
|
|
1434
|
+
var unlockedState = eachAction.state[_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["pin_state"].UNLOCK];
|
|
1403
1435
|
if (unlockedState) {
|
|
1404
|
-
var _appModel$
|
|
1405
|
-
|
|
1436
|
+
var _appModel$getAssigned2;
|
|
1406
1437
|
unlockedState.meta = {
|
|
1407
|
-
to: (_appModel$
|
|
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
|
|
1408
1439
|
};
|
|
1409
1440
|
}
|
|
1410
|
-
|
|
1411
1441
|
rowActions.push(eachAction);
|
|
1412
1442
|
}
|
|
1413
1443
|
} catch (err) {
|
|
@@ -1416,49 +1446,38 @@ function getRowData(appModel, rowData) {
|
|
|
1416
1446
|
_iterator.f();
|
|
1417
1447
|
}
|
|
1418
1448
|
}
|
|
1419
|
-
|
|
1420
|
-
var extClkSelect = (_appModel$getImportVa2 = appModel.getImportValue("config_request")) === null || _appModel$getImportVa2 === void 0 ? void 0 : _appModel$getImportVa2["FEXTOSC"];
|
|
1421
|
-
|
|
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"];
|
|
1422
1450
|
if (extClkSelect) {
|
|
1423
1451
|
var _appModel$getComponen;
|
|
1424
|
-
|
|
1425
1452
|
delete extClkSelect["setting"];
|
|
1426
1453
|
delete extClkSelect["displayOptionSetting"];
|
|
1427
1454
|
var _selectedOption = extClkSelect["defaultValue"]["value"];
|
|
1428
|
-
|
|
1429
1455
|
if (_selectedOption.indexOf("(external clock)") != -1 || _selectedOption.indexOf("EC") != -1) {
|
|
1430
1456
|
if (rowData.name === "osc1" || rowData.name === "osc2") {
|
|
1431
1457
|
retRowJSONdata = undefined;
|
|
1432
1458
|
}
|
|
1433
1459
|
}
|
|
1434
|
-
|
|
1435
1460
|
if (_selectedOption.indexOf("(crystal oscillator)") != -1) {
|
|
1436
1461
|
if (rowData.name === "clockin") {
|
|
1437
1462
|
retRowJSONdata = undefined;
|
|
1438
1463
|
}
|
|
1439
1464
|
}
|
|
1440
|
-
|
|
1441
1465
|
if (_selectedOption.indexOf("Oscillator not enabled") != -1 || _selectedOption.indexOf("Reserved") != -1) {
|
|
1442
1466
|
if (rowData.name === "clockin" || rowData.name === "osc1" || rowData.name === "osc2") {
|
|
1443
1467
|
retRowJSONdata = undefined;
|
|
1444
1468
|
}
|
|
1445
|
-
}
|
|
1446
|
-
|
|
1447
|
-
|
|
1469
|
+
}
|
|
1470
|
+
// Restricting pin actions for clockin, osc1 and osc2 pin rows
|
|
1448
1471
|
var mclrKey = (_appModel$getComponen = appModel.getComponent("mclrUnusedKey")) === null || _appModel$getComponen === void 0 ? void 0 : _appModel$getComponen.component;
|
|
1449
|
-
|
|
1450
1472
|
if (mclrKey) {
|
|
1451
1473
|
var _appModel$getPCPHelpe2, _appModel$getPCPHelpe3, _appModel$getPCPHelpe4;
|
|
1452
|
-
|
|
1453
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());
|
|
1454
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());
|
|
1455
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());
|
|
1456
1477
|
}
|
|
1457
1478
|
}
|
|
1458
|
-
|
|
1459
|
-
var
|
|
1460
|
-
var lvpEnable = (_appModel$getImportVa4 = appModel.getImportValue("config_request")) === null || _appModel$getImportVa4 === void 0 ? void 0 : _appModel$getImportVa4["LVP"];
|
|
1461
|
-
|
|
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"];
|
|
1462
1481
|
if (mclrEnable && lvpEnable) {
|
|
1463
1482
|
delete mclrEnable["setting"];
|
|
1464
1483
|
delete mclrEnable["displayOptionSetting"];
|
|
@@ -1466,7 +1485,6 @@ function getRowData(appModel, rowData) {
|
|
|
1466
1485
|
delete lvpEnable["setting"];
|
|
1467
1486
|
delete lvpEnable["displayOptionSetting"];
|
|
1468
1487
|
var selectedLvpOption = lvpEnable["defaultValue"]["value"];
|
|
1469
|
-
|
|
1470
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) {
|
|
1471
1489
|
if (selectedMclrOption.indexOf("MCLR pin is MCLR") != -1 || selectedMclrOption.indexOf("MCLR pin is Master Clear function") != -1 || selectedMclrOption === "MCLR pin (RE3) is MCLR") {
|
|
1472
1490
|
if (rowData.name === "reset" && retRowJSONdata) {
|
|
@@ -1477,48 +1495,39 @@ function getRowData(appModel, rowData) {
|
|
|
1477
1495
|
});
|
|
1478
1496
|
}
|
|
1479
1497
|
}
|
|
1480
|
-
|
|
1481
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;
|
|
1482
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;
|
|
1483
|
-
var _actionArr = [];
|
|
1500
|
+
var _actionArr = [];
|
|
1484
1501
|
|
|
1502
|
+
// For handling Q10 devices
|
|
1485
1503
|
if (isQ10Mclr) {
|
|
1486
1504
|
var _appModel$getPCPHelpe5;
|
|
1487
|
-
|
|
1488
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();
|
|
1489
1506
|
} else {
|
|
1490
1507
|
var _appModel$getPCPHelpe6;
|
|
1491
|
-
|
|
1492
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();
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1509
|
+
}
|
|
1495
1510
|
|
|
1511
|
+
// Provide the module reference(scriptID) of remote config bits module
|
|
1496
1512
|
var _iterator2 = _createForOfIteratorHelper(_actionArr),
|
|
1497
|
-
|
|
1498
|
-
|
|
1513
|
+
_step2;
|
|
1499
1514
|
try {
|
|
1500
1515
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
1501
1516
|
var _eachAction = _step2.value;
|
|
1502
|
-
var _lockedState = _eachAction.state[
|
|
1503
|
-
|
|
1517
|
+
var _lockedState = _eachAction.state[_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["pin_state"].LOCKED];
|
|
1504
1518
|
if (_lockedState) {
|
|
1505
|
-
var _appModel$
|
|
1506
|
-
|
|
1519
|
+
var _appModel$getAssigned3;
|
|
1507
1520
|
_lockedState.meta = {
|
|
1508
|
-
to: (_appModel$
|
|
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
|
|
1509
1522
|
};
|
|
1510
1523
|
}
|
|
1511
|
-
|
|
1512
|
-
var _unlockedState = _eachAction.state[_microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["pin_state"].UNLOCK];
|
|
1513
|
-
|
|
1524
|
+
var _unlockedState = _eachAction.state[_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["pin_state"].UNLOCK];
|
|
1514
1525
|
if (_unlockedState) {
|
|
1515
|
-
var _appModel$
|
|
1516
|
-
|
|
1526
|
+
var _appModel$getAssigned4;
|
|
1517
1527
|
_unlockedState.meta = {
|
|
1518
|
-
to: (_appModel$
|
|
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
|
|
1519
1529
|
};
|
|
1520
1530
|
}
|
|
1521
|
-
|
|
1522
1531
|
rowActions.push(_eachAction);
|
|
1523
1532
|
}
|
|
1524
1533
|
} catch (err) {
|
|
@@ -1528,7 +1537,6 @@ function getRowData(appModel, rowData) {
|
|
|
1528
1537
|
}
|
|
1529
1538
|
} else {
|
|
1530
1539
|
var _appModel$getComponen2;
|
|
1531
|
-
|
|
1532
1540
|
if (selectedMclrOption) {
|
|
1533
1541
|
if (rowData.name === "reset" && retRowJSONdata) {
|
|
1534
1542
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
@@ -1538,33 +1546,25 @@ function getRowData(appModel, rowData) {
|
|
|
1538
1546
|
});
|
|
1539
1547
|
}
|
|
1540
1548
|
}
|
|
1541
|
-
|
|
1542
1549
|
var _mclrKey = (_appModel$getComponen2 = appModel.getComponent("mclrUnusedKey")) === null || _appModel$getComponen2 === void 0 ? void 0 : _appModel$getComponen2.component;
|
|
1543
|
-
|
|
1544
1550
|
if (_mclrKey) {
|
|
1545
1551
|
var _appModel$getPCPHelpe7;
|
|
1546
|
-
|
|
1547
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());
|
|
1548
1553
|
}
|
|
1549
1554
|
}
|
|
1550
1555
|
}
|
|
1551
|
-
|
|
1552
1556
|
var noscOsccon1 = appModel.getComponentValue("noscOsccon1");
|
|
1553
|
-
|
|
1554
1557
|
if (noscOsccon1 === "HFINTOSC" || noscOsccon1 === "LFINTOSC" || noscOsccon1 === "SOSC" || noscOsccon1 === "HFINTOSC with 2x PLL") {
|
|
1555
1558
|
if (rowData.name === "clockin") {
|
|
1556
1559
|
retRowJSONdata = undefined;
|
|
1557
1560
|
}
|
|
1558
|
-
|
|
1559
1561
|
if (rowData.name === "osc1") {
|
|
1560
1562
|
retRowJSONdata = undefined;
|
|
1561
1563
|
}
|
|
1562
|
-
|
|
1563
1564
|
if (rowData.name === "osc2") {
|
|
1564
1565
|
retRowJSONdata = undefined;
|
|
1565
1566
|
}
|
|
1566
1567
|
}
|
|
1567
|
-
|
|
1568
1568
|
if (rowData.name === "sosci") {
|
|
1569
1569
|
if (noscOsccon1 === "SOSC" && retRowJSONdata) {
|
|
1570
1570
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
@@ -1576,7 +1576,6 @@ function getRowData(appModel, rowData) {
|
|
|
1576
1576
|
retRowJSONdata = undefined;
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
1579
|
-
|
|
1580
1579
|
if (rowData.name === "sosco") {
|
|
1581
1580
|
if (noscOsccon1 === "SOSC" && retRowJSONdata) {
|
|
1582
1581
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
@@ -1588,7 +1587,6 @@ function getRowData(appModel, rowData) {
|
|
|
1588
1587
|
retRowJSONdata = undefined;
|
|
1589
1588
|
}
|
|
1590
1589
|
}
|
|
1591
|
-
|
|
1592
1590
|
if (retRowJSONdata) retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1593
1591
|
actions: rowActions
|
|
1594
1592
|
});
|
|
@@ -1607,34 +1605,26 @@ function getRowData(appModel, rowData) {
|
|
|
1607
1605
|
"use strict";
|
|
1608
1606
|
__webpack_require__.r(__webpack_exports__);
|
|
1609
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; }
|
|
1610
1611
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1611
|
-
|
|
1612
|
-
function
|
|
1613
|
-
|
|
1614
|
-
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() {
|
|
1615
1616
|
_classCallCheck(this, StringConstants);
|
|
1616
|
-
};
|
|
1617
|
-
|
|
1617
|
+
});
|
|
1618
1618
|
_defineProperty(StringConstants, "SOSC", "SOSC");
|
|
1619
|
-
|
|
1620
1619
|
_defineProperty(StringConstants, "LFINTOSC", "LFINTOSC");
|
|
1621
|
-
|
|
1622
1620
|
_defineProperty(StringConstants, "HFINTOSC", "HFINTOSC");
|
|
1623
|
-
|
|
1624
1621
|
_defineProperty(StringConstants, "HFINTOSC_2xPLL", "HFINTOSC with 2x PLL");
|
|
1625
|
-
|
|
1626
1622
|
_defineProperty(StringConstants, "EXTOSC", "EXTOSC");
|
|
1627
|
-
|
|
1628
1623
|
_defineProperty(StringConstants, "EXTOSC_4xPLL", "EXTOSC with 4x PLL");
|
|
1629
|
-
|
|
1630
1624
|
_defineProperty(StringConstants, "OSC_NOT_NEEDED", "Oscillator not needed");
|
|
1631
|
-
|
|
1632
1625
|
_defineProperty(StringConstants, "ON", "ON");
|
|
1633
|
-
|
|
1634
1626
|
_defineProperty(StringConstants, "ExtClkFreq_64MHz", 64000000);
|
|
1635
|
-
|
|
1636
1627
|
_defineProperty(StringConstants, "ExtClkFreq_20MHz", 20000000);
|
|
1637
|
-
|
|
1638
1628
|
_defineProperty(StringConstants, "ExtClkFreq_32MHz", 32000000);
|
|
1639
1629
|
|
|
1640
1630
|
/***/ }),
|
|
@@ -1646,7 +1636,7 @@ _defineProperty(StringConstants, "ExtClkFreq_32MHz", 32000000);
|
|
|
1646
1636
|
/*! exports provided: moduleName, deviceType, booleanValues, hasPins, UIGroups, UIOrder, tabs, analytics, templates, help, imports, exports, softwareData, peripherals, default */
|
|
1647
1637
|
/***/ (function(module) {
|
|
1648
1638
|
|
|
1649
|
-
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\"]}]}");
|
|
1650
1640
|
|
|
1651
1641
|
/***/ }),
|
|
1652
1642
|
|