WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
flash_mxic_config.h
浏览该文件的文档.
1
9#ifndef FLASH_MXIC_CONFIG_H
10#define FLASH_MXIC_CONFIG_H
11
18#include "flash_common_config.h"
19
20/* Mxic enter qspi mode cmd config. */
21/* MX25R64/MX25R32 mxic flash config. */
22static flash_cmd_exe_t g_mxic_mx25rxx_enter_qspi_mode_cmd[] = {
23 /* Write enable. */
25 /* Write configuration register, enable QPI & enable High performance mode. */
26 { FLASH_CMD_TYPE_CMD, HAL_SPI_FRAME_FORMAT_STANDARD, 4, { 0x01, 0x40, 0x00, 0x02 } },
27 /* Wait until the configuration is complete. qspi mode 6 dummy cycle, max 80MHZ. */
29 /* The END command, will not be executed and need return. */
31};
32
33/* MX25U64/MX25U128/MX25U12843 mxic falsh config. */
34static flash_cmd_exe_t g_mxic_mx25uxx_enter_qspi_mode_cmd[] = {
35 /* Enable QPI mode, MX25U64 dummy cycle 6, max 84MHZ; MX25U128/MX25U12843, dummy cycle 6, max 104MHZ. */
37 /* The END command, will not be executed and need return. */
39};
40
41/* MX25U32 mxic falsh config. */
42static flash_cmd_exe_t g_mxic_mx25u32_enter_qspi_mode_cmd[] = {
43 /* Write enable. */
45 /* Write configuration register, Enable QPI & enable High performance mode. */
47 /* Wait until the configuration is complete. The dummy cycle default va 4, max 84MHZ. */
49 /* The END command, will not be executed and need return. */
51};
52
53
54/* Mxic enter xip mode config. */
55/* MX25R64/MX25R32 mxic flash config. */
56static flash_qspi_xip_config_t g_mxic_mx25rxx_config = {
57 /* Enter XIP mode before config. */
59 /* Enter XIP mode after config. */
61 /* XIP 32bit addr & wrap config. */
62 false,
63 false,
64};
65
66/* MX25U64/MX25U128/MX25U12843 mxic falsh config. */
67static flash_qspi_xip_config_t g_mxic_mx25uxx_config = {
68 /* Enter XIP mode before config. */
73 /* Enter XIP mode after config. */
78 /* XIP 32bit addr & wrap config. */
79 false,
80 false,
81};
82
83/* MX25U32 mxic falsh config. */
84static flash_qspi_xip_config_t g_mxic_mx25u32_config = {
85 /* Enter XIP mode before config. */
90 /* Enter XIP mode after config. */
95 /* XIP 32bit addr & wrap config. */
96 false,
97 false,
98};
99
103#endif
#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
@ 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_S_ADDR_Q
Definition hal_spi.h:244
@ 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_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