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:
parent
e97496713a
commit
0306accf6e
6 changed files with 273 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue