Skip to content

Commit

Permalink
add BergMicro Flash IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
martinayotte committed Nov 24, 2015
1 parent 866921c commit 5d7a3e9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cores/esp8266/Esp.cpp
Expand Up @@ -283,6 +283,16 @@ uint32_t EspClass::getFlashChipSizeByChipId(void) {
case 0x1340EF: // W25Q40
return (512_kB);

// BergMicro
case 0x1640E0: // BG25Q32
return (4_MB);
case 0x1540E0: // BG25Q16
return (2_MB);
case 0x1440E0: // BG25Q80
return (1_MB);
case 0x1340E0: // BG25Q40
return (512_kB);

default:
return 0;
}
Expand Down

0 comments on commit 5d7a3e9

Please sign in to comment.