@mchp-mcc/dspic33a-flash 1.0.5 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mchp-mcc/dspic33a-flash",
3
- "version": "1.0.5",
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.13.0-dev.13",
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",
@@ -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);
@@ -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.4",
34
+ PLIBVersion: "1.0.7",
35
35
  disclaimer: "/*disclaimer*/",
36
36
  generateInterfaceContent: derivedData.enableInterfaceDefinitionGeneration(),
37
37
  moduleNameUpperCase: this.dataModel.getName().toLocaleUpperCase(),
@@ -70,6 +70,9 @@ class GeneratorModel {
70
70
  flashProgramBeginAddress: derivedData.getFlashProgramBeginAddressHexString(),
71
71
  flashUnlockKey: derivedData.getFlashUnlockKey(),
72
72
  doxyDriverGroupName: "Flash Driver",
73
+ suppressMisraWarning: true,
74
+ flashHasDualPartition: derivedData.getFlashHasDualPartition(),
75
+ flashOpcodeInactivePartitionErase: derivedData.getFlashInactivePartitionEraseOpCodeHexString(),
73
76
  };
74
77
  const interrupts = this.dataModel.getHardware()?.getPeripheral().interrupts;
75
78
  if (interrupts != undefined) {