@mchp-mcc/dspic33a-flash 1.0.1
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 +7 -0
- package/LICENSE.txt +21 -0
- package/Readme.md +11 -0
- package/lib/generated_module/src/index.js +11 -0
- package/output/autoCreator.js +4378 -0
- package/output/autoCreator.js.map +1 -0
- package/output/autoProcessor.js +4380 -0
- package/output/autoProcessor.js.map +1 -0
- package/output/creator.js +10498 -0
- package/output/creator.js.map +1 -0
- package/output/flash-a-core-ftl/flash.c.ftl +217 -0
- package/output/flash-a-core-ftl/flash.h.ftl +155 -0
- package/output/flash-a-core-ftl/flash_interface.h.ftl +93 -0
- package/output/flash-a-core-ftl/flash_nonblocking.c.ftl +367 -0
- package/output/flash-a-core-ftl/flash_nonblocking.h.ftl +342 -0
- package/output/flash-a-core-ftl/flash_types.h.ftl +101 -0
- package/output/nullPrototype.json +43 -0
- package/output/processor.js +10498 -0
- package/output/processor.js.map +1 -0
- package/package.json +156 -0
- package/src/CreatorFunctions.ts +17 -0
- package/src/DerivedData.ts +975 -0
- package/src/GeneratorModel.ts +138 -0
- package/src/catalog.json +25 -0
- package/src/moduleConfig.json +677 -0
package/package.json
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mchp-mcc/dspic33a-flash",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"scf": {
|
|
5
|
+
"reducer": "auto",
|
|
6
|
+
"creator": "output/creator.js",
|
|
7
|
+
"processor": "output/processor.js",
|
|
8
|
+
"nullPrototype": "output/nullPrototype.json",
|
|
9
|
+
"views": {
|
|
10
|
+
"main": "auto"
|
|
11
|
+
},
|
|
12
|
+
"displayName": "Flash",
|
|
13
|
+
"category": "Peripherals/Memory/",
|
|
14
|
+
"autoProcessor": "output/autoProcessor.js",
|
|
15
|
+
"autoCreator": "output/autoCreator.js"
|
|
16
|
+
},
|
|
17
|
+
"scf-automodule": {
|
|
18
|
+
"peripheral": {
|
|
19
|
+
"deviceName": "dsPIC33AK128MC106",
|
|
20
|
+
"interfaceId": {
|
|
21
|
+
"name": "nvm_ctrl_32bit_upb_v1",
|
|
22
|
+
"version": "1.0.0"
|
|
23
|
+
},
|
|
24
|
+
"instance": "any"
|
|
25
|
+
},
|
|
26
|
+
"shouldNotifyOnDeploy": false,
|
|
27
|
+
"mode": "standard",
|
|
28
|
+
"hookPaths": {}
|
|
29
|
+
},
|
|
30
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "gulp build --gulpfile config/gulpfile.js --cwd .",
|
|
33
|
+
"build-dev": "gulp build --gulpfile config/gulpfile.js --buildDev --cwd .",
|
|
34
|
+
"build-prod": "gulp build --gulpfile config/gulpfile.js --production --cwd .",
|
|
35
|
+
"start": "gulp start --gulpfile config/gulpfile.js --cwd .",
|
|
36
|
+
"test": "jest",
|
|
37
|
+
"create-auto-module": "gulp create-auto-module --gulpfile config/gulpfile.js --cwd .",
|
|
38
|
+
"build-run-dir": "node config/extract-run-directory.js",
|
|
39
|
+
"build-latest-run-dir": "yarn add @microchip/run-directory && yarn build-run-dir",
|
|
40
|
+
"dist": "gulp dist --gulpfile config/gulpfile.js --cwd .",
|
|
41
|
+
"lint:nofix": "eslint \"./src/**/*.{ts,tsx}\" --quiet",
|
|
42
|
+
"lint": "tsc --noEmit && yarn lint:nofix --fix",
|
|
43
|
+
"updateProject": "node config/create-auto-module.js --updateProject=true",
|
|
44
|
+
"update-auto-module": "yarn add @microchip/scf-automodule -D && yarn updateProject",
|
|
45
|
+
"postprocess": "node config/appendPrototype.js"
|
|
46
|
+
},
|
|
47
|
+
"husky": {
|
|
48
|
+
"hooks": {
|
|
49
|
+
"pre-commit": "tsc --noEmit && lint-staged"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"lint-staged": {
|
|
53
|
+
"./src/**/*.{ts,tsx}": [
|
|
54
|
+
"eslint --fix"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"files": [
|
|
58
|
+
"output/**/*",
|
|
59
|
+
"config.json",
|
|
60
|
+
"src/**/*"
|
|
61
|
+
],
|
|
62
|
+
"jest": {
|
|
63
|
+
"testPathIgnorePatterns": [
|
|
64
|
+
"/node_modules/",
|
|
65
|
+
"/run/",
|
|
66
|
+
"/generated_module/examples/",
|
|
67
|
+
"/lib/"
|
|
68
|
+
],
|
|
69
|
+
"modulePathIgnorePatterns": [
|
|
70
|
+
"<rootDir>/run"
|
|
71
|
+
],
|
|
72
|
+
"preset": "ts-jest",
|
|
73
|
+
"collectCoverage": true
|
|
74
|
+
},
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"@mchp-mcc/pic-16bit": "^5.11.3",
|
|
77
|
+
"@microchip/api-prefix-registration": "^0.1.0",
|
|
78
|
+
"@microchip/config-16bit-interface": "^1.0.0",
|
|
79
|
+
"@microchip/flash-interface": "^1.3.1",
|
|
80
|
+
"@microchip/fosc-hz": "^0.1.2",
|
|
81
|
+
"@microchip/interrupt-16bit-interface": "^1.1.1",
|
|
82
|
+
"@microchip/pin-standard": "^0.6.0",
|
|
83
|
+
"@microchip/pins-interface": "^1.0.1",
|
|
84
|
+
"@microchip/scf-common": "^3.22.3",
|
|
85
|
+
"@microchip/scf-device": "^8.11.1",
|
|
86
|
+
"@microchip/scf-integration-test": "^1.0.0",
|
|
87
|
+
"@microchip/scf-interface": "^1.4.0",
|
|
88
|
+
"@microchip/scf-register-view-helper": "^2.7.0",
|
|
89
|
+
"@microchip/system-16bit-initializer": "^1.0.0"
|
|
90
|
+
},
|
|
91
|
+
"devDependencies": {
|
|
92
|
+
"@babel/core": "^7.9.6",
|
|
93
|
+
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
|
94
|
+
"@babel/preset-env": "^7.9.6",
|
|
95
|
+
"@babel/preset-react": "^7.9.4",
|
|
96
|
+
"@babel/preset-typescript": "^7.9.0",
|
|
97
|
+
"@mchp-mcc/pic-16bit-types": "5.13.0-dev.13",
|
|
98
|
+
"@microchip/initializer-system": "^0.5.3",
|
|
99
|
+
"@microchip/melody-automodule-interface": "^1.14.1",
|
|
100
|
+
"@microchip/pic-8bit-types": "^4.1.5",
|
|
101
|
+
"@microchip/run-directory": "^4.3.2",
|
|
102
|
+
"@microchip/scf-automodule": "^5.13.1",
|
|
103
|
+
"@microchip/scf-automodule-impl": "^1.14.1",
|
|
104
|
+
"@microchip/scf-autoview": "^3.32.5",
|
|
105
|
+
"@microchip/scf-project-scripts": "^1.0.0",
|
|
106
|
+
"@types/core-js": "^2.5.1",
|
|
107
|
+
"@types/enzyme": "^3.9.3",
|
|
108
|
+
"@types/jest": "^24.0.14",
|
|
109
|
+
"@types/lodash.filter": "^4.6.6",
|
|
110
|
+
"@types/lodash.find": "^4.6.6",
|
|
111
|
+
"@types/lodash.map": "^4.6.13",
|
|
112
|
+
"@types/node": "^12.0.10",
|
|
113
|
+
"@types/properties-reader": "^0.0.1",
|
|
114
|
+
"@types/semver": "^7.1.0",
|
|
115
|
+
"@typescript-eslint/eslint-plugin": "^3.2.0",
|
|
116
|
+
"@typescript-eslint/parser": "^3.6.0",
|
|
117
|
+
"babel-eslint": "^10.1.0",
|
|
118
|
+
"babel-loader": "^8.0.6",
|
|
119
|
+
"babel-plugin-named-asset-import": "^0.3.2",
|
|
120
|
+
"babel-preset-react-app": "^9.0.0",
|
|
121
|
+
"del": "^4.1.1",
|
|
122
|
+
"eslint": "^7.4.0",
|
|
123
|
+
"eslint-config-prettier": "^6.11.0",
|
|
124
|
+
"eslint-friendly-formatter": "^4.0.1",
|
|
125
|
+
"eslint-loader": "^4.0.2",
|
|
126
|
+
"eslint-plugin-prettier": "^3.1.3",
|
|
127
|
+
"eslint-plugin-react": "^7.20.0",
|
|
128
|
+
"fork-ts-checker-webpack-plugin": "^1.3.7",
|
|
129
|
+
"fs": "^0.0.1-security",
|
|
130
|
+
"gulp": "^4.0.2",
|
|
131
|
+
"gulp-changed": "^4.0.2",
|
|
132
|
+
"gulp-cli": "^2.2.0",
|
|
133
|
+
"gulp-if": "^3.0.0",
|
|
134
|
+
"gulp-typescript": "^5.0.1",
|
|
135
|
+
"hard-source-webpack-plugin": "^0.13.1",
|
|
136
|
+
"husky": "^4.2.4",
|
|
137
|
+
"is-wsl": "^2.1.0",
|
|
138
|
+
"jest": "^24.8.0",
|
|
139
|
+
"jest-html-reporter": "^2.5.0",
|
|
140
|
+
"jest-pnp-resolver": "^1.2.1",
|
|
141
|
+
"lint-staged": "^10.1.3",
|
|
142
|
+
"pnp-webpack-plugin": "^1.5.0",
|
|
143
|
+
"prettier": "^2.0.5",
|
|
144
|
+
"ts-jest": "^24.0.2",
|
|
145
|
+
"ts-pnp": "^1.1.2",
|
|
146
|
+
"typescript": "~4.5.5",
|
|
147
|
+
"webpack": "^4.34.0",
|
|
148
|
+
"webpack-cli": "^3.3.4",
|
|
149
|
+
"webpack-merge": "^4.2.2",
|
|
150
|
+
"webpack-stream": "^5.2.1",
|
|
151
|
+
"yargs": "^13.2.4"
|
|
152
|
+
},
|
|
153
|
+
"description": "- Download & Install [nodejs](https://nodejs.org/en/download/)\r - Download & Install npm\r - Setup node & npm in enviroment path",
|
|
154
|
+
"main": "lib/generated_module/src/index.js",
|
|
155
|
+
"author": ""
|
|
156
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CreatorFunctions } from "@microchip/melody-automodule-interface";
|
|
2
|
+
import { MyState } from "../generated_module/src/types/AutoModuleTypes";
|
|
3
|
+
|
|
4
|
+
export const getCreatorFunctions = (): CreatorFunctions => {
|
|
5
|
+
return {
|
|
6
|
+
shouldImport: shouldImport,
|
|
7
|
+
getCreatorImportArgs: getCreatorImportArgs,
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const shouldImport = (importKey: string, state: MyState): boolean => {
|
|
12
|
+
return true;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const getCreatorImportArgs = (importKey: string, state: MyState): any | undefined => {
|
|
16
|
+
return undefined;
|
|
17
|
+
};
|