@mchp-mcc/dspic33a-flash 1.0.6 → 1.0.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 +6 -0
- package/Readme.md +6 -0
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +1 -1
- package/output/autoProcessor.js.map +1 -1
- package/output/creator.js.map +1 -1
- package/output/flash-a-core-ftl/flash.c.ftl +31 -0
- package/output/flash-a-core-ftl/flash.h.ftl +17 -0
- package/output/flash-a-core-ftl/flash_interface.h.ftl +2 -0
- package/output/flash-a-core-ftl/flash_nonblocking.c.ftl +56 -0
- package/output/flash-a-core-ftl/flash_nonblocking.h.ftl +43 -0
- package/output/flash-a-core-ftl/flash_types.h.ftl +7 -0
- package/output/processor.js +1 -1
- package/output/processor.js.map +1 -1
- package/package.json +2 -2
- package/src/DerivedData.ts +25 -0
- package/src/GeneratorModel.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mchp-mcc/dspic33a-flash",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"scf": {
|
|
5
5
|
"reducer": "auto",
|
|
6
6
|
"creator": "output/creator.js",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"@babel/preset-env": "^7.9.6",
|
|
138
138
|
"@babel/preset-react": "^7.9.4",
|
|
139
139
|
"@babel/preset-typescript": "^7.9.0",
|
|
140
|
-
"@mchp-mcc/pic-16bit-types": "5.
|
|
140
|
+
"@mchp-mcc/pic-16bit-types": "5.16.0-dev.2",
|
|
141
141
|
"@microchip/initializer-system": "^0.5.3",
|
|
142
142
|
"@microchip/melody-automodule-interface": "^1.15.7",
|
|
143
143
|
"@microchip/pic-8bit-types": "^4.1.5",
|
package/src/DerivedData.ts
CHANGED
|
@@ -699,6 +699,26 @@ export class MyDerivedData implements DerivedData {
|
|
|
699
699
|
return flashWriteRowOpCode;
|
|
700
700
|
};
|
|
701
701
|
|
|
702
|
+
public getFlashInactivePartitionEraseOpCode = (): number | undefined => {
|
|
703
|
+
return this.getFlashInactivePartitionEraseOpCodeValue(this.dataModel);
|
|
704
|
+
};
|
|
705
|
+
|
|
706
|
+
public getFlashInactivePartitionEraseOpCodeValue = (
|
|
707
|
+
model: AppModel | undefined,
|
|
708
|
+
): number | undefined => {
|
|
709
|
+
let flashWriteRowOpCode;
|
|
710
|
+
if (
|
|
711
|
+
model?.getHardware()?.getPeripheral()?.properties
|
|
712
|
+
?.FLASH_INACTIVE_BULK_ERASE_OP_CODE?.value != undefined
|
|
713
|
+
) {
|
|
714
|
+
flashWriteRowOpCode = Number(
|
|
715
|
+
model?.getHardware()?.getPeripheral()?.properties
|
|
716
|
+
?.FLASH_INACTIVE_BULK_ERASE_OP_CODE?.value,
|
|
717
|
+
);
|
|
718
|
+
}
|
|
719
|
+
return flashWriteRowOpCode;
|
|
720
|
+
};
|
|
721
|
+
|
|
702
722
|
public getFlashEndAddress = (): number | undefined => {
|
|
703
723
|
return this.getFlashEndAddressValue(this.dataModel);
|
|
704
724
|
};
|
|
@@ -950,6 +970,11 @@ export class MyDerivedData implements DerivedData {
|
|
|
950
970
|
return this.getHexaDecimalString(opcode);
|
|
951
971
|
};
|
|
952
972
|
|
|
973
|
+
public getFlashInactivePartitionEraseOpCodeHexString = (): string => {
|
|
974
|
+
const opcode = this.getFlashInactivePartitionEraseOpCode();
|
|
975
|
+
return this.getHexaDecimalString(opcode);
|
|
976
|
+
};
|
|
977
|
+
|
|
953
978
|
public getFlashEndAddressHexString = (): string => {
|
|
954
979
|
const opcode = this.getFlashEndAddress();
|
|
955
980
|
return this.getHexaDecimalString(opcode);
|
package/src/GeneratorModel.ts
CHANGED
|
@@ -31,7 +31,7 @@ class GeneratorModel {
|
|
|
31
31
|
//The template data is now responsible for getting all the information for the ftl's
|
|
32
32
|
const generatableItems = {
|
|
33
33
|
generatePLIBVersion: true,
|
|
34
|
-
PLIBVersion: "1.0.
|
|
34
|
+
PLIBVersion: "1.0.7",
|
|
35
35
|
disclaimer: "/*disclaimer*/",
|
|
36
36
|
generateInterfaceContent: derivedData.enableInterfaceDefinitionGeneration(),
|
|
37
37
|
moduleNameUpperCase: this.dataModel.getName().toLocaleUpperCase(),
|
|
@@ -71,6 +71,8 @@ class GeneratorModel {
|
|
|
71
71
|
flashUnlockKey: derivedData.getFlashUnlockKey(),
|
|
72
72
|
doxyDriverGroupName: "Flash Driver",
|
|
73
73
|
suppressMisraWarning: true,
|
|
74
|
+
flashHasDualPartition: derivedData.getFlashHasDualPartition(),
|
|
75
|
+
flashOpcodeInactivePartitionErase: derivedData.getFlashInactivePartitionEraseOpCodeHexString(),
|
|
74
76
|
};
|
|
75
77
|
const interrupts = this.dataModel.getHardware()?.getPeripheral().interrupts;
|
|
76
78
|
if (interrupts != undefined) {
|