Go to the documentation of this file.
43 #define AT25SF161_FLASH_SIZE 0x200000
44 #define AT25SF161_SECTOR64_SIZE 0x10000
45 #define AT25SF161_SECTOR_SIZE 0x8000
46 #define AT25SF161_BLOCK_SIZE 0x1000
47 #define AT25SF161_PAGE_SIZE 0x100
49 #define AT25SF161_DUMMY_CYCLES_READ 1
50 #define AT25SF161_DUMMY_CYCLES_READ_QUAD 4
52 #define AT25SF161_BULK_ERASE_MAX_TIME 25000
53 #define AT25SF161_SECTOR_ERASE_MAX_TIME 3000
54 #define AT25SF161_BLOCK_ERASE_MAX_TIME 300
61 #define RESET_ENABLE_CMD 0x66
62 #define RESET_MEMORY_CMD 0x99
65 #define READ_ID_CMD 0x9E
66 #define READ_ID_CMD2 0x9F
67 #define MULTIPLE_IO_READ_ID_CMD 0xAF
68 #define READ_SERIAL_FLASH_DISCO_PARAM_CMD 0x5A
73 #define FAST_READ_CMD 0x0B
74 #define DUAL_OUT_FAST_READ_CMD 0x3B
75 #define DUAL_INOUT_FAST_READ_CMD 0xBB
76 #define QUAD_OUT_FAST_READ_CMD 0x6B
77 #define QUAD_INOUT_FAST_READ_CMD 0xEB
78 #define QUAD_CONTINUOUS_READ_MODE_RESET 0xFF
81 #define WRITE_ENABLE_CMD 0x06
82 #define WRITE_DISABLE_CMD 0x04
85 #define READ_STATUS_REG_CMD 0x05
86 #define READ_STATUS2_REG_CMD 0x35
87 #define WRITE_STATUS_REG_CMD 0x01
88 #define WRITE_EN_VOLAT_STATUS_REG_CMD 0x50
91 #define PAGE_PROG_CMD 0x02
94 #define BLOCK_ERASE_CMD 0x20
95 #define SECTOR_ERASE_CMD 0x52
96 #define SECTOR64_ERASE_CMD 0xD8
97 #define BULK_ERASE_CMD 0xC7
98 #define PROG_ERASE_RESUME_CMD 0x7A
99 #define PROG_ERASE_SUSPEND_CMD 0x75
102 #define READ_SEC_REG_PAGE_CMD 0x48
103 #define WRITE_SEC_REG_PAGE_CMD 0x42
106 #define READ_ID_CMD 0x90
107 #define READ_ID_CMD2 0x9F
108 #define DEEP_POWER_DOWN_CMD 0xB9
109 #define RESUME_FROM_DEEP_PWD_CMD 0xAB
116 #define AT25SF161_SR_BUSY ((uint32_t)0x0001)
117 #define AT25SF161_SR_WEL ((uint32_t)0x0002)
118 #define AT25SF161_SR_BLOCKPR ((uint32_t)0x005C)
119 #define AT25SF161_SR_PRBOTTOM ((uint32_t)0x0020)
120 #define AT25SF161_SR_SRP0 ((uint32_t)0x0080)
122 #define AT25SF161_SR_SRP1 ((uint32_t)0x0100)
123 #define AT25SF161_SR_QE ((uint32_t)0x0200)
124 #define AT25SF161_SR_LB ((uint32_t)0x3800)
125 #define AT25SF161_SR_CMP ((uint32_t)0x4000)
126 #define AT25SF161_FS_ERSUS ((uint32_t)0x8000)