@mchp-mcc/scf-pic8-pwm-v2 4.2.11 → 4.2.13

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.
@@ -5,9 +5,9 @@
5
5
  *
6
6
  * @ingroup ${moduleNameLowerCase}
7
7
  *
8
- * @brief This file contains the API implementations for the ${moduleNameUpperCase} module.
8
+ * @brief This file contains the API implementations for the PWM${moduleInstance} module.
9
9
  *
10
- * @version ${moduleNameUpperCase} Driver Version 2.0.3
10
+ * @version ${moduleNameUpperCase} Driver Version 2.0.5
11
11
  */
12
12
 
13
13
  ${disclaimer}
@@ -25,40 +25,37 @@
25
25
 
26
26
  void ${api.Initialize.name}(void)
27
27
  {
28
- // Set the PWM to the options selected in the ${productName}.
29
- <#list initRegisters as reg>
30
- // ${reg.comment}
31
- <#if reg.name == "CCPTMRS1">
32
- ${CCPTMRS1.settings.CTSEL.bitName} = ${CCPTMRS1.settings.CTSEL.valueAsHex};
33
- <#elseif reg.name == "CCPTMRS">
34
- ${CCPTMRS.settings.CTSEL.bitName} = ${CCPTMRS.settings.CTSEL.valueAsHex};
35
- <#elseif reg.name == "PWMTMRS0">
36
- ${PWMTMRS.settings.CTSEL.bitName} = ${PWMTMRS.settings.CTSEL.valueAsHex};
37
- <#else>
38
- ${reg.name} = ${reg.valueAsHex};
39
- </#if>
40
-
41
- </#list>
42
- <#if timerselpresence == "timerselpresent">
43
- <#if selectedDevice?contains("65K40") || selectedDevice?contains("66K40") || selectedDevice?contains("67K40")>
44
- <#if CTSELvalue == "0">
45
- ${CTSELsettingname}0 = 0;
46
- ${CTSELsettingname}1 = 0;
47
- </#if>
48
- <#if CTSELvalue == "1">
49
- ${CTSELsettingname}0 = 0;
50
- ${CTSELsettingname}1 = 1;
28
+ // Set the PWM${moduleInstance} to the options selected in the User Interface
29
+
30
+ <#if PWMCON??>// ${PWMCON.comment}
31
+ ${PWMCON.name} = (uint8_t)${PWMCON.valueAsHex};
51
32
  </#if>
52
- <#if CTSELvalue == "2">
53
- ${CTSELsettingname}0 = 1;
54
- ${CTSELsettingname}1 = 0;
33
+
34
+ <#if PWMDCH??>// ${PWMDCH.comment}
35
+ ${PWMDCH.name} = (uint8_t)${PWMDCH.valueAsHex};
55
36
  </#if>
56
- <#if CTSELvalue == "3">
57
- ${CTSELsettingname}0 = 1;
58
- ${CTSELsettingname}1 = 1;
37
+
38
+ <#if PWMDCL??>// ${PWMDCL.comment}
39
+ ${PWMDCL.name} = (uint8_t)${PWMDCL.valueAsHex};
59
40
  </#if>
41
+
42
+ <#if CCPTMRS1??>
43
+ <#if timerselpresence == "timerselpresent">
44
+ ${CCPTMRS1.settings.CTSEL.bitName} = (uint8_t)0x${CTSELvalue};
60
45
  </#if>
61
- </#if>
46
+ </#if>
47
+
48
+ <#if CCPTMRS??>
49
+ <#if timerselpresence == "timerselpresent">
50
+ ${CCPTMRS.settings.CTSEL.bitName} = (uint8_t)0x${CTSELvalue};
51
+ </#if>
52
+ </#if>
53
+
54
+ <#if PWMTMRS??>
55
+ <#if timerselpresence == "timerselpresent">
56
+ ${PWMTMRS.settings.CTSEL.bitName} = (uint8_t)0x${CTSELvalue};
57
+ </#if>
58
+ </#if>
62
59
  }
63
60
 
64
61
  void ${api.LoadDutyValue.name}(uint16_t dutyValue)
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * @brief This file contains the API prototypes for the ${moduleNameUpperCase} driver.
9
9
  *
