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

FLASH Add W25M homogeneous stack driver and W25M512 support (#5722)

* Winbond W25M homogeneous mode driver

* W25M512 support on OMNIBUSF4 variants
This commit is contained in:
jflyper 2018-04-20 13:37:48 +09:00 committed by Michael Keller
parent e97496713a
commit 0306accf6e
6 changed files with 273 additions and 0 deletions

View file

@ -27,6 +27,7 @@
#include "flash.h"
#include "flash_impl.h"
#include "flash_m25p16.h"
#include "flash_w25m.h"
#include "drivers/bus_spi.h"
#include "drivers/io.h"
#include "drivers/time.h"
@ -83,6 +84,12 @@ bool flashInit(const flashConfig_t *flashConfig)
}
#endif
#ifdef USE_FLASH_W25M
if (w25m_detect(&flashDevice, chipID)) {
return true;
}
#endif
spiPreInitCs(flashConfig->csTag);
return false;