1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 09:16:07 +03:00

Merge pull request #5151 from Faduf/CypressFlashSupport

Add support to Cypress S25FL128L flash memory
This commit is contained in:
Michael Keller 2018-02-11 12:36:23 +13:00 committed by GitHub
commit 3b010bf7fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,6 +57,7 @@
#define JEDEC_ID_WINBOND_W25Q64 0xEF4017
#define JEDEC_ID_WINBOND_W25Q128 0xEF4018
#define JEDEC_ID_WINBOND_W25Q256 0xEF4019
#define JEDEC_ID_CYPRESS_S25FL128L 0x016018
static busDevice_t busInstance;
static busDevice_t *bus;
@ -195,6 +196,7 @@ static bool m25p16_readIdentification(void)
break;
case JEDEC_ID_MICRON_N25Q128:
case JEDEC_ID_WINBOND_W25Q128:
case JEDEC_ID_CYPRESS_S25FL128L:
geometry.sectors = 256;
geometry.pagesPerSector = 256;
break;