WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
flash_others_config.h
浏览该文件的文档.
1
9#ifndef FLASH_OTHERS_CONFIG_H
10#define FLASH_OTHERS_CONFIG_H
11
18#include "flash_common_config.h"
19
20/* OTHERS enter qspi mode cmd config. */
21/* Micro config. */
22/* MT25QU128 Micro flash config. */
23static flash_cmd_exe_t g_micro_mt25qu128_enter_qspi_mode_cmd[] = {
24 /* Write enable. */
26 /* Write volatile configuration register, config dummy cycle 4, XIP disable. */
28 /* Wait until the configuration is complete. */
30 /* Write disable. */
32 /* Wait until the write enable flag is cleared. */
34 /* Enable QPI mode. */
36 /* The END command, will not be executed and need return. */
38};
39static flash_cmd_exe_t g_micro_mt25qu128_enter_xip_mode_cmd[] = {
40 /* Write enable. */
42 /* Write volatile configuration register, config dummy cycle 4, wrap 32byte,XIP enable. */
43 { FLASH_CMD_TYPE_CMD, HAL_SPI_FRAME_FORMAT_QUAD, 2, { 0x81, 0x41 } },
44 /* Wait until the configuration is complete. */
46 /* The END command, will not be executed and need return. */
48};
49
50/* MT25QU256 Micro flash config. */
51static flash_cmd_exe_t g_micro_mt25qu256_enter_qspi_mode_cmd[] = {
52 /* Write enable. */
54 /* Write volatile configuration register, config dummy cycle 4, XIP disable. */
56 /* Write enable. */
58 /* ENTER 4-BYTE ADDRESS MODE. */
60 /* Wait until the configuration is complete. */
62 /* Write disable. */
64 /* Wait until the write enable flag is cleared. */
66 /* Enable QPI mode. */
68 /* The END command, will not be executed and need return. */
70};
71static flash_cmd_exe_t g_micro_mt25qu256_enter_xip_mode_cmd[] = {
72 /* Write enable. */
74 /* Write volatile configuration register, config dummy cycle 4, wrap 32byte,XIP enable. */
75 { FLASH_CMD_TYPE_CMD, HAL_SPI_FRAME_FORMAT_QUAD, 2, { 0x81, 0x41 } },
76 /* Wait until the configuration is complete. */
78 /* Write disable. */
80 /* The END command, will not be executed and need return. */
82};
83
84/* PUYA config. */
85/* P25Q32LX PUYA flash config. */
86static flash_cmd_exe_t g_puya_p25q32lc_enter_qspi_mode_cmd[] = {
87 /* Write enable for volatile status register. */
89 /* Write status register-2 to 0x2, enable QPI write bit. */
91 /* Wait until the configuration is complete. */
93 /* Enable QPI mode. */
95 /* Set the dummy cycle to 6, with the maximum read frequency being 104MHZ 70MHZ. */
96 { FLASH_CMD_TYPE_CMD, HAL_SPI_FRAME_FORMAT_QUAD, 2, { 0xC0, 0x20} },
97 /* The END command, will not be executed and need return. */
99};
100
101/* ADESTO config. */
102/* AT25SL128A PUYA flash config. */
103static flash_cmd_exe_t g_adesto_at25sl128a_enter_qspi_mode_cmd[] = {
104 /* Write enable for volatile status register. */
106 /* Write volatile configuration register, config XIP disable. */
107 { FLASH_CMD_TYPE_CMD, HAL_SPI_FRAME_FORMAT_STANDARD, 3, { 0x01, 0x00, 0x02 } },
108 /* Wait until the configuration is complete. */
110 /* Enable QPI mode. The dummy cycle default value is 4, with the maximum read frequency being 90MHZ. */
112 /* The END command, will not be executed and need return. */
114};
115
116/* ELITE config. */
117/* EN25SX128A PUYA flash config. */
118static flash_cmd_exe_t g_mxic_en25sxxa_enter_qspi_mode_cmd[] = {
119 /* Write enable for volatile status register. */
121 /* Write volatile configuration register, config XIP disable. */
122 { FLASH_CMD_TYPE_CMD, HAL_SPI_FRAME_FORMAT_STANDARD, 3, { 0x01, 0x00, 0x02 } },
123 /* Enable QPI mode. */
125 /* The END command, will not be executed and need return. */
127};
128
129/* XTX config. */
130/* XT25Q128D flash config. */
131static flash_cmd_exe_t g_xtx_xt25qxxd_enter_qspi_mode_cmd[] = {
132 /* Write enable for volatile status register. */
134 /* Write status register-2 to 0x2, enable QPI write bit. */
136 /* Wait until the configuration is complete. */
138 /* Enable QPI mode. */
140 /* The END command, will not be executed and need return. */
142};
143
144/* OTHERS enter xip mode config. */
145/* Micro config. */
146/* MT25QU128 Micro flash config. */
147static flash_qspi_xip_config_t g_micro_mt25qu128_config = {
148 /* Enter XIP mode before config. */
153 /* Enter XIP mode after config. */
158 /* XIP 32bit addr & wrap config. */
159 false,
160 true,
161};
162
163/* MT25QU256 Micro flash config. */
164static flash_qspi_xip_config_t g_micro_mt25qu256_config = {
165 /* Enter XIP mode before config. */
170 /* Enter XIP mode after config. */
175 /* XIP 32bit addr & wrap config. */
176 true,
177 true,
178};
179
180/* PUYA config. */
181/* P25Q32LX PUYA flash config. */
182static flash_qspi_xip_config_t g_puya_p25q32lc_config = {
183 /* The config that before enter XIP mode. */
188 /* The config that after enter XIP mode. */
193 /* XIP 32bit addr & wrap config. */
194 false,
195 false,
196};
197
198/* ADESTO config. */
199/* AT25SL128A PUYA flash config. */
200static flash_qspi_xip_config_t g_adesto_at25sl128a_config = {
201 /* The config that before enter XIP mode. */
206 /* The config that after enter XIP mode. */
211 /* XIP 32bit addr & wrap config. */
212 false,
213 false,
214};
215
216/* ELITE config. */
217/* EN25SX128A PUYA flash config. */
218static flash_qspi_xip_config_t g_mxic_en25sxxa_config = {
219 /* The config that before enter XIP mode. */
224 /* The config that after enter XIP mode. */
229 /* XIP 32bit addr & wrap config. */
230 false,
231 false,
232};
233
234/* XTX config. */
235/* XT25QXXD flash config. */
236static flash_qspi_xip_config_t g_xtx_xt25qxxd_config = {
237 /* The config that before enter XIP mode. */
242 /* The config that after enter XIP mode. */
247 /* XIP 32bit addr & wrap config. */
248 false,
249 false,
250};
254#endif
#define FLASH_WRDI_CMD
Definition flash_common_config.h:34
#define FLASH_RDSR1_CMD
Definition flash_common_config.h:36
#define WAIT_CYCLES_4
Definition flash_common_config.h:24
#define FLASH_WREN_CMD
Definition flash_common_config.h:33
#define WAIT_CYCLES_6
Definition flash_common_config.h:26
#define WAIT_CYCLES_2
Definition flash_common_config.h:22
@ FLASH_CMD_TYPE_PROCESSING
Definition flash_common_config.h:193
@ FLASH_CMD_TYPE_END
Definition flash_common_config.h:195
@ FLASH_CMD_TYPE_CMD
Definition flash_common_config.h:192
@ HAL_SPI_TRANS_TYPE_INST_Q_ADDR_Q
Definition hal_spi.h:249
@ HAL_SPI_FRAME_FORMAT_STANDARD
Definition hal_spi.h:214
@ HAL_SPI_FRAME_FORMAT_QUAD
Definition hal_spi.h:220
@ HAL_SPI_FRAME_FORMAT_MAX_NUM
Definition hal_spi.h:229
@ HAL_SPI_ADDR_LEN_32
Definition hal_spi.h:309
@ HAL_SPI_ADDR_LEN_24
Definition hal_spi.h:303
@ HAL_SPI_INST_LEN_0
Definition hal_spi.h:263
@ HAL_SPI_INST_LEN_8
Definition hal_spi.h:269
Flash 命令。
Definition flash_common_config.h:205
Flash进出xip配置。
Definition flash_common_config.h:223