Skip to content

Commit

Permalink
upd spi mem
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Dec 20, 2023
1 parent 374a2b7 commit 30b09d8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion base_pack/spi_mem_manager/application.fam
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ App(
requires=["gui"],
stack_size=1 * 2048,
fap_description="Application for reading and writing 25-series SPI memory chips",
fap_version="1.2",
fap_version="1.3",
fap_icon="images/Dip8_10px.png",
fap_category="GPIO",
fap_icon_assets="images",
Expand Down
1 change: 1 addition & 0 deletions base_pack/spi_mem_manager/lib/spi/spi_mem_chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const SPIMemChipVendorName spi_mem_chip_vendor_names[] = {
{"Genitop", SPIMemChipVendorGenitop},
{"Paragon", SPIMemChipVendorParagon},
{"XTX", SPIMemChipVendorXTX},
{"XMC", SPIMemChipVendorXMC},
{"Unknown", SPIMemChipVendorUnknown}};

static const char* spi_mem_chip_search_vendor_name(SPIMemChipVendor vendor_enum) {
Expand Down
4 changes: 3 additions & 1 deletion base_pack/spi_mem_manager/lib/spi/spi_mem_chip_arr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1397,4 +1397,6 @@ const SPIMemChip SPIMemChips[] = {
{0xA1, 0x40, 0x16, "FM25Q32", 4194304, 256, SPIMemChipVendorFudan, SPIMemChipWriteModePage},
{0xE0, 0x40, 0x14, "GT25Q80A", 1048576, 256, SPIMemChipVendorGenitop, SPIMemChipWriteModePage},
{0xE0, 0x40, 0x13, "PN25F04A", 524288, 256, SPIMemChipVendorParagon, SPIMemChipWriteModePage},
{0x0B, 0x40, 0x18, "XT25F128B", 16777216, 256, SPIMemChipVendorXTX, SPIMemChipWriteModePage}};
{0x0B, 0x40, 0x18, "XT25F128B", 16777216, 256, SPIMemChipVendorXTX, SPIMemChipWriteModePage},
{0x20, 0x70, 0x17, "XM25QH64C", 8388608, 256, SPIMemChipVendorXMC, SPIMemChipWriteModePage},
{0x20, 0x70, 0x18, "XM25QH128A", 16777216, 256, SPIMemChipVendorXMC, SPIMemChipWriteModePage}};
3 changes: 2 additions & 1 deletion base_pack/spi_mem_manager/lib/spi/spi_mem_chip_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ typedef enum {
SPIMemChipVendorFudan,
SPIMemChipVendorGenitop,
SPIMemChipVendorParagon,
SPIMemChipVendorXTX
SPIMemChipVendorXTX,
SPIMemChipVendorXMC
} SPIMemChipVendor;

typedef enum {
Expand Down

0 comments on commit 30b09d8

Please sign in to comment.