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

Add support for Winbond W25X32 FLASH

This commit is contained in:
Steve Evans 2022-04-21 21:28:32 +01:00
parent e9b716185f
commit ea37eca74f

View file

@ -87,6 +87,9 @@ struct {
// Winbond W25Q16 // Winbond W25Q16
// Datasheet: https://www.winbond.com/resource-files/w25q16dv_revi_nov1714_web.pdf // Datasheet: https://www.winbond.com/resource-files/w25q16dv_revi_nov1714_web.pdf
{ 0xEF4015, 104, 50, 32, 256 }, { 0xEF4015, 104, 50, 32, 256 },
// Winbond W25X32
// Datasheet: https://www.winbond.com/resource-files/w25x32a_revb_080709.pdf
{ 0xEF3016, 133, 50, 64, 256 },
// Winbond W25Q32 // Winbond W25Q32
// Datasheet: https://www.winbond.com/resource-files/w25q32jv%20dtr%20revf%2002242017.pdf?__locale=zh_TW // Datasheet: https://www.winbond.com/resource-files/w25q32jv%20dtr%20revf%2002242017.pdf?__locale=zh_TW
{ 0xEF4016, 133, 50, 64, 256 }, { 0xEF4016, 133, 50, 64, 256 },
@ -165,7 +168,6 @@ static bool m25p16_waitForReady(flashDevice_t *fdevice)
* *
* Returns true if we get valid ident, false if something bad happened like there is no M25P16. * Returns true if we get valid ident, false if something bad happened like there is no M25P16.
*/ */
bool m25p16_detect(flashDevice_t *fdevice, uint32_t chipID) bool m25p16_detect(flashDevice_t *fdevice, uint32_t chipID)
{ {
flashGeometry_t *geometry = &fdevice->geometry; flashGeometry_t *geometry = &fdevice->geometry;