@mchp-mcc/scf-pic8-clc-v1 4.0.11 → 4.0.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.
Files changed (89) hide show
  1. package/Changelog.md +22 -0
  2. package/Readme.md +26 -2
  3. package/lib/generated_module/src/index.js +0 -5
  4. package/output/0af28946b49fa427ea09eb020906b421.otf +0 -0
  5. package/output/0d57c48148df9e948b0d64a23948cf3a.woff +0 -0
  6. package/output/0ffc720f1bf788849cc8ce9e79376cb3.eot +0 -0
  7. package/output/1ac124f8c2620ca86850329afeb7c0bd.otf +0 -0
  8. package/output/1c89d58269b6e0c5f3d9d9876325b4ba.woff2 +0 -0
  9. package/output/2c8903475ef5366ce36603d79ba02d25.woff2 +0 -0
  10. package/output/{493280db0e594f80826a4862ec963cf0.eot → 37f945f5f61e54ea82f1af63640df0fd.eot} +0 -0
  11. package/output/{b2f43c0b26247c560185dc90c8adf4e7.eot → 38f3f5db978f8eac9b0b284783606275.eot} +0 -0
  12. package/output/3dfc3dd20959a5bac99f7d9152530aa9.woff +0 -0
  13. package/output/449aa8c65cdc5c2a868645403b9ea4d3.woff +0 -0
  14. package/output/4b779d4f202faa774fd1b4dfd5f2f9b2.woff +0 -0
  15. package/output/56f40329a7acbd7ee20ca6c2446cc524.woff2 +0 -0
  16. package/output/{d221f7c265fd7414a7c4ba76340e5dee.otf → 5c6dbac17165ec012532dc85fae92a55.otf} +0 -0
  17. package/output/5d0c8b43fc0e89058a2b419bb52be8e5.woff +0 -0
  18. package/output/{1284777b159fe703ce07961f273e4a4e.otf → 60c0da0914114641c061fb9d6ea65102.otf} +0 -0
  19. package/output/61bf3cad3150daa5af2dab9aaa02e3ff.woff +0 -0
  20. package/output/6240b67b77d9bac167d7834f793e83ff.woff2 +0 -0
  21. package/output/6e408e472d90198222ef851e45a6070d.eot +0 -0
  22. package/output/7d6bf0009e0d61e7e6f376fccab8bb09.woff +0 -0
  23. package/output/7ebd6258cbbc40b4f0e108e444bcb9b1.woff +0 -0
  24. package/output/7fc4d8e224d1ff1b9c6256b15cbe43a7.eot +0 -0
  25. package/output/{a5fc98f2bc7451d215bd001a267dc4f2.ttf → 817d794c65a4278879e57b615bf5589c.ttf} +0 -0
  26. package/output/{02a9cd80636be0c2b2cc72ba0485fed8.eot → 8548508070bd6dd04edebdcdee8c49c9.eot} +0 -0
  27. package/output/88942715b44b29d2d8a0a2711b3a7f34.woff2 +0 -0
  28. package/output/8baefd28aada3f9e8e6b54eafa53d25c.woff +0 -0
  29. package/output/{ea0b3fd57b2eda6b30165e8ed272f0db.eot → 909ffa5ac8d2337bad39401aedb25fd9.eot} +0 -0
  30. package/output/91bacab1f083f2795272499faf7e83dc.ttf +0 -0
  31. package/output/94f5fdef85538cbd160aa2b71e67ab27.otf +0 -0
  32. package/output/a0cf4179f3139f862d55dea472a2315c.woff2 +0 -0
  33. package/output/{fd169782d98e19ce991b7ab85aad213f.otf → a757e1275796392ebe981d00ce874660.otf} +0 -0
  34. package/output/abb6ec19f961e68208f6ab25a65f8a70.woff2 +0 -0
  35. package/output/autoCreator.js +4954 -0
  36. package/output/autoCreator.js.map +1 -0
  37. package/output/autoProcessor.js +4956 -0
  38. package/output/autoProcessor.js.map +1 -0
  39. package/output/b49c708cb6f62d20fb57be4c6f736662.woff +0 -0
  40. package/output/c53648d7adafcfaa1d3ad76047e03fca.woff2 +0 -0
  41. package/output/c60dc648c547304d7fc0f556e8389f74.woff2 +0 -0
  42. package/output/c6e2053303524e39530c36f094129407.svg +270 -0
  43. package/output/cbc22e9676acf295231bfecc426fe916.eot +0 -0
  44. package/output/cla_clc_stacked_v5.c.ftl +35 -30
  45. package/output/cla_clc_stacked_v5.h.ftl +37 -85
  46. package/output/creator.js +9852 -1
  47. package/output/creator.js.map +1 -0
  48. package/output/{15ffc761f03c943f10c1cc598e07bc77.otf → d7e3f0d0d06a2e34f3c0eb0f12223240.otf} +0 -0
  49. package/output/dae0d67b5b0a7332e0d555379c67e4de.eot +0 -0
  50. package/output/eef5282a2e59fca7c3b7a96adbb3d649.otf +0 -0
  51. package/output/f2a2e2273d8219ef523f846cedd19993.woff +0 -0
  52. package/output/f38c5a57b52cb6dda8141610603f6a58.eot +0 -0
  53. package/output/f78429ed0f939ede1ddb454a60a2bc0f.woff2 +0 -0
  54. package/output/fbbc016360f4b50975e254398a7b6964.ttf +0 -0
  55. package/output/fd95ed824e55cead82940a854855abbc.eot +0 -0
  56. package/output/index.html +25 -1
  57. package/output/processor.js +9852 -1
  58. package/output/processor.js.map +1 -0
  59. package/output/reducer.js +15826 -1
  60. package/output/reducer.js.map +1 -0
  61. package/output/view.js +282139 -0
  62. package/output/view.js.map +1 -0
  63. package/package.json +103 -26
  64. package/src/CreatorFunctions.ts +1 -1
  65. package/src/DerivedData.test.tsx +285 -0
  66. package/src/{DerivedData.tsx → DerivedData.ts} +40 -2
  67. package/src/GeneratorModel.test.ts +57 -0
  68. package/src/GeneratorModel.ts +3 -2
  69. package/src/PinsLogic.test.ts +514 -0
  70. package/src/PinsLogic.ts +50 -1
  71. package/src/catalog.json +24 -0
  72. package/src/components/Canvas.tsx +2 -2
  73. package/src/moduleConfig.json +21 -0
  74. package/src/pinsdata.json +56 -8
  75. package/src/reducer.test.tsx +27 -1
  76. package/src/reducer.tsx +4 -5
  77. package/output/06a48e176e00633a4c7db8b852e8ae49.woff2 +0 -0
  78. package/output/51cafaef22203ccd3ab80da1c34722f0.woff +0 -0
  79. package/output/5466835172d64d71687ff9e8ae1c9f87.woff2 +0 -0
  80. package/output/66b1a820aed3cef44bfe90cec1436649.woff2 +0 -0
  81. package/output/69b4474b370cf6e8ae1f937b5367f4fb.woff +0 -0
  82. package/output/763e95586c9de7fcca6b4012e4b308cb.woff +0 -0
  83. package/output/8792b6db2e8384ad63dc9ee1f1061679.woff +0 -0
  84. package/output/953eea38ed97f8a9e76c48bbe984a9c5.woff2 +0 -0
  85. package/output/a2f22f00b8a2638574460edb79d61d64.eot +0 -0
  86. package/output/e778c163a306618588b2a34587c3b1b7.woff +0 -0
  87. package/output/f11099243845db6ed279b1a26bba622b.woff2 +0 -0
  88. package/output/main.css +0 -6
  89. package/output/main.js +0 -1
