Skip to content

Commit

Permalink
spiFlash: added S25FL128S display register
Browse files Browse the repository at this point in the history
  • Loading branch information
trabucayre committed Sep 23, 2024
1 parent b6963ad commit abb64a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/spiFlash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ void SPIFlash::display_status_reg(uint8_t reg)
printf("IRL : %x\n", ((reg >> 4) & 0x0f));
break;
case 0x0102:
case 0x0120:
_spi->spi_put(FLASH_RDCR, NULL, &reg, 1);
printf("\nConfiguration Register\n");
printf("RDCR : %02x\n", reg);
Expand All @@ -631,6 +632,8 @@ void SPIFlash::display_status_reg(uint8_t reg)
printf("TBPARM : %d\n", ((reg >> 2) & 0x01));
printf("BPNV : %d\n", ((reg >> 3) & 0x01));
printf("TBPROT : %d\n", ((reg >> 5) & 0x01));
if (dev_id == 0x0120)
printf("LC : %d\n", ((reg >> 6) & 0x03));
break;
case 0x0160:
_spi->spi_put(FLASH_RDCR, NULL, &reg, 1);
Expand Down

0 comments on commit abb64a6

Please sign in to comment.