WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
flash_gigadevice_config.h
浏览该文件的文档.
1
9#ifndef FLASH_GIGADEVICE_CONFIG_H
10#define FLASH_GIGADEVICE_CONFIG_H
11
18#include "flash_common_config.h"
19
20/* Gigadevice enter qspi mode cmd config. */
21/* GD25WQ64/GD25LE64EX gigadevice flash config. */
22static flash_cmd_exe_t g_gigadevice_gd25wq64_enter_qspi_mode_cmd[] = {
23 /* Write enable for volatile status register. */
25 /* Write volatile configuration register, config XIP disable. */
26 { FLASH_CMD_TYPE_CMD, HAL_SPI_FRAME_FORMAT_STANDARD, 3, { 0x01, 0x00, 0x02 } },
27 /* Wait until the configuration is complete. qspi mode, max 104MHZ. */
29 /* The END command, will not be executed and need return. */
31};
32
33/* GD25LX128 gigadevice flash config. */
34static flash_cmd_exe_t g_gigadevice_gd25lq128_enter_qspi_mode_cmd[] = {
35 /* Write enable for volatile status register. */
37 /* Write volatile configuration register, config XIP disable. */
38 { FLASH_CMD_TYPE_CMD, HAL_SPI_FRAME_FORMAT_STANDARD, 3, { 0x01, 0x00, 0x02 } },
39 /* Enable QPI mode. */
41 /* Set the dummy cycle to 6, with the maximum read frequency being 108MHZ. */
42 { FLASH_CMD_TYPE_CMD, HAL_SPI_FRAME_FORMAT_QUAD, 2, { 0xC0, 0x10} },
43 /* The END command, will not be executed and need return. */
45};
46
47/* GD25LQ256 gigadevice flash config. */
48static flash_cmd_exe_t g_gigadevice_gd25lq256_enter_qspi_mode_cmd[] = {
49 /* Write enable for volatile status register. */
51 /* Write volatile configuration register, config XIP disable. */
52 { FLASH_CMD_TYPE_CMD, HAL_SPI_FRAME_FORMAT_STANDARD, 3, { 0x01, 0x00, 0x02 } },
53 /* Write enable. */
55 /* ENTER 4-BYTE ADDRESS MODE. */
57 /* Wait until the configuration is complete. */
59 /* Enable QPI mode. */
61 /* Set the dummy cycle to 6, with the maximum read frequency being 108MHZ. */
62 { FLASH_CMD_TYPE_CMD, HAL_SPI_FRAME_FORMAT_QUAD, 2, { 0xC0, 0x10} },
63 /* The END command, will not be executed and need return. */
65};
66
67/* GD25LQ32D gigadevice flash config. */
68static flash_cmd_exe_t g_gigadevice_gd25lq32d_enter_qspi_mode_cmd[] = {
69 /* Write enable for volatile status register. */
71 /* Write volatile configuration register, config XIP disable. */
72 { FLASH_CMD_TYPE_CMD, HAL_SPI_FRAME_FORMAT_STANDARD, 3, { 0x01, 0x00, 0x02 } },
73 /* Enable QPI mode. */
75 /* Set the dummy cycle to 6, with the maximum read frequency being 108MHZ. */
76 { FLASH_CMD_TYPE_CMD, HAL_SPI_FRAME_FORMAT_QUAD, 2, { 0xC0, 0x20} },
77 /* The END command, will not be executed and need return. */
79};
80
81
82/* Gigadevice enter xip mode config. */
83/* GD25WQ64 gigadevice flash config. */
84static flash_qspi_xip_config_t g_gigadevice_gd25wq64_config = {
85 /* The config that before enter XIP mode. */
90 /* The config that after enter XIP mode. */
95 /* XIP 32bit addr & wrap config. */
96 false,
97 false,
98};
99
100/* GD25LE64EX gigadevice flash config. */
101static flash_qspi_xip_config_t g_gigadevice_gd25le64_config = {
102 /* The config that before enter XIP mode. */
107 /* The config that after enter XIP mode. */
112 /* XIP 32bit addr & wrap config. */
113 false,
114 false,
115};
116
117/* GD25LX128/GD25LQ32D gigadevice flash config. */
118static flash_qspi_xip_config_t g_gigadevice_gd25lx_config = {
119 /* The config that before enter XIP mode. */
124 /* The config that after enter XIP mode. */
129 /* XIP 32bit addr & wrap config. */
130 false,
131 false,
132};
133
134/* GD25LQ256 gigadevice flash config. */
135static flash_qspi_xip_config_t g_gigadevice_gd25lq256_config = {
136 /* The config that before enter XIP mode. */
141 /* The config that after enter XIP mode. */
146 /* XIP 32bit addr & wrap config. */
147 true,
148 false,
149};
150
154#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_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