1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Merge pull request #1079 from martinayotte/master

add BergMicro Flash IDs
This commit is contained in:
Ivan Grokhotkov 2015-11-25 15:58:41 +03:00
commit f1a8287bb3

View File

@ -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;
}