Fix MK2.x builds
This commit is contained in:
parent
56948157d0
commit
94c1e65d83
|
|
@ -6,6 +6,8 @@
|
||||||
#include "spi.h"
|
#include "spi.h"
|
||||||
#include "fastio.h"
|
#include "fastio.h"
|
||||||
|
|
||||||
|
#ifdef XFLASH
|
||||||
|
|
||||||
#define _MFRID_W25X20CL 0xEF
|
#define _MFRID_W25X20CL 0xEF
|
||||||
#define _DEVID_W25X20CL 0x11
|
#define _DEVID_W25X20CL 0x11
|
||||||
|
|
||||||
|
|
@ -189,3 +191,5 @@ void xflash_wait_busy(void)
|
||||||
{
|
{
|
||||||
while (xflash_rd_status_reg() & XFLASH_STATUS_BUSY) ;
|
while (xflash_rd_status_reg() & XFLASH_STATUS_BUSY) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif //XFLASH
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue