1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-25 20:02:37 +03:00

add BergMicro Flash IDs

This commit is contained in:
Martin Ayotte 2015-11-24 15:11:20 -05:00
parent 866921c54a
commit 5d7a3e939c

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