1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Add support for Micron N25Q064 64-mbit SPI flash

This commit is contained in:
Nicholas Sherlock 2015-03-30 15:57:07 +13:00
parent a82c296448
commit 85dc16f96d
2 changed files with 3 additions and 0 deletions

View file

@ -40,6 +40,7 @@
// Format is manufacturer, memory type, then capacity
#define JEDEC_ID_MICRON_M25P16 0x202015
#define JEDEC_ID_MICRON_N25Q064 0x20BA17
#define JEDEC_ID_WINBOND_W25Q64 0xEF4017
#define DISABLE_M25P16 GPIO_SetBits(M25P16_CS_GPIO, M25P16_CS_PIN)
@ -153,6 +154,7 @@ static bool m25p16_readIdentification()
geometry.pagesPerSector = 256;
geometry.pageSize = 256;
break;
case JEDEC_ID_MICRON_N25Q064:
case JEDEC_ID_WINBOND_W25Q64:
geometry.sectors = 128;
geometry.pagesPerSector = 256;