@@ -1,40 +1,27 @@
1
- /**
2
- ${moduleNameUpperCase} Generated Driver File
3
-
4
- @Company
5
- Microchip Technology Inc.
6
-
7
- @File Name
8
- ${moduleNameLowerCase}.c
9
-
10
- @Summary
11
- This is the generated driver implementation file for the ${moduleNameUpperCase} driver.
12
-
13
- @Description
14
- This source file provides implementations for driver APIs for ${moduleNameUpperCase}.
15
- Generation Information :
16
- Driver Version : 1.0.0
17
- The generated drivers are tested against the following:
18
- Compiler : ${compiler}
19
- MPLAB : ${tool}
20
- */
1
+ /**
2
+ * ${moduleNameUpperCase} Generated Driver File.
3
+ *
4
+ * @file ${moduleNameLowerCase}.c
5
+ *
6
+ * @ingroup ${moduleNameLowerCase}
7
+ *
8
+ * @brief This file contains the API implementations for the ${moduleNameUpperCase} driver.
9
+ *
10
+ * @version ${moduleNameUpperCase} Driver Version 1.0.1
11
+ */
12
+ ${disclaimer}
21
13
 
22
- ${disclaimer}
23
-
24
- /**
25
- Section: Included Files
26
- */
27
14
 
