Select one of the symbols to view example projects that use it.
 
Outline
#define __STM32469I_EVAL_QSPI_H
Includes
#include "stm32f4xx_hal.h"
#include "../Components/s25fl512s/s25fl512s.h"
#include "../Components/n25q512a/n25q512a.h"
Exported constants
#define QSPI_OK
#define QSPI_ERROR
#define QSPI_BUSY
#define QSPI_NOT_SUPPORTED
#define QSPI_SUSPENDED
#define QSPI_PROTECTED
#define QSPI_S25FL512S
#define QSPI_N25Q512A
#define QSPI_CLK_ENABLE
#define QSPI_CLK_DISABLE
#define QSPI_CS_GPIO_CLK_ENABLE
#define QSPI_CS_GPIO_CLK_DISABLE
#define QSPI_DX_CLK_GPIO_CLK_ENABLE
#define QSPI_DX_CLK_GPIO_CLK_DISABLE
#define QSPI_FORCE_RESET
#define QSPI_RELEASE_RESET
#define QSPI_CS_PIN
#define QSPI_CS_GPIO_PORT
#define QSPI_CLK_PIN
#define QSPI_CLK_GPIO_PORT
#define QSPI_D0_PIN
#define QSPI_D1_PIN
#define QSPI_D2_PIN
#define QSPI_D3_PIN
#define QSPI_DX_GPIO_PORT
Exported types
QSPI_InfoTypeDef
BSP_QSPI_Init();
BSP_QSPI_DeInit();
BSP_QSPI_Read(uint8_t *, uint32_t, uint32_t);
BSP_QSPI_Write(uint8_t *, uint32_t, uint32_t);
BSP_QSPI_Erase_Block(uint32_t);
BSP_QSPI_Erase_Chip();
BSP_QSPI_GetStatus();
BSP_QSPI_GetInfo(QSPI_InfoTypeDef *);
BSP_QSPI_EnableMemoryMappedMode();
#define BSP_QSPI_MemoryMappedMode
BSP_QSPI_MspInit(QSPI_HandleTypeDef *, void *);
BSP_QSPI_MspDeInit(QSPI_HandleTypeDef *, void *);
Files
loading...
CodeScopeSTM32 Libraries and SamplesSTM32469I_EVALstm32469i_eval_qspi.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file stm32469i_eval_qspi.h * @author MCD Application Team * @brief This file contains the common defines and functions prototypes for * the stm32469i_eval_qspi.c driver. ****************************************************************************** * @attention * * Copyright (c) 2015 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /** @addtogroup BSP * @{ *//* ... */ /** @addtogroup STM32469I_EVAL * @{ *//* ... */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32469I_EVAL_QSPI_H #define __STM32469I_EVAL_QSPI_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" #include "../Components/s25fl512s/s25fl512s.h" #include "../Components/n25q512a/n25q512a.h" /** @addtogroup STM32469I_EVAL_QSPI * @{ *//* ... */ Includes /* Exported constants --------------------------------------------------------*/ /** @defgroup STM32446E_EVAL_QSPI_Exported_Constants STM32469I EVAL QSPI Exported Constants * @{ *//* ... */ /* QSPI Error codes */ #define QSPI_OK ((uint8_t)0x00) #define QSPI_ERROR ((uint8_t)0x01) #define QSPI_BUSY ((uint8_t)0x02) #define QSPI_NOT_SUPPORTED ((uint8_t)0x04) #define QSPI_SUSPENDED ((uint8_t)0x08) #define QSPI_PROTECTED ((uint8_t)0x10) #define QSPI_S25FL512S ((uint8_t)0x20) #define QSPI_N25Q512A ((uint8_t)0x40) /* Definition for QSPI clock resources */ #define QSPI_CLK_ENABLE() __HAL_RCC_QSPI_CLK_ENABLE() #define QSPI_CLK_DISABLE() __HAL_RCC_QSPI_CLK_DISABLE() #define QSPI_CS_GPIO_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE() #define QSPI_CS_GPIO_CLK_DISABLE() __HAL_RCC_GPIOB_CLK_DISABLE() #define QSPI_DX_CLK_GPIO_CLK_ENABLE() __HAL_RCC_GPIOF_CLK_ENABLE() #define QSPI_DX_CLK_GPIO_CLK_DISABLE() __HAL_RCC_GPIOF_CLK_DISABLE() #define QSPI_FORCE_RESET() __HAL_RCC_QSPI_FORCE_RESET() #define QSPI_RELEASE_RESET() __HAL_RCC_QSPI_RELEASE_RESET() /* Definition for QSPI Pins */ #define QSPI_CS_PIN GPIO_PIN_6 #define QSPI_CS_GPIO_PORT GPIOB #define QSPI_CLK_PIN GPIO_PIN_10 #define QSPI_CLK_GPIO_PORT GPIOF #define QSPI_D0_PIN GPIO_PIN_8 #define QSPI_D1_PIN GPIO_PIN_9 #define QSPI_D2_PIN GPIO_PIN_7 #define QSPI_D3_PIN GPIO_PIN_6 #define QSPI_DX_GPIO_PORT GPIOF 25 defines /** * @} *//* ... */ Exported constants /* Exported types ------------------------------------------------------------*/ /** @defgroup STM32446E_EVAL_QSPI_Exported_Types STM32469I EVAL QSPI Exported Types * @{ *//* ... */ /** * @brief QSPI Info * *//* ... */ typedef struct { uint32_t FlashSize; /*!< Size of the flash */ uint32_t EraseSectorSize; /*!< Size of sectors for the erase operation */ uint32_t EraseSectorsNumber; /*!< Number of sectors for the erase operation */ uint32_t ProgPageSize; /*!< Size of pages for the program operation */ uint32_t ProgPagesNumber; /*!< Number of pages for the program operation */ uint32_t DummyCyclesRead; /*!< Number of dummy read cycles */ uint8_t ManufID; /*!< Manufacturor value */ uint32_t SectorEraseMaxTime; /*!< Sector Erase max value */ uint32_t BulkEraseMaxTime; /*!< Bulk Erase Max Time */ ...} QSPI_InfoTypeDef; /** * @} *//* ... */ Exported types /* Exported functions --------------------------------------------------------*/ /** @defgroup STM32469I_EVAL_QSPI_Exported_Functions STM32469I EVAL QSPI Exported Functions * @{ *//* ... */ uint8_t BSP_QSPI_Init (void); uint8_t BSP_QSPI_DeInit (void); uint8_t BSP_QSPI_Read (uint8_t* pData, uint32_t ReadAddr, uint32_t Size); uint8_t BSP_QSPI_Write (uint8_t* pData, uint32_t WriteAddr, uint32_t Size); uint8_t BSP_QSPI_Erase_Block(uint32_t BlockAddress); uint8_t BSP_QSPI_Erase_Chip (void); uint8_t BSP_QSPI_GetStatus (void); uint8_t BSP_QSPI_GetInfo (QSPI_InfoTypeDef* pInfo); uint8_t BSP_QSPI_EnableMemoryMappedMode(void); /* BSP Aliased function maintained for legacy purpose */ #define BSP_QSPI_MemoryMappedMode BSP_QSPI_EnableMemoryMappedMode /* These function can be modified in case the current settings (e.g. DMA stream) need to be changed for specific application needs *//* ... */ void BSP_QSPI_MspInit(QSPI_HandleTypeDef *hqspi, void *Params); void BSP_QSPI_MspDeInit(QSPI_HandleTypeDef *hqspi, void *Params); /** * @} *//* ... */ /** * @} *//* ... */ #ifdef __cplusplus }extern "C" { ... } #endif /* ... */ #endif /* __STM32446E_EVAL_QSPI_H */ /** * @} *//* ... */ /** * @} *//* ... */