WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
flash_dosilicon_config.h
浏览该文件的文档.
1
9#ifndef FLASH_DOSILICON_CONFIG_H
10#define FLASH_DOSILICON_CONFIG_H
11
18#include "flash_common_config.h"
19
20/* DOSILICON enter qspi mode cmd config. */
21/* FM25M64/FM25M4AA DOSILICON flash config. */
22static flash_cmd_exe_t g_dosilicon_fm25m64_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 config done. */
29 /* Enable QPI mode. Set the dummy cycle to 4, with the maximum read frequency being 80MHZ. */
31 /* The END command, will not be executed and need return. */
33};
34
35/* DS25M4AB DOSILICON flash config. */
36static flash_cmd_exe_t g_dosilicon_ds25m4ab_enter_qspi_mode_cmd[] = {
37 /* Write enable for volatile status register. */
39 { FLASH_CMD_TYPE_CMD, HAL_SPI_FRAME_FORMAT_STANDARD, 3, { 0x01, 0x00, 0x02 } },
40 /* Enable QPI mode. */
42 /* Set the dummy cycle to 6, with the maximum read frequency being 108MHZ. */
43 { FLASH_CMD_TYPE_CMD, HAL_SPI_FRAME_FORMAT_QUAD, 2, { 0xC0, 0x20 } },
44 /* The END command, will not be executed and need return. */
46};
47
48
49/* DOSILICON enter xip mode config. */
50/* FM25M64 DOSILICON flash config. */
51static flash_qspi_xip_config_t g_dosilicon_fm25m64_config = {
52 /* The config that before enter XIP mode. */
57 /* The config that after enter XIP mode. */
62 /* XIP 32bit addr & wrap config. */
63 false,
64 false,
65};
66
67/* FM25M4AA DOSILICON flash config. */
68static flash_qspi_xip_config_t g_dosilicon_fm25m4aa_config = {
69 /* The config that before enter XIP mode. */
74 /* The config that after enter XIP mode. */
79 /* XIP 32bit addr & wrap config. */
80 false,
81 false,
82};
83
84/* DS25M4AB DOSILICON flash config. */
85static flash_qspi_xip_config_t g_dosilicon_ds25m4ab_config = {
86 /* The config that before enter XIP mode. */
91 /* The config that after enter XIP mode. */
96 /* XIP 32bit addr & wrap config. */
97 false,
98 false,
99};
100
104#endif
#define FLASH_RDSR1_CMD
Definition flash_common_config.h:36
#define WAIT_CYCLES_4
Definition flash_common_config.h:24
#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_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_24
Definition hal_spi.h:303
@ 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