forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat-flash-drv-read-write' into 'dev'
Feat: flash driver extended read & write functions Closes zephyrproject-rtos#10 See merge request blik/embedded/zephyr!14
- Loading branch information
Showing
4 changed files
with
223 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
/* | ||
* Copyright (c) 2016 Intel Corporation. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/** | ||
* @file | ||
* @file spi_flash_w25qxxxx_defs.h | ||
* | ||
* @brief This file has the WinBond W25Q series SPI flash private definitions | ||
* | ||
* @brief This file has the WinBond SPI flash private definitions | ||
* @copyright Apache License 2.0 | ||
* @copyright (c) 2016 Intel Corporation. | ||
* @copyright (c) 2018 blik GmbH | ||
* | ||
* @author Alexander Preißner <[email protected]> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#ifndef __SPI_FLASH_W25QXXXX_DEFS_H__ | ||
|
@@ -20,7 +22,7 @@ | |
* +-------------------------------------------------------+ | ||
* | ||
* BUSY - Erase/Write In Progress - 1 device is executing a command, 0 ready for command | ||
* WEL - Write Enable Latch - 1 write enable is received, 0 completeion of | ||
* WEL - Write Enable Latch - 1 write enable is received, 0 completion of | ||
* a Write Disable, Page Program, Erase, Write Status Register | ||
* | ||
* S15 S14 S13 S12 S11 S10 S9 S8 | ||
|
@@ -57,6 +59,9 @@ | |
#define W25QXXXX_SECR_EFAIL_BIT (0x1 << 6) | ||
#define W25QXXXX_SECR_PFAIL_BIT (0x1 << 5) | ||
|
||
/* page size */ | ||
#define W25QXXXX_PAGE_SIZE (0x100) | ||
|
||
/* supported erase size */ | ||
#define W25QXXXX_SECTOR_SIZE (0x1000) | ||
#define W25QXXXX_BLOCK32K_SIZE (0x8000) | ||
|