@mchp-mcc/scf-pic8-pwm-v2 4.2.4 → 4.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog.md +15 -0
- package/Readme.md +29 -44
- package/output/autoCreator.js +244 -15
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +244 -15
- package/output/autoProcessor.js.map +1 -1
- package/output/creator.js +244 -15
- package/output/creator.js.map +1 -1
- package/output/processor.js +244 -15
- package/output/processor.js.map +1 -1
- package/output/pwm-v2.c.ftl +1 -1
- package/output/pwm-v2.h.ftl +7 -7
- package/package.json +15 -7
- package/src/DerivedData.test.ts +627 -0
- package/src/DerivedData.ts +84 -6
- package/src/GeneratorModel.test.tsx +69 -0
- package/src/PinsLogic.test.ts +155 -0
- package/src/PwmCalculator.test.tsx +56 -0
- package/src/interfaces/pwm_general_parameters.test.tsx +40 -0
- package/src/moduleConfig.json +30 -1
package/output/pwm-v2.c.ftl
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @ingroup ${moduleNameLowerCase}
|
|
7
7
|
*
|
|
8
|
-
* @brief This file contains the
|
|
8
|
+
* @brief This file contains the API implementations for the ${moduleNameUpperCase} module.
|
|
9
9
|
*
|
|
10
10
|
* @version ${moduleNameUpperCase} Driver Version 2.0.2
|
|
11
11
|
*/
|
package/output/pwm-v2.h.ftl
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @defgroup ${moduleNameLowerCase} ${moduleNameUpperCase}
|
|
7
7
|
*
|
|
8
|
-
* @brief This
|
|
8
|
+
* @brief This file contains the API prototypes for the ${moduleNameUpperCase} driver.
|
|
9
9
|
*
|
|
10
10
|
* @version ${moduleNameUpperCase} Driver Version 2.0.2
|
|
11
11
|
*/
|
|
@@ -31,17 +31,17 @@ ${disclaimer}
|
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* @ingroup ${moduleNameLowerCase}
|
|
34
|
-
* @brief
|
|
35
|
-
* @param
|
|
36
|
-
* @return
|
|
34
|
+
* @brief Initializes the ${moduleNameUpperCase} interface.
|
|
35
|
+
* @param None.
|
|
36
|
+
* @return None.
|
|
37
37
|
*/
|
|
38
38
|
${simpleApi.Initialize};
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* @ingroup ${moduleNameLowerCase}
|
|
42
|
-
* @brief
|
|
43
|
-
* @param ${api.LoadDutyValue.arguments[0].type} ${api.LoadDutyValue.arguments[0].name} -
|
|
44
|
-
* @return
|
|
42
|
+
* @brief Loads the 16-bit duty cycle value.
|
|
43
|
+
* @param ${api.LoadDutyValue.arguments[0].type} ${api.LoadDutyValue.arguments[0].name} - ${moduleNameUpperCase} duty cycle value to be loaded.
|
|
44
|
+
* @return None.
|
|
45
45
|
*/
|
|
46
46
|
${simpleApi.LoadDutyValue};
|
|
47
47
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mchp-mcc/scf-pic8-pwm-v2",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.6",
|
|
4
4
|
"scf": {
|
|
5
5
|
"reducer": "auto",
|
|
6
6
|
"creator": "output/creator.js",
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
"profile": "jest profile",
|
|
106
106
|
"build-run-dir-future": "node config/extract-run-directory-future.js",
|
|
107
107
|
"release": "yarn build && yarn test && node -e 'require(\"./config/scf-project-scripts\").releaseProject()'",
|
|
108
|
-
"test:itf:all": "node ./node_modules/@
|
|
109
|
-
"test:itf:dev": "node ./node_modules/@
|
|
108
|
+
"test:itf:all": "node ./node_modules/@microchip/ccl-itf/lib/index.js --sp=./tests/itf --rd=./run --sf=pwmV2.major.test.ts --df=\"PIC16F18076|PIC16F18877|PIC18F47Q10\"",
|
|
109
|
+
"test:itf:dev": "node ./node_modules/@microchip/ccl-itf/lib/index.js --sp=./tests/itf --rd=./run --sf=pwmV2.major.test.ts --df=\"PIC16F18076\"",
|
|
110
110
|
"postprocess": "node config/appendPrototype.js"
|
|
111
111
|
},
|
|
112
112
|
"husky": {
|
|
@@ -136,7 +136,15 @@
|
|
|
136
136
|
"<rootDir>/run"
|
|
137
137
|
],
|
|
138
138
|
"preset": "ts-jest",
|
|
139
|
-
"collectCoverage": true
|
|
139
|
+
"collectCoverage": true,
|
|
140
|
+
"coverageThreshold": {
|
|
141
|
+
"./src": {
|
|
142
|
+
"branches": 80,
|
|
143
|
+
"functions": 80,
|
|
144
|
+
"lines": 80,
|
|
145
|
+
"statements": 80
|
|
146
|
+
}
|
|
147
|
+
}
|
|
140
148
|
},
|
|
141
149
|
"dependencies": {
|
|
142
150
|
"@microchip/api-prefix-registration": "^0.1.0",
|
|
@@ -161,9 +169,9 @@
|
|
|
161
169
|
"@babel/preset-env": "^7.9.6",
|
|
162
170
|
"@babel/preset-react": "^7.9.4",
|
|
163
171
|
"@babel/preset-typescript": "^7.9.0",
|
|
164
|
-
"@mchp-mcc/
|
|
165
|
-
"@mchp-mcc/pic-8bit": "^5.
|
|
166
|
-
"@
|
|
172
|
+
"@mchp-mcc/pic-8bit": "^5.9.0-dev.5",
|
|
173
|
+
"@mchp-mcc/pic-8bit-types": "^5.9.0-dev.5",
|
|
174
|
+
"@microchip/ccl-itf": "^1.5.0",
|
|
167
175
|
"@microchip/initializer-system": "^0.5.3",
|
|
168
176
|
"@microchip/melody-automodule-interface": "^1.5.1",
|
|
169
177
|
"@microchip/pic-8bit-types": "^5.0.1",
|