mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Merge pull request #7261 from joelucid/berg_micro
add support for BERGMICRO_W25Q32
This commit is contained in:
commit
b081dfd479
1 changed files with 5 additions and 0 deletions
|
@ -65,6 +65,7 @@
|
|||
#define JEDEC_ID_WINBOND_W25Q64 0xEF4017
|
||||
#define JEDEC_ID_WINBOND_W25Q128 0xEF4018
|
||||
#define JEDEC_ID_CYPRESS_S25FL128L 0x016018
|
||||
#define JEDEC_ID_BERGMICRO_W25Q32 0xE04016
|
||||
|
||||
// The timeout we expect between being able to issue page program instructions
|
||||
#define DEFAULT_TIMEOUT_MILLIS 6
|
||||
|
@ -166,6 +167,10 @@ bool m25p16_detect(flashDevice_t *fdevice, uint32_t chipID)
|
|||
fdevice->geometry.sectors = 32;
|
||||
fdevice->geometry.pagesPerSector = 256;
|
||||
break;
|
||||
case JEDEC_ID_BERGMICRO_W25Q32:
|
||||
fdevice->geometry.sectors = 1024;
|
||||
fdevice->geometry.pagesPerSector = 16;
|
||||
break;
|
||||
case JEDEC_ID_WINBOND_W25Q32:
|
||||
case JEDEC_ID_MACRONIX_MX25L3206E:
|
||||
fdevice->geometry.sectors = 64;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue