mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
mtd_spi_nor: add 4-byte address flash support
This commit is contained in:
parent
d6f9be77b5
commit
53b3d1af78
@ -140,6 +140,13 @@ extern const mtd_desc_t mtd_spi_nor_driver;
|
||||
* sensible for default values. */
|
||||
extern const mtd_spi_nor_opcode_t mtd_spi_nor_opcode_default;
|
||||
|
||||
/**
|
||||
* @brief Default 4-byte addresses opcodes
|
||||
*
|
||||
* Commands for 4-byte addresses chips (above 128Mb)
|
||||
*/
|
||||
extern const mtd_spi_nor_opcode_t mtd_spi_nor_opcode_default_4bytes;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -42,4 +42,20 @@ const mtd_spi_nor_opcode_t mtd_spi_nor_opcode_default = {
|
||||
.wake = 0xab,
|
||||
};
|
||||
|
||||
const mtd_spi_nor_opcode_t mtd_spi_nor_opcode_default_4bytes = {
|
||||
.rdid = 0x9f,
|
||||
.wren = 0x06,
|
||||
.rdsr = 0x05,
|
||||
.wrsr = 0x01,
|
||||
.read = 0x13,
|
||||
.read_fast = 0x0c,
|
||||
.page_program = 0x12,
|
||||
.sector_erase = 0x21,
|
||||
.block_erase_32k = 0x5c,
|
||||
.block_erase = 0xdc,
|
||||
.chip_erase = 0xc7,
|
||||
.sleep = 0xb9,
|
||||
.wake = 0xab,
|
||||
};
|
||||
|
||||
/** @} */
|
||||
|
Loading…
Reference in New Issue
Block a user