28
15
  #include <xc.h>
29
16
  #include "../${header.name}"
30
17
 
31
- /**
32
- Section: ${moduleNameUpperCase} APIs
33
- */
18
+ <#if interruptEnabled>
19
+ static void (*${moduleNameUpperCase}_CLCI_InterruptHandler)(void);
20
+ static void ${moduleNameUpperCase}_DefaultCLCI_ISR(void);
21
+ </#if>
34
22
 
35
23
  void ${api.Initialize.name}(void)
36
24
  {
37
- // Set the ${moduleNameUpperCase} to the options selected in the User Interface
38
25
 
39
26
  <#list initRegisters as reg>
40
27
  // ${reg.comment}
@@ -44,6 +31,8 @@ void ${api.Initialize.name}(void)
44
31
  <#if interruptEnabled>
45
32
  // Clear the CLC interrupt flag
46
33
  ${interruptFlagName} = 0;
34
+ //Configure interrupt handlers
35
+ ${moduleNameUpperCase}_CLCI_SetInterruptHandler(${moduleNameUpperCase}_DefaultCLCI_ISR);
47
36
  // Enabling ${moduleNameUpperCase} interrupt.
48
37
  ${interruptEnableBitName} = 1;
49
38
  </#if>
@@ -59,9 +48,25 @@ void __interrupt(irq(${IRQname}),base(${IVTBaseAddress}),low_priority) ${api.ISR
59
48
  <#else>
60
49
  void ${api.ISR.name}(void)
61
50
  </#if>
62
- {
51
+ {
63
52
  // Clear the CLC interrupt flag
64
53
  ${interruptFlagName} = 0;
54
+
55
+ if (${moduleNameUpperCase}_CLCI_InterruptHandler != NULL)
56
+ {
57
+ ${moduleNameUpperCase}_CLCI_InterruptHandler();
58
+ }
59
+ }
60
+
61
+ void ${moduleNameUpperCase}_CLCI_SetInterruptHandler(void (* InterruptHandler)(void))
62
+ {
63
+ ${moduleNameUpperCase}_CLCI_InterruptHandler = InterruptHandler;
64
+ }
65
+
66
+ static void ${moduleNameUpperCase}_DefaultCLCI_ISR(void)
67
+ {
68
+ //Add your interrupt code here or
69
+ //Use ${moduleNameUpperCase}_CLCI_SetInterruptHandler() function to use custom ISR
65
70
  }
66
71
  </#if>
67
72
 
@@ -1,109 +1,61 @@
1
- /**
2
- ${moduleNameUpperCase} Generated Driver API Header File
3
-
4
- @Company
5
- Microchip Technology Inc.
6
-
7
- @File Name
8
- ${moduleNameLowerCase}.h
9
-
10
- @Summary
11
- This is the generated header file for the ${moduleNameUpperCase} driver.
12
-
13
- @Description
14
- This header file provides APIs for driver for ${moduleNameUpperCase} driver.
15
- Generation Information :
16
- Driver Version : 1.0.0
17
- The generated drivers are tested against the following:
18
- Compiler : ${compiler}
19
- MPLAB : ${tool}
20
- */
21
-
1
+ /**
2
+ * ${moduleNameUpperCase} Generated Driver API Header File.
3
+ *
4
+ * @file ${moduleNameLowerCase}.h
5
+ *
6
+ * @defgroup ${moduleNameLowerCase} ${moduleNameUpperCase}
7
+ *
8
+ * @brief This file contains the API prototypes for the ${moduleNameUpperCase} driver.
9
+ *
10
+ * @version ${moduleNameUpperCase} Driver Version 1.0.1
11
+ */
22
12
  ${disclaimer}
23
13
 
24
14
  #ifndef ${moduleNameUpperCase}_H
25
15
  #define ${moduleNameUpperCase}_H
26
-
27
- /**
28
- Section: Included Files
29
- */
30
16
 
31
17
  #include <xc.h>
32
18
  #include <stdint.h>
33
19
  #include <stdbool.h>
34
20
 
35
21
  /**
36
- Section: ${moduleNameUpperCase} APIs
37
- */
38
-
39
- /**
40
- @Summary
41
- Initializes the ${moduleNameUpperCase}
42
-
43
- @Description
44
- This routine configures the ${moduleNameUpperCase} specific control registers
45
-
46
- @Preconditions
47
- None
48
-
49
- @Returns
50
- None
51
-
52
- @Param
53
- None
54
-
55
- @Comment
56
-
57
- @Example
58
- <code>
59
- ${api.Initialize.name}();
60
- </code>
61
- */
22
+ * @ingroup ${moduleNameLowerCase}
23
+ * @brief Initializes the ${moduleNameUpperCase}. This routine configures the ${moduleNameUpperCase} specific control registers.
24
+ * @param None.
25
+ * @return None.
26
+ *
27
+ */
62
28
  ${simpleApi.Initialize};
63
29
 
64
30
  <#if interruptEnabled>
65
31
  <#if isVectoredInterruptEnabled>
66
32
  <#else>
67
- /**
68
- @Summary
69
- ${moduleNameUpperCase} Interrupt Service Routine
70
-
71
- @Description
72
- This is the ${moduleNameUpperCase} interrupt service routine called by the Interrupt Manager. Place your ${moduleNameUpperCase} interrupt code here.
73
-
74
- @Preconditions
75
- ${api.Initialize.name}() function should have been called before calling this function
76
33
 
77
- @Returns
78
- None
79
-
80
- @Param
81
- None
82
-
83
- */
34
+ /**
35
+ * @ingroup ${moduleNameLowerCase}
36
+ * @brief Implements the Interrupt Service Routine (ISR) for the CLC interrupt events.
37
+ * @pre ${api.Initialize.name}() is already called.
38
+ * @param None.
39
+ * @return None.
40
+ */
84
41
  ${simpleApi.ISR};
85
42
  </#if>
86
- </#if>
87
43
  /**
88
- @Summary
89
- Returns output pin status of the CLC module.
90
-
91
- @Description
92
- This routine returns output pin status of the CLC module.
93
-
94
- @Param
95
- None.
96
-
97
- @Returns
98
- Output pin status
99
-
100
- @Example
101
- <code>
102
- bool outputStatus;
103
- outputStatus = ${api.OutputStatusGet.name}();
104
- </code>
44
+ * @ingroup clc
45
+ * @brief Sets the callback function for the interrupt event.
46
+ * @param *InterruptHandler - Callback function for the interrupt event.
47
+ * @return None.
105
48
  */
49
+ void ${moduleNameUpperCase}_CLCI_SetInterruptHandler(void (* InterruptHandler)(void));
50
+ </#if>
106
51
 
52
+ /**
53
+ * @ingroup ${moduleNameLowerCase}
54
+ * @brief Returns the output pin status of the CLC module.
55
+ * @param None.
56
+ * @retval True - Output is 1.
57
+ * @retval False - Output is 0.
58
+ */
107
59
  ${simpleApi.OutputStatusGet};
108
60
 
109
61
  #endif // ${moduleNameUpperCase}_H