10
- * @version ${moduleNameUpperCase} Driver Version 2.0.3
10
+ * @version ${moduleNameUpperCase} Driver Version 2.0.5
11
11
  */
12
12
 
13
13
  ${disclaimer}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mchp-mcc/scf-pic8-pwm-v2",
3
- "version": "4.2.11",
3
+ "version": "4.2.13",
4
4
  "scf": {
5
5
  "reducer": "auto",
6
6
  "creator": "output/creator.js",
@@ -41,10 +41,10 @@
41
41
  "version": "^0"
42
42
  }
43
43
  },
44
- "pin_standard": {
44
+ "pins_interface": {
45
45
  "interfaceId": {
46
- "name": "pin-standard",
47
- "version": "^0"
46
+ "name": "pins-interface",
47
+ "version": "^1.*"
48
48
  }
49
49
  },
50
50
  "device_meta": {
@@ -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/@microchip/ccl-itf/lib/index.js --sp=./tests/itf --rd=./run --sf=pwmV2.major.test.ts --df=\"PIC16F1779\"",
109
- "test:itf:dev": "node ./node_modules/@microchip/ccl-itf/lib/index.js --sp=./tests/itf --rd=./run --sf=pwmV2.major.test.ts --df=\"PIC16F1779\"",
108
+ "test:itf:all": "node ./node_modules/@microchip/ccl-itf/lib/index.js --sp=./tests/itf --rd=./run --sf=pwmV2.major.test.ts --df=\"PIC16F13145\"",
109
+ "test:itf:dev": "node ./node_modules/@microchip/ccl-itf/lib/index.js --sp=./tests/itf --rd=./run --sf=pwmV2.major.test.ts --df=\"PIC16F13145\"",
110
110
  "postprocess": "node config/appendPrototype.js"
111
111
  },
112
112
  "husky": {
@@ -153,12 +153,12 @@
153
153
  "@microchip/basic_pin": "^1.0.2",
154
154
  "@microchip/fosc-hz": "^0.1.2",
155
155
  "@microchip/osc-clocks": "^0.2.0",
156
- "@microchip/pin-standard": "^0.6.1",
157
- "@microchip/scf-common": "^3.21.0",
158
- "@microchip/scf-device": "^8.9.0",
156
+ "@microchip/pins-interface": "^1.0.1",
157
+ "@microchip/scf-common": "^3.22.3",
158
+ "@microchip/scf-device": "^8.11.1",
159
159
  "@microchip/scf-integration-test": "^1.0.0",
160
160
  "@microchip/scf-interface": "^1.4.0",
161
- "@microchip/scf-register-view-helper": "^2.5.0",
161
+ "@microchip/scf-register-view-helper": "^2.7.0",
162
162
  "@microchip/timer-2-4-6-general-parameters": "^0.2.0",
163
163
  "core-js": "^3.6.5",
164
164
  "lodash.filter": "^4.6.0",
@@ -173,13 +173,13 @@
173
173
  "@babel/preset-typescript": "^7.9.0",
174
174
  "@mchp-mcc/pic-8bit": "^5.23.1-dev.4",
175
175
  "@mchp-mcc/pic-8bit-types": "^5.23.1-dev.4",
176
- "@microchip/ccl-itf": "^1.6.0",
176
+ "@microchip/ccl-itf": "^1.8.1",
177
177
  "@microchip/initializer-system": "^0.5.5",
178
- "@microchip/melody-automodule-interface": "^1.11.0",
179
- "@microchip/run-directory": "^4.2.4",
180
- "@microchip/scf-automodule": "^5.11.0",
181
- "@microchip/scf-automodule-impl": "^1.13.0",
182
- "@microchip/scf-autoview": "^3.32.4",
178
+ "@microchip/melody-automodule-interface": "^1.14.1",
179
+ "@microchip/run-directory": "^4.6.0",
180
+ "@microchip/scf-automodule": "^5.13.1",
181
+ "@microchip/scf-automodule-impl": "^1.14.1",
182
+ "@microchip/scf-autoview": "^3.32.5",
183
183
  "@microchip/scf-project-scripts": "^1.0.0",
184
184
  "@types/core-js": "^2.5.1",
185
185
  "@types/enzyme": "^3.9.3",