]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_M7_STM32F7_STM32756G-EVAL/ST_Library/include/stm32f7xx_ll_fmc.h
Update version number ready for V8.2.1 release.
[freertos] / FreeRTOS / Demo / CORTEX_M7_STM32F7_STM32756G-EVAL / ST_Library / include / stm32f7xx_ll_fmc.h
1 /**\r
2   ******************************************************************************\r
3   * @file    stm32f7xx_ll_fmc.h\r
4   * @author  MCD Application Team\r
5   * @version V0.3.0\r
6   * @date    06-March-2015\r
7   * @brief   Header file of FMC HAL module.\r
8   ******************************************************************************\r
9   * @attention\r
10   *\r
11   * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>\r
12   *\r
13   * Redistribution and use in source and binary forms, with or without modification,\r
14   * are permitted provided that the following conditions are met:\r
15   *   1. Redistributions of source code must retain the above copyright notice,\r
16   *      this list of conditions and the following disclaimer.\r
17   *   2. Redistributions in binary form must reproduce the above copyright notice,\r
18   *      this list of conditions and the following disclaimer in the documentation\r
19   *      and/or other materials provided with the distribution.\r
20   *   3. Neither the name of STMicroelectronics nor the names of its contributors\r
21   *      may be used to endorse or promote products derived from this software\r
22   *      without specific prior written permission.\r
23   *\r
24   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\r
25   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
26   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\r
27   * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\r
28   * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
29   * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\r
30   * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\r
31   * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\r
32   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\r
33   * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
34   *\r
35   ******************************************************************************\r
36   */ \r
37 \r
38 /* Define to prevent recursive inclusion -------------------------------------*/\r
39 #ifndef __STM32F7xx_LL_FMC_H\r
40 #define __STM32F7xx_LL_FMC_H\r
41 \r
42 #ifdef __cplusplus\r
43  extern "C" {\r
44 #endif\r
45 \r
46 /* Includes ------------------------------------------------------------------*/\r
47 #include "stm32f7xx_hal_def.h"\r
48 \r
49 /** @addtogroup STM32F7xx_HAL_Driver\r
50   * @{\r
51   */\r
52 \r
53 /** @addtogroup FMC_LL\r
54   * @{\r
55   */\r
56 #if defined(STM32F756xx) || defined(STM32F746xx)\r
57  \r
58 \r
59 /** @addtogroup FMC_LL_Private_Macros\r
60   * @{\r
61   */\r
62 #define IS_FMC_NORSRAM_BANK(BANK) (((BANK) == FMC_NORSRAM_BANK1) || \\r
63                                    ((BANK) == FMC_NORSRAM_BANK2) || \\r
64                                    ((BANK) == FMC_NORSRAM_BANK3) || \\r
65                                    ((BANK) == FMC_NORSRAM_BANK4))\r
66 \r
67 #define IS_FMC_MUX(__MUX__) (((__MUX__) == FMC_DATA_ADDRESS_MUX_DISABLE) || \\r
68                               ((__MUX__) == FMC_DATA_ADDRESS_MUX_ENABLE))\r
69 \r
70 #define IS_FMC_MEMORY(__MEMORY__) (((__MEMORY__) == FMC_MEMORY_TYPE_SRAM) || \\r
71                                     ((__MEMORY__) == FMC_MEMORY_TYPE_PSRAM)|| \\r
72                                     ((__MEMORY__) == FMC_MEMORY_TYPE_NOR))\r
73 \r
74 #define IS_FMC_NORSRAM_MEMORY_WIDTH(__WIDTH__) (((__WIDTH__) == FMC_NORSRAM_MEM_BUS_WIDTH_8)  || \\r
75                                                  ((__WIDTH__) == FMC_NORSRAM_MEM_BUS_WIDTH_16) || \\r
76                                                  ((__WIDTH__) == FMC_NORSRAM_MEM_BUS_WIDTH_32))\r
77 \r
78 #define IS_FMC_ACCESS_MODE(__MODE__) (((__MODE__) == FMC_ACCESS_MODE_A) || \\r
79                                        ((__MODE__) == FMC_ACCESS_MODE_B) || \\r
80                                        ((__MODE__) == FMC_ACCESS_MODE_C) || \\r
81                                        ((__MODE__) == FMC_ACCESS_MODE_D))\r
82 \r
83 #define IS_FMC_NAND_BANK(BANK) ((BANK) == FMC_NAND_BANK3)\r
84 \r
85 #define IS_FMC_WAIT_FEATURE(FEATURE) (((FEATURE) == FMC_NAND_WAIT_FEATURE_DISABLE) || \\r
86                                       ((FEATURE) == FMC_NAND_WAIT_FEATURE_ENABLE))\r
87 \r
88 #define IS_FMC_NAND_MEMORY_WIDTH(WIDTH) (((WIDTH) == FMC_NAND_MEM_BUS_WIDTH_8) || \\r
89                                          ((WIDTH) == FMC_NAND_MEM_BUS_WIDTH_16))\r
90 \r
91 #define IS_FMC_ECC_STATE(STATE) (((STATE) == FMC_NAND_ECC_DISABLE) || \\r
92                                  ((STATE) == FMC_NAND_ECC_ENABLE))\r
93 \r
94 #define IS_FMC_ECCPAGE_SIZE(SIZE) (((SIZE) == FMC_NAND_ECC_PAGE_SIZE_256BYTE)  || \\r
95                                    ((SIZE) == FMC_NAND_ECC_PAGE_SIZE_512BYTE)  || \\r
96                                    ((SIZE) == FMC_NAND_ECC_PAGE_SIZE_1024BYTE) || \\r
97                                    ((SIZE) == FMC_NAND_ECC_PAGE_SIZE_2048BYTE) || \\r
98                                    ((SIZE) == FMC_NAND_ECC_PAGE_SIZE_4096BYTE) || \\r
99                                    ((SIZE) == FMC_NAND_ECC_PAGE_SIZE_8192BYTE))\r
100                                                                    \r
101 #define IS_FMC_SDMEMORY_WIDTH(WIDTH) (((WIDTH) == FMC_SDRAM_MEM_BUS_WIDTH_8)  || \\r
102                                       ((WIDTH) == FMC_SDRAM_MEM_BUS_WIDTH_16) || \\r
103                                       ((WIDTH) == FMC_SDRAM_MEM_BUS_WIDTH_32))\r
104 \r
105 #define IS_FMC_WRITE_PROTECTION(__WRITE__) (((__WRITE__) == FMC_SDRAM_WRITE_PROTECTION_DISABLE) || \\r
106                                             ((__WRITE__) == FMC_SDRAM_WRITE_PROTECTION_ENABLE))                                                                   \r
107 \r
108 #define IS_FMC_SDCLOCK_PERIOD(__PERIOD__) (((__PERIOD__) == FMC_SDRAM_CLOCK_DISABLE)  || \\r
109                                            ((__PERIOD__) == FMC_SDRAM_CLOCK_PERIOD_2) || \\r
110                                            ((__PERIOD__) == FMC_SDRAM_CLOCK_PERIOD_3))\r
111                                                                                    \r
112 #define IS_FMC_READ_BURST(__RBURST__) (((__RBURST__) == FMC_SDRAM_RBURST_DISABLE) || \\r
113                                        ((__RBURST__) == FMC_SDRAM_RBURST_ENABLE))\r
114                                                                            \r
115 #define IS_FMC_READPIPE_DELAY(__DELAY__) (((__DELAY__) == FMC_SDRAM_RPIPE_DELAY_0) || \\r
116                                           ((__DELAY__) == FMC_SDRAM_RPIPE_DELAY_1) || \\r
117                                           ((__DELAY__) == FMC_SDRAM_RPIPE_DELAY_2))\r
118 \r
119 #define IS_FMC_COMMAND_MODE(__COMMAND__) (((__COMMAND__) == FMC_SDRAM_CMD_NORMAL_MODE)      || \\r
120                                           ((__COMMAND__) == FMC_SDRAM_CMD_CLK_ENABLE)       || \\r
121                                           ((__COMMAND__) == FMC_SDRAM_CMD_PALL)             || \\r
122                                           ((__COMMAND__) == FMC_SDRAM_CMD_AUTOREFRESH_MODE) || \\r
123                                           ((__COMMAND__) == FMC_SDRAM_CMD_LOAD_MODE)        || \\r
124                                           ((__COMMAND__) == FMC_SDRAM_CMD_SELFREFRESH_MODE) || \\r
125                                           ((__COMMAND__) == FMC_SDRAM_CMD_POWERDOWN_MODE))\r
126 \r
127 #define IS_FMC_COMMAND_TARGET(__TARGET__) (((__TARGET__) == FMC_SDRAM_CMD_TARGET_BANK1) || \\r
128                                            ((__TARGET__) == FMC_SDRAM_CMD_TARGET_BANK2) || \\r
129                                            ((__TARGET__) == FMC_SDRAM_CMD_TARGET_BANK1_2))                                                                                \r
130                                                    \r
131 /** @defgroup FMC_TCLR_Setup_Time FMC TCLR Setup Time\r
132   * @{\r
133   */\r
134 #define IS_FMC_TCLR_TIME(__TIME__) ((__TIME__) <= 255)\r
135 /**\r
136   * @}\r
137   */\r
138 \r
139 /** @defgroup FMC_TAR_Setup_Time FMC TAR Setup Time \r
140   * @{\r
141   */\r
142 #define IS_FMC_TAR_TIME(TIME) ((TIME) <= 255)\r
143 /**\r
144   * @}\r
145   */\r
146 \r
147 /** @defgroup FMC_Setup_Time FMC Setup Time \r
148   * @{\r
149   */\r
150 #define IS_FMC_SETUP_TIME(TIME) ((TIME) <= 255)\r
151 /**\r
152   * @}\r
153   */\r
154 \r
155 /** @defgroup FMC_Wait_Setup_Time FMC Wait Setup Time \r
156   * @{\r
157   */\r
158 #define IS_FMC_WAIT_TIME(TIME) ((TIME) <= 255)\r
159 /**\r
160   * @}\r
161   */\r
162 \r
163 /** @defgroup FMC_Hold_Setup_Time FMC Hold Setup Time \r
164   * @{\r
165   */\r
166 #define IS_FMC_HOLD_TIME(TIME) ((TIME) <= 255)\r
167 /**\r
168   * @}\r
169   */\r
170 \r
171 /** @defgroup FMC_HiZ_Setup_Time FMC HiZ Setup Time \r
172   * @{\r
173   */\r
174 #define IS_FMC_HIZ_TIME(TIME) ((TIME) <= 255)\r
175 /**\r
176   * @}\r
177   */\r
178 \r
179 #define IS_FMC_BURSTMODE(__STATE__) (((__STATE__) == FMC_BURST_ACCESS_MODE_DISABLE) || \\r
180                                       ((__STATE__) == FMC_BURST_ACCESS_MODE_ENABLE))\r
181 \r
182 #define IS_FMC_WAIT_POLARITY(__POLARITY__) (((__POLARITY__) == FMC_WAIT_SIGNAL_POLARITY_LOW) || \\r
183                                              ((__POLARITY__) == FMC_WAIT_SIGNAL_POLARITY_HIGH))\r
184 \r
185 #define IS_FMC_WAIT_SIGNAL_ACTIVE(__ACTIVE__) (((__ACTIVE__) == FMC_WAIT_TIMING_BEFORE_WS) || \\r
186                                                 ((__ACTIVE__) == FMC_WAIT_TIMING_DURING_WS)) \r
187 \r
188 #define IS_FMC_WRITE_OPERATION(__OPERATION__) (((__OPERATION__) == FMC_WRITE_OPERATION_DISABLE) || \\r
189                                                 ((__OPERATION__) == FMC_WRITE_OPERATION_ENABLE))\r
190 \r
191 #define IS_FMC_WAITE_SIGNAL(__SIGNAL__) (((__SIGNAL__) == FMC_WAIT_SIGNAL_DISABLE) || \\r
192                                           ((__SIGNAL__) == FMC_WAIT_SIGNAL_ENABLE))\r
193 \r
194 #define IS_FMC_EXTENDED_MODE(__MODE__) (((__MODE__) == FMC_EXTENDED_MODE_DISABLE) || \\r
195                                          ((__MODE__) == FMC_EXTENDED_MODE_ENABLE))\r
196 \r
197 #define IS_FMC_ASYNWAIT(__STATE__) (((__STATE__) == FMC_ASYNCHRONOUS_WAIT_DISABLE) || \\r
198                                      ((__STATE__) == FMC_ASYNCHRONOUS_WAIT_ENABLE))\r
199 \r
200 /** @defgroup FMC_Data_Latency FMC Data Latency \r
201   * @{\r
202   */\r
203 #define IS_FMC_DATA_LATENCY(__LATENCY__) (((__LATENCY__) > 1) && ((__LATENCY__) <= 17))\r
204 /**\r
205   * @}\r
206   */\r
207 \r
208 #define IS_FMC_WRITE_BURST(__BURST__) (((__BURST__) == FMC_WRITE_BURST_DISABLE) || \\r
209                                         ((__BURST__) == FMC_WRITE_BURST_ENABLE))\r
210 \r
211 #define IS_FMC_CONTINOUS_CLOCK(CCLOCK) (((CCLOCK) == FMC_CONTINUOUS_CLOCK_SYNC_ONLY) || \\r
212                                         ((CCLOCK) == FMC_CONTINUOUS_CLOCK_SYNC_ASYNC))\r
213 \r
214 \r
215 /** @defgroup FMC_Address_Setup_Time FMC Address Setup Time\r
216   * @{\r
217   */\r
218 #define IS_FMC_ADDRESS_SETUP_TIME(__TIME__) ((__TIME__) <= 15)\r
219 /**\r
220   * @}\r
221   */\r
222 \r
223 /** @defgroup FMC_Address_Hold_Time FMC Address Hold Time\r
224   * @{\r
225   */\r
226 #define IS_FMC_ADDRESS_HOLD_TIME(__TIME__) (((__TIME__) > 0) && ((__TIME__) <= 15))\r
227 /**\r
228   * @}\r
229   */\r
230 \r
231 /** @defgroup FMC_Data_Setup_Time FMC Data Setup Time\r
232   * @{\r
233   */\r
234 #define IS_FMC_DATASETUP_TIME(__TIME__) (((__TIME__) > 0) && ((__TIME__) <= 255))\r
235 /**\r
236   * @}\r
237   */\r
238 \r
239 /** @defgroup FMC_Bus_Turn_around_Duration FMC Bus Turn around Duration\r
240   * @{\r
241   */\r
242 #define IS_FMC_TURNAROUND_TIME(__TIME__) ((__TIME__) <= 15)\r
243 /**\r
244   * @}\r
245   */\r
246 \r
247 /** @defgroup FMC_CLK_Division FMC CLK Division \r
248   * @{\r
249   */\r
250 #define IS_FMC_CLK_DIV(DIV) (((DIV) > 1) && ((DIV) <= 16))\r
251 /**\r
252   * @}\r
253   */\r
254 \r
255 /** @defgroup FMC_SDRAM_LoadToActive_Delay FMC SDRAM LoadToActive Delay\r
256   * @{\r
257   */\r
258 #define IS_FMC_LOADTOACTIVE_DELAY(__DELAY__) (((__DELAY__) > 0) && ((__DELAY__) <= 16))\r
259 /**\r
260   * @}\r
261   */\r
262   \r
263 /** @defgroup FMC_SDRAM_ExitSelfRefresh_Delay FMC SDRAM ExitSelfRefresh Delay\r
264   * @{\r
265   */\r
266 #define IS_FMC_EXITSELFREFRESH_DELAY(__DELAY__) (((__DELAY__) > 0) && ((__DELAY__) <= 16))\r
267 /**\r
268   * @}\r
269   */ \r
270      \r
271 /** @defgroup FMC_SDRAM_SelfRefresh_Time FMC SDRAM SelfRefresh Time\r
272   * @{\r
273   */  \r
274 #define IS_FMC_SELFREFRESH_TIME(__TIME__) (((__TIME__) > 0) && ((__TIME__) <= 16))\r
275 /**\r
276   * @}\r
277   */\r
278   \r
279 /** @defgroup FMC_SDRAM_RowCycle_Delay FMC SDRAM RowCycle Delay\r
280   * @{\r
281   */  \r
282 #define IS_FMC_ROWCYCLE_DELAY(__DELAY__) (((__DELAY__) > 0) && ((__DELAY__) <= 16))\r
283 /**\r
284   * @}\r
285   */  \r
286   \r
287 /** @defgroup FMC_SDRAM_Write_Recovery_Time FMC SDRAM Write Recovery Time\r
288   * @{\r
289   */  \r
290 #define IS_FMC_WRITE_RECOVERY_TIME(__TIME__) (((__TIME__) > 0) && ((__TIME__) <= 16))\r
291 /**\r
292   * @}\r
293   */         \r
294   \r
295 /** @defgroup FMC_SDRAM_RP_Delay FMC SDRAM RP Delay\r
296   * @{\r
297   */  \r
298 #define IS_FMC_RP_DELAY(__DELAY__) (((__DELAY__) > 0) && ((__DELAY__) <= 16))\r
299 /**\r
300   * @}\r
301   */ \r
302   \r
303 /** @defgroup FMC_SDRAM_RCD_Delay FMC SDRAM RCD Delay\r
304   * @{\r
305   */  \r
306 #define IS_FMC_RCD_DELAY(__DELAY__) (((__DELAY__) > 0) && ((__DELAY__) <= 16))\r
307 /**\r
308   * @}\r
309   */\r
310   \r
311 /** @defgroup FMC_SDRAM_AutoRefresh_Number FMC SDRAM AutoRefresh Number\r
312   * @{\r
313   */  \r
314 #define IS_FMC_AUTOREFRESH_NUMBER(__NUMBER__) (((__NUMBER__) > 0) && ((__NUMBER__) <= 16))\r
315 /**\r
316   * @}\r
317   */\r
318 \r
319 /** @defgroup FMC_SDRAM_ModeRegister_Definition FMC SDRAM ModeRegister Definition\r
320   * @{\r
321   */\r
322 #define IS_FMC_MODE_REGISTER(__CONTENT__) ((__CONTENT__) <= 8191)\r
323 /**\r
324   * @}\r
325   */\r
326 \r
327 /** @defgroup FMC_SDRAM_Refresh_rate FMC SDRAM Refresh rate\r
328   * @{\r
329   */\r
330 #define IS_FMC_REFRESH_RATE(__RATE__) ((__RATE__) <= 8191)\r
331 /**\r
332   * @}\r
333   */\r
334   \r
335 /** @defgroup FMC_NORSRAM_Device_Instance FMC NORSRAM Device Instance\r
336   * @{\r
337   */\r
338 #define IS_FMC_NORSRAM_DEVICE(__INSTANCE__) ((__INSTANCE__) == FMC_NORSRAM_DEVICE)\r
339 /**\r
340   * @}\r
341   */\r
342 \r
343 /** @defgroup FMC_NORSRAM_EXTENDED_Device_Instance FMC NORSRAM EXTENDED Device Instance\r
344   * @{\r
345   */\r
346 #define IS_FMC_NORSRAM_EXTENDED_DEVICE(__INSTANCE__) ((__INSTANCE__) == FMC_NORSRAM_EXTENDED_DEVICE)\r
347 /**\r
348   * @}\r
349   */\r
350   \r
351 /** @defgroup FMC_NAND_Device_Instance FMC NAND Device Instance\r
352   * @{\r
353   */\r
354 #define IS_FMC_NAND_DEVICE(__INSTANCE__) ((__INSTANCE__) == FMC_NAND_DEVICE)\r
355 /**\r
356   * @}\r
357   */\r
358 \r
359 /** @defgroup FMC_SDRAM_Device_Instance FMC SDRAM Device Instance\r
360   * @{\r
361   */\r
362 #define IS_FMC_SDRAM_DEVICE(__INSTANCE__) ((__INSTANCE__) == FMC_SDRAM_DEVICE)\r
363 /**\r
364   * @}\r
365   */\r
366 \r
367 #define IS_FMC_SDRAM_BANK(BANK) (((BANK) == FMC_SDRAM_BANK1) || \\r
368                                  ((BANK) == FMC_SDRAM_BANK2))\r
369 \r
370 #define IS_FMC_COLUMNBITS_NUMBER(COLUMN) (((COLUMN) == FMC_SDRAM_COLUMN_BITS_NUM_8)  || \\r
371                                           ((COLUMN) == FMC_SDRAM_COLUMN_BITS_NUM_9)  || \\r
372                                           ((COLUMN) == FMC_SDRAM_COLUMN_BITS_NUM_10) || \\r
373                                           ((COLUMN) == FMC_SDRAM_COLUMN_BITS_NUM_11))\r
374 \r
375 #define IS_FMC_ROWBITS_NUMBER(ROW) (((ROW) == FMC_SDRAM_ROW_BITS_NUM_11) || \\r
376                                     ((ROW) == FMC_SDRAM_ROW_BITS_NUM_12) || \\r
377                                     ((ROW) == FMC_SDRAM_ROW_BITS_NUM_13))\r
378 \r
379 #define IS_FMC_INTERNALBANK_NUMBER(NUMBER) (((NUMBER) == FMC_SDRAM_INTERN_BANKS_NUM_2) || \\r
380                                             ((NUMBER) == FMC_SDRAM_INTERN_BANKS_NUM_4))\r
381 \r
382 \r
383 #define IS_FMC_CAS_LATENCY(LATENCY) (((LATENCY) == FMC_SDRAM_CAS_LATENCY_1) || \\r
384                                      ((LATENCY) == FMC_SDRAM_CAS_LATENCY_2) || \\r
385                                      ((LATENCY) == FMC_SDRAM_CAS_LATENCY_3))\r
386 \r
387 #define IS_FMC_PAGESIZE(__SIZE__) (((__SIZE__) == FMC_PAGE_SIZE_NONE) || \\r
388                                    ((__SIZE__) == FMC_PAGE_SIZE_128) || \\r
389                                    ((__SIZE__) == FMC_PAGE_SIZE_256) || \\r
390                                    ((__SIZE__) == FMC_PAGE_SIZE_1024))\r
391 \r
392 #define IS_FMC_WRITE_FIFO(__FIFO__) (((__FIFO__) == FMC_WRITE_FIFO_DISABLE) || \\r
393                                      ((__FIFO__) == FMC_WRITE_FIFO_ENABLE))\r
394 /**\r
395   * @}\r
396   */\r
397 \r
398 /* Exported typedef ----------------------------------------------------------*/\r
399 /** @defgroup FMC_Exported_typedef FMC Low Layer Exported Types\r
400   * @{\r
401   */\r
402 #define FMC_NORSRAM_TypeDef            FMC_Bank1_TypeDef\r
403 #define FMC_NORSRAM_EXTENDED_TypeDef   FMC_Bank1E_TypeDef\r
404 #define FMC_NAND_TypeDef               FMC_Bank3_TypeDef\r
405 #define FMC_SDRAM_TypeDef              FMC_Bank5_6_TypeDef\r
406 \r
407 #define FMC_NORSRAM_DEVICE             FMC_Bank1\r
408 #define FMC_NORSRAM_EXTENDED_DEVICE    FMC_Bank1E\r
409 #define FMC_NAND_DEVICE                FMC_Bank3\r
410 #define FMC_SDRAM_DEVICE               FMC_Bank5_6\r
411 \r
412 /** \r
413   * @brief  FMC NORSRAM Configuration Structure definition\r
414   */ \r
415 typedef struct\r
416 {\r
417   uint32_t NSBank;                       /*!< Specifies the NORSRAM memory device that will be used.\r
418                                               This parameter can be a value of @ref FMC_NORSRAM_Bank                     */\r
419 \r
420   uint32_t DataAddressMux;               /*!< Specifies whether the address and data values are\r
421                                               multiplexed on the data bus or not. \r
422                                               This parameter can be a value of @ref FMC_Data_Address_Bus_Multiplexing    */\r
423 \r
424   uint32_t MemoryType;                   /*!< Specifies the type of external memory attached to\r
425                                               the corresponding memory device.\r
426                                               This parameter can be a value of @ref FMC_Memory_Type                      */\r
427 \r
428   uint32_t MemoryDataWidth;              /*!< Specifies the external memory device width.\r
429                                               This parameter can be a value of @ref FMC_NORSRAM_Data_Width               */\r
430 \r
431   uint32_t BurstAccessMode;              /*!< Enables or disables the burst access mode for Flash memory,\r
432                                               valid only with synchronous burst Flash memories.\r
433                                               This parameter can be a value of @ref FMC_Burst_Access_Mode                */\r
434 \r
435   uint32_t WaitSignalPolarity;           /*!< Specifies the wait signal polarity, valid only when accessing\r
436                                               the Flash memory in burst mode.\r
437                                               This parameter can be a value of @ref FMC_Wait_Signal_Polarity             */\r
438 \r
439   uint32_t WaitSignalActive;             /*!< Specifies if the wait signal is asserted by the memory one\r
440                                               clock cycle before the wait state or during the wait state,\r
441                                               valid only when accessing memories in burst mode. \r
442                                               This parameter can be a value of @ref FMC_Wait_Timing                      */\r
443 \r
444   uint32_t WriteOperation;               /*!< Enables or disables the write operation in the selected device by the FMC. \r
445                                               This parameter can be a value of @ref FMC_Write_Operation                  */\r
446 \r
447   uint32_t WaitSignal;                   /*!< Enables or disables the wait state insertion via wait\r
448                                               signal, valid for Flash memory access in burst mode. \r
449                                               This parameter can be a value of @ref FMC_Wait_Signal                      */\r
450 \r
451   uint32_t ExtendedMode;                 /*!< Enables or disables the extended mode.\r
452                                               This parameter can be a value of @ref FMC_Extended_Mode                    */\r
453 \r
454   uint32_t AsynchronousWait;             /*!< Enables or disables wait signal during asynchronous transfers,\r
455                                               valid only with asynchronous Flash memories.\r
456                                               This parameter can be a value of @ref FMC_AsynchronousWait                 */\r
457 \r
458   uint32_t WriteBurst;                   /*!< Enables or disables the write burst operation.\r
459                                               This parameter can be a value of @ref FMC_Write_Burst                      */\r
460 \r
461   uint32_t ContinuousClock;              /*!< Enables or disables the FMC clock output to external memory devices.\r
462                                               This parameter is only enabled through the FMC_BCR1 register, and don't care \r
463                                               through FMC_BCR2..4 registers.\r
464                                               This parameter can be a value of @ref FMC_CONTINUOUS_Clock                  */\r
465 \r
466   uint32_t WriteFifo;                    /*!< Enables or disables the write FIFO used by the FMC controller.\r
467                                               This parameter is only enabled through the FMC_BCR1 register, and don't care \r
468                                               through FMC_BCR2..4 registers.\r
469                                               This parameter can be a value of @ref FMC_Write_FIFO                      */\r
470 \r
471   uint32_t PageSize;                     /*!< Specifies the memory page size.\r
472                                               This parameter can be a value of @ref FMC_Page_Size                        */\r
473 \r
474 }FMC_NORSRAM_InitTypeDef;\r
475 \r
476 /** \r
477   * @brief  FMC NORSRAM Timing parameters structure definition  \r
478   */\r
479 typedef struct\r
480 {\r
481   uint32_t AddressSetupTime;             /*!< Defines the number of HCLK cycles to configure\r
482                                               the duration of the address setup time. \r
483                                               This parameter can be a value between Min_Data = 0 and Max_Data = 15.\r
484                                               @note This parameter is not used with synchronous NOR Flash memories.      */\r
485 \r
486   uint32_t AddressHoldTime;              /*!< Defines the number of HCLK cycles to configure\r
487                                               the duration of the address hold time.\r
488                                               This parameter can be a value between Min_Data = 1 and Max_Data = 15. \r
489                                               @note This parameter is not used with synchronous NOR Flash memories.      */\r
490 \r
491   uint32_t DataSetupTime;                /*!< Defines the number of HCLK cycles to configure\r
492                                               the duration of the data setup time.\r
493                                               This parameter can be a value between Min_Data = 1 and Max_Data = 255.\r
494                                               @note This parameter is used for SRAMs, ROMs and asynchronous multiplexed \r
495                                               NOR Flash memories.                                                        */\r
496 \r
497   uint32_t BusTurnAroundDuration;        /*!< Defines the number of HCLK cycles to configure\r
498                                               the duration of the bus turnaround.\r
499                                               This parameter can be a value between Min_Data = 0 and Max_Data = 15.\r
500                                               @note This parameter is only used for multiplexed NOR Flash memories.      */\r
501 \r
502   uint32_t CLKDivision;                  /*!< Defines the period of CLK clock output signal, expressed in number of \r
503                                               HCLK cycles. This parameter can be a value between Min_Data = 2 and Max_Data = 16.\r
504                                               @note This parameter is not used for asynchronous NOR Flash, SRAM or ROM \r
505                                               accesses.                                                                  */\r
506 \r
507   uint32_t DataLatency;                  /*!< Defines the number of memory clock cycles to issue\r
508                                               to the memory before getting the first data.\r
509                                               The parameter value depends on the memory type as shown below:\r
510                                               - It must be set to 0 in case of a CRAM\r
511                                               - It is don't care in asynchronous NOR, SRAM or ROM accesses\r
512                                               - It may assume a value between Min_Data = 2 and Max_Data = 17 in NOR Flash memories\r
513                                                 with synchronous burst mode enable                                       */\r
514 \r
515   uint32_t AccessMode;                   /*!< Specifies the asynchronous access mode. \r
516                                               This parameter can be a value of @ref FMC_Access_Mode                      */\r
517 }FMC_NORSRAM_TimingTypeDef;\r
518 \r
519 /** \r
520   * @brief  FMC NAND Configuration Structure definition  \r
521   */ \r
522 typedef struct\r
523 {\r
524   uint32_t NandBank;               /*!< Specifies the NAND memory device that will be used.\r
525                                         This parameter can be a value of @ref FMC_NAND_Bank                    */\r
526 \r
527   uint32_t Waitfeature;            /*!< Enables or disables the Wait feature for the NAND Memory device.\r
528                                         This parameter can be any value of @ref FMC_Wait_feature               */\r
529 \r
530   uint32_t MemoryDataWidth;        /*!< Specifies the external memory device width.\r
531                                         This parameter can be any value of @ref FMC_NAND_Data_Width            */\r
532 \r
533   uint32_t EccComputation;         /*!< Enables or disables the ECC computation.\r
534                                         This parameter can be any value of @ref FMC_ECC                        */\r
535 \r
536   uint32_t ECCPageSize;            /*!< Defines the page size for the extended ECC.\r
537                                         This parameter can be any value of @ref FMC_ECC_Page_Size              */\r
538 \r
539   uint32_t TCLRSetupTime;          /*!< Defines the number of HCLK cycles to configure the\r
540                                         delay between CLE low and RE low.\r
541                                         This parameter can be a value between Min_Data = 0 and Max_Data = 255  */\r
542 \r
543   uint32_t TARSetupTime;           /*!< Defines the number of HCLK cycles to configure the\r
544                                         delay between ALE low and RE low.\r
545                                         This parameter can be a number between Min_Data = 0 and Max_Data = 255 */\r
546 }FMC_NAND_InitTypeDef;\r
547 \r
548 /** \r
549   * @brief  FMC NAND Timing parameters structure definition\r
550   */\r
551 typedef struct\r
552 {\r
553   uint32_t SetupTime;            /*!< Defines the number of HCLK cycles to setup address before\r
554                                       the command assertion for NAND-Flash read or write access\r
555                                       to common/Attribute or I/O memory space (depending on\r
556                                       the memory space timing to be configured).\r
557                                       This parameter can be a value between Min_Data = 0 and Max_Data = 255    */\r
558 \r
559   uint32_t WaitSetupTime;        /*!< Defines the minimum number of HCLK cycles to assert the\r
560                                       command for NAND-Flash read or write access to\r
561                                       common/Attribute or I/O memory space (depending on the\r
562                                       memory space timing to be configured). \r
563                                       This parameter can be a number between Min_Data = 0 and Max_Data = 255   */\r
564 \r
565   uint32_t HoldSetupTime;        /*!< Defines the number of HCLK clock cycles to hold address\r
566                                       (and data for write access) after the command de-assertion\r
567                                       for NAND-Flash read or write access to common/Attribute\r
568                                       or I/O memory space (depending on the memory space timing\r
569                                       to be configured).\r
570                                       This parameter can be a number between Min_Data = 0 and Max_Data = 255   */\r
571 \r
572   uint32_t HiZSetupTime;         /*!< Defines the number of HCLK clock cycles during which the\r
573                                       data bus is kept in HiZ after the start of a NAND-Flash\r
574                                       write access to common/Attribute or I/O memory space (depending\r
575                                       on the memory space timing to be configured).\r
576                                       This parameter can be a number between Min_Data = 0 and Max_Data = 255   */\r
577 }FMC_NAND_PCC_TimingTypeDef;\r
578 \r
579 /** \r
580   * @brief  FMC SDRAM Configuration Structure definition  \r
581   */  \r
582 typedef struct\r
583 {\r
584   uint32_t SDBank;                      /*!< Specifies the SDRAM memory device that will be used.\r
585                                              This parameter can be a value of @ref FMC_SDRAM_Bank                */\r
586 \r
587   uint32_t ColumnBitsNumber;            /*!< Defines the number of bits of column address.\r
588                                              This parameter can be a value of @ref FMC_SDRAM_Column_Bits_number. */\r
589 \r
590   uint32_t RowBitsNumber;               /*!< Defines the number of bits of column address.\r
591                                              This parameter can be a value of @ref FMC_SDRAM_Row_Bits_number.    */\r
592 \r
593   uint32_t MemoryDataWidth;             /*!< Defines the memory device width.\r
594                                              This parameter can be a value of @ref FMC_SDRAM_Memory_Bus_Width.   */\r
595 \r
596   uint32_t InternalBankNumber;          /*!< Defines the number of the device's internal banks.\r
597                                              This parameter can be of @ref FMC_SDRAM_Internal_Banks_Number.      */\r
598 \r
599   uint32_t CASLatency;                  /*!< Defines the SDRAM CAS latency in number of memory clock cycles.\r
600                                              This parameter can be a value of @ref FMC_SDRAM_CAS_Latency.        */\r
601 \r
602   uint32_t WriteProtection;             /*!< Enables the SDRAM device to be accessed in write mode.\r
603                                              This parameter can be a value of @ref FMC_SDRAM_Write_Protection.   */\r
604 \r
605   uint32_t SDClockPeriod;               /*!< Define the SDRAM Clock Period for both SDRAM devices and they allow \r
606                                              to disable the clock before changing frequency.\r
607                                              This parameter can be a value of @ref FMC_SDRAM_Clock_Period.       */\r
608 \r
609   uint32_t ReadBurst;                   /*!< This bit enable the SDRAM controller to anticipate the next read \r
610                                              commands during the CAS latency and stores data in the Read FIFO.\r
611                                              This parameter can be a value of @ref FMC_SDRAM_Read_Burst.         */\r
612 \r
613   uint32_t ReadPipeDelay;               /*!< Define the delay in system clock cycles on read data path.\r
614                                              This parameter can be a value of @ref FMC_SDRAM_Read_Pipe_Delay.    */\r
615 }FMC_SDRAM_InitTypeDef;\r
616 \r
617 /** \r
618   * @brief FMC SDRAM Timing parameters structure definition\r
619   */\r
620 typedef struct\r
621 {\r
622   uint32_t LoadToActiveDelay;            /*!< Defines the delay between a Load Mode Register command and \r
623                                               an active or Refresh command in number of memory clock cycles.\r
624                                               This parameter can be a value between Min_Data = 1 and Max_Data = 16  */\r
625 \r
626   uint32_t ExitSelfRefreshDelay;         /*!< Defines the delay from releasing the self refresh command to \r
627                                               issuing the Activate command in number of memory clock cycles.\r
628                                               This parameter can be a value between Min_Data = 1 and Max_Data = 16  */\r
629 \r
630   uint32_t SelfRefreshTime;              /*!< Defines the minimum Self Refresh period in number of memory clock \r
631                                               cycles.\r
632                                               This parameter can be a value between Min_Data = 1 and Max_Data = 16  */\r
633 \r
634   uint32_t RowCycleDelay;                /*!< Defines the delay between the Refresh command and the Activate command\r
635                                               and the delay between two consecutive Refresh commands in number of \r
636                                               memory clock cycles.\r
637                                               This parameter can be a value between Min_Data = 1 and Max_Data = 16  */\r
638 \r
639   uint32_t WriteRecoveryTime;            /*!< Defines the Write recovery Time in number of memory clock cycles.\r
640                                               This parameter can be a value between Min_Data = 1 and Max_Data = 16  */\r
641 \r
642   uint32_t RPDelay;                      /*!< Defines the delay between a Precharge Command and an other command \r
643                                               in number of memory clock cycles.\r
644                                               This parameter can be a value between Min_Data = 1 and Max_Data = 16  */\r
645 \r
646   uint32_t RCDDelay;                     /*!< Defines the delay between the Activate Command and a Read/Write \r
647                                               command in number of memory clock cycles.\r
648                                               This parameter can be a value between Min_Data = 1 and Max_Data = 16  */ \r
649 }FMC_SDRAM_TimingTypeDef;\r
650 \r
651 /** \r
652   * @brief SDRAM command parameters structure definition\r
653   */\r
654 typedef struct\r
655 {\r
656   uint32_t CommandMode;                  /*!< Defines the command issued to the SDRAM device.\r
657                                               This parameter can be a value of @ref FMC_SDRAM_Command_Mode.          */\r
658 \r
659   uint32_t CommandTarget;                /*!< Defines which device (1 or 2) the command will be issued to.\r
660                                               This parameter can be a value of @ref FMC_SDRAM_Command_Target.        */\r
661 \r
662   uint32_t AutoRefreshNumber;            /*!< Defines the number of consecutive auto refresh command issued\r
663                                               in auto refresh mode.\r
664                                               This parameter can be a value between Min_Data = 1 and Max_Data = 16   */\r
665   uint32_t ModeRegisterDefinition;       /*!< Defines the SDRAM Mode register content                                */\r
666 }FMC_SDRAM_CommandTypeDef;\r
667 /**\r
668   * @}\r
669   */\r
670 \r
671 /* Exported constants --------------------------------------------------------*/\r
672 /** @addtogroup FMC_LL_Exported_Constants FMC Low Layer Exported Constants\r
673   * @{\r
674   */\r
675 \r
676 /** @defgroup FMC_LL_NOR_SRAM_Controller FMC NOR/SRAM Controller \r
677   * @{\r
678   */\r
679 \r
680 /** @defgroup FMC_NORSRAM_Bank FMC NOR/SRAM Bank\r
681   * @{\r
682   */\r
683 #define FMC_NORSRAM_BANK1                       ((uint32_t)0x00000000)\r
684 #define FMC_NORSRAM_BANK2                       ((uint32_t)0x00000002)\r
685 #define FMC_NORSRAM_BANK3                       ((uint32_t)0x00000004)\r
686 #define FMC_NORSRAM_BANK4                       ((uint32_t)0x00000006)\r
687 /**\r
688   * @}\r
689   */\r
690 \r
691 /** @defgroup FMC_Data_Address_Bus_Multiplexing FMC Data Address Bus Multiplexing\r
692   * @{\r
693   */\r
694 #define FMC_DATA_ADDRESS_MUX_DISABLE            ((uint32_t)0x00000000)\r
695 #define FMC_DATA_ADDRESS_MUX_ENABLE             ((uint32_t)0x00000002)\r
696 /**\r
697   * @}\r
698   */\r
699 \r
700 /** @defgroup FMC_Memory_Type FMC Memory Type\r
701   * @{\r
702   */\r
703 #define FMC_MEMORY_TYPE_SRAM                    ((uint32_t)0x00000000)\r
704 #define FMC_MEMORY_TYPE_PSRAM                   ((uint32_t)0x00000004)\r
705 #define FMC_MEMORY_TYPE_NOR                     ((uint32_t)0x00000008)\r
706 /**\r
707   * @}\r
708   */\r
709 \r
710 /** @defgroup FMC_NORSRAM_Data_Width FMC NORSRAM Data Width\r
711   * @{\r
712   */\r
713 #define FMC_NORSRAM_MEM_BUS_WIDTH_8             ((uint32_t)0x00000000)\r
714 #define FMC_NORSRAM_MEM_BUS_WIDTH_16            ((uint32_t)0x00000010)\r
715 #define FMC_NORSRAM_MEM_BUS_WIDTH_32            ((uint32_t)0x00000020)\r
716 /**\r
717   * @}\r
718   */\r
719 \r
720 /** @defgroup FMC_NORSRAM_Flash_Access FMC NOR/SRAM Flash Access\r
721   * @{\r
722   */\r
723 #define FMC_NORSRAM_FLASH_ACCESS_ENABLE         ((uint32_t)0x00000040)\r
724 #define FMC_NORSRAM_FLASH_ACCESS_DISABLE        ((uint32_t)0x00000000)\r
725 /**\r
726   * @}\r
727   */\r
728 \r
729 /** @defgroup FMC_Burst_Access_Mode FMC Burst Access Mode\r
730   * @{\r
731   */\r
732 #define FMC_BURST_ACCESS_MODE_DISABLE           ((uint32_t)0x00000000) \r
733 #define FMC_BURST_ACCESS_MODE_ENABLE            ((uint32_t)0x00000100)\r
734 /**\r
735   * @}\r
736   */\r
737 \r
738 /** @defgroup FMC_Wait_Signal_Polarity FMC Wait Signal Polarity\r
739   * @{\r
740   */\r
741 #define FMC_WAIT_SIGNAL_POLARITY_LOW            ((uint32_t)0x00000000)\r
742 #define FMC_WAIT_SIGNAL_POLARITY_HIGH           ((uint32_t)0x00000200)\r
743 /**\r
744   * @}\r
745   */\r
746 \r
747 /** @defgroup FMC_Wait_Timing FMC Wait Timing\r
748   * @{\r
749   */\r
750 #define FMC_WAIT_TIMING_BEFORE_WS               ((uint32_t)0x00000000)\r
751 #define FMC_WAIT_TIMING_DURING_WS               ((uint32_t)0x00000800) \r
752 /**\r
753   * @}\r
754   */\r
755 \r
756 /** @defgroup FMC_Write_Operation FMC Write Operation\r
757   * @{\r
758   */\r
759 #define FMC_WRITE_OPERATION_DISABLE             ((uint32_t)0x00000000)\r
760 #define FMC_WRITE_OPERATION_ENABLE              ((uint32_t)0x00001000)\r
761 /**\r
762   * @}\r
763   */\r
764 \r
765 /** @defgroup FMC_Wait_Signal FMC Wait Signal\r
766   * @{\r
767   */\r
768 #define FMC_WAIT_SIGNAL_DISABLE                 ((uint32_t)0x00000000)\r
769 #define FMC_WAIT_SIGNAL_ENABLE                  ((uint32_t)0x00002000)\r
770 /**\r
771   * @}\r
772   */\r
773 \r
774 /** @defgroup FMC_Extended_Mode FMC Extended Mode\r
775   * @{\r
776   */\r
777 #define FMC_EXTENDED_MODE_DISABLE               ((uint32_t)0x00000000)\r
778 #define FMC_EXTENDED_MODE_ENABLE                ((uint32_t)0x00004000)\r
779 /**\r
780   * @}\r
781   */\r
782 \r
783 /** @defgroup FMC_AsynchronousWait FMC Asynchronous Wait\r
784   * @{\r
785   */\r
786 #define FMC_ASYNCHRONOUS_WAIT_DISABLE           ((uint32_t)0x00000000)\r
787 #define FMC_ASYNCHRONOUS_WAIT_ENABLE            ((uint32_t)0x00008000)\r
788 /**\r
789   * @}\r
790   */  \r
791 \r
792 /** @defgroup FMC_Page_Size FMC Page Size\r
793   * @{\r
794   */\r
795 #define FMC_PAGE_SIZE_NONE           ((uint32_t)0x00000000)\r
796 #define FMC_PAGE_SIZE_128            ((uint32_t)FMC_BCR1_CPSIZE_0)\r
797 #define FMC_PAGE_SIZE_256            ((uint32_t)FMC_BCR1_CPSIZE_1)\r
798 #define FMC_PAGE_SIZE_1024           ((uint32_t)FMC_BCR1_CPSIZE_2)\r
799 /**\r
800   * @}\r
801   */  \r
802 \r
803 /** @defgroup FMC_Write_Burst FMC Write Burst\r
804   * @{\r
805   */\r
806 #define FMC_WRITE_BURST_DISABLE                 ((uint32_t)0x00000000)\r
807 #define FMC_WRITE_BURST_ENABLE                  ((uint32_t)0x00080000) \r
808 /**\r
809   * @}\r
810   */\r
811   \r
812 /** @defgroup FMC_Continous_Clock FMC Continous Clock\r
813   * @{\r
814   */\r
815 #define FMC_CONTINUOUS_CLOCK_SYNC_ONLY          ((uint32_t)0x00000000)\r
816 #define FMC_CONTINUOUS_CLOCK_SYNC_ASYNC         ((uint32_t)0x00100000)\r
817 /**\r
818   * @}\r
819   */ \r
820 \r
821 /** @defgroup FMC_Write_FIFO FMC Write FIFO \r
822   * @{\r
823   */\r
824 #define FMC_WRITE_FIFO_DISABLE           ((uint32_t)0x00000000)\r
825 #define FMC_WRITE_FIFO_ENABLE            ((uint32_t)FMC_BCR1_WFDIS)\r
826 /**\r
827   * @}\r
828   */\r
829         \r
830 /** @defgroup FMC_Access_Mode FMC Access Mode \r
831   * @{\r
832   */\r
833 #define FMC_ACCESS_MODE_A                        ((uint32_t)0x00000000)\r
834 #define FMC_ACCESS_MODE_B                        ((uint32_t)0x10000000) \r
835 #define FMC_ACCESS_MODE_C                        ((uint32_t)0x20000000)\r
836 #define FMC_ACCESS_MODE_D                        ((uint32_t)0x30000000)\r
837 /**\r
838   * @}\r
839   */\r
840     \r
841 /**\r
842   * @}\r
843   */ \r
844 \r
845 /** @defgroup FMC_LL_NAND_Controller FMC NAND Controller \r
846   * @{\r
847   */\r
848 /** @defgroup FMC_NAND_Bank FMC NAND Bank \r
849   * @{\r
850   */\r
851 #define FMC_NAND_BANK3                          ((uint32_t)0x00000100) \r
852 /**\r
853   * @}\r
854   */\r
855 \r
856 /** @defgroup FMC_Wait_feature FMC Wait feature\r
857   * @{\r
858   */\r
859 #define FMC_NAND_WAIT_FEATURE_DISABLE           ((uint32_t)0x00000000)\r
860 #define FMC_NAND_WAIT_FEATURE_ENABLE            ((uint32_t)0x00000002)\r
861 /**\r
862   * @}\r
863   */\r
864 \r
865 /** @defgroup FMC_PCR_Memory_Type FMC PCR Memory Type \r
866   * @{\r
867   */\r
868 #define FMC_PCR_MEMORY_TYPE_NAND          ((uint32_t)0x00000008)\r
869 /**\r
870   * @}\r
871   */\r
872 \r
873 /** @defgroup FMC_NAND_Data_Width FMC NAND Data Width \r
874   * @{\r
875   */\r
876 #define FMC_NAND_MEM_BUS_WIDTH_8                ((uint32_t)0x00000000)\r
877 #define FMC_NAND_MEM_BUS_WIDTH_16               ((uint32_t)0x00000010)\r
878 /**\r
879   * @}\r
880   */\r
881 \r
882 /** @defgroup FMC_ECC FMC ECC \r
883   * @{\r
884   */\r
885 #define FMC_NAND_ECC_DISABLE                    ((uint32_t)0x00000000)\r
886 #define FMC_NAND_ECC_ENABLE                     ((uint32_t)0x00000040)\r
887 /**\r
888   * @}\r
889   */\r
890 \r
891 /** @defgroup FMC_ECC_Page_Size FMC ECC Page Size \r
892   * @{\r
893   */\r
894 #define FMC_NAND_ECC_PAGE_SIZE_256BYTE          ((uint32_t)0x00000000)\r
895 #define FMC_NAND_ECC_PAGE_SIZE_512BYTE          ((uint32_t)0x00020000)\r
896 #define FMC_NAND_ECC_PAGE_SIZE_1024BYTE         ((uint32_t)0x00040000)\r
897 #define FMC_NAND_ECC_PAGE_SIZE_2048BYTE         ((uint32_t)0x00060000)\r
898 #define FMC_NAND_ECC_PAGE_SIZE_4096BYTE         ((uint32_t)0x00080000)\r
899 #define FMC_NAND_ECC_PAGE_SIZE_8192BYTE         ((uint32_t)0x000A0000)\r
900 /**\r
901   * @}\r
902   */\r
903   \r
904 /**\r
905   * @}\r
906   */ \r
907 \r
908 /** @defgroup FMC_LL_SDRAM_Controller FMC SDRAM Controller \r
909   * @{\r
910   */\r
911 /** @defgroup FMC_SDRAM_Bank FMC SDRAM Bank\r
912   * @{\r
913   */\r
914 #define FMC_SDRAM_BANK1                       ((uint32_t)0x00000000)\r
915 #define FMC_SDRAM_BANK2                       ((uint32_t)0x00000001)\r
916 /**\r
917   * @}\r
918   */\r
919 \r
920 /** @defgroup FMC_SDRAM_Column_Bits_number FMC SDRAM Column Bits number \r
921   * @{\r
922   */\r
923 #define FMC_SDRAM_COLUMN_BITS_NUM_8           ((uint32_t)0x00000000)\r
924 #define FMC_SDRAM_COLUMN_BITS_NUM_9           ((uint32_t)0x00000001)\r
925 #define FMC_SDRAM_COLUMN_BITS_NUM_10          ((uint32_t)0x00000002)\r
926 #define FMC_SDRAM_COLUMN_BITS_NUM_11          ((uint32_t)0x00000003)\r
927 /**\r
928   * @}\r
929   */\r
930 \r
931 /** @defgroup FMC_SDRAM_Row_Bits_number FMC SDRAM Row Bits number\r
932   * @{\r
933   */\r
934 #define FMC_SDRAM_ROW_BITS_NUM_11             ((uint32_t)0x00000000)\r
935 #define FMC_SDRAM_ROW_BITS_NUM_12             ((uint32_t)0x00000004)\r
936 #define FMC_SDRAM_ROW_BITS_NUM_13             ((uint32_t)0x00000008)\r
937 /**\r
938   * @}\r
939   */\r
940 \r
941 /** @defgroup FMC_SDRAM_Memory_Bus_Width FMC SDRAM Memory Bus Width\r
942   * @{\r
943   */\r
944 #define FMC_SDRAM_MEM_BUS_WIDTH_8             ((uint32_t)0x00000000)\r
945 #define FMC_SDRAM_MEM_BUS_WIDTH_16            ((uint32_t)0x00000010)\r
946 #define FMC_SDRAM_MEM_BUS_WIDTH_32            ((uint32_t)0x00000020)\r
947 /**\r
948   * @}\r
949   */\r
950 \r
951 /** @defgroup FMC_SDRAM_Internal_Banks_Number FMC SDRAM Internal Banks Number\r
952   * @{\r
953   */\r
954 #define FMC_SDRAM_INTERN_BANKS_NUM_2          ((uint32_t)0x00000000)\r
955 #define FMC_SDRAM_INTERN_BANKS_NUM_4          ((uint32_t)0x00000040)\r
956 /**\r
957   * @}\r
958   */\r
959 \r
960 /** @defgroup FMC_SDRAM_CAS_Latency FMC SDRAM CAS Latency\r
961   * @{\r
962   */\r
963 #define FMC_SDRAM_CAS_LATENCY_1               ((uint32_t)0x00000080)\r
964 #define FMC_SDRAM_CAS_LATENCY_2               ((uint32_t)0x00000100)\r
965 #define FMC_SDRAM_CAS_LATENCY_3               ((uint32_t)0x00000180)\r
966 /**\r
967   * @}\r
968   */\r
969 \r
970 /** @defgroup FMC_SDRAM_Write_Protection FMC SDRAM Write Protection\r
971   * @{\r
972   */\r
973 #define FMC_SDRAM_WRITE_PROTECTION_DISABLE    ((uint32_t)0x00000000)\r
974 #define FMC_SDRAM_WRITE_PROTECTION_ENABLE     ((uint32_t)0x00000200)\r
975 /**\r
976   * @}\r
977   */\r
978 \r
979 /** @defgroup FMC_SDRAM_Clock_Period FMC SDRAM Clock Period\r
980   * @{\r
981   */\r
982 #define FMC_SDRAM_CLOCK_DISABLE               ((uint32_t)0x00000000)\r
983 #define FMC_SDRAM_CLOCK_PERIOD_2              ((uint32_t)0x00000800)\r
984 #define FMC_SDRAM_CLOCK_PERIOD_3              ((uint32_t)0x00000C00)\r
985 /**\r
986   * @}\r
987   */\r
988 \r
989 /** @defgroup FMC_SDRAM_Read_Burst FMC SDRAM Read Burst\r
990   * @{\r
991   */\r
992 #define FMC_SDRAM_RBURST_DISABLE              ((uint32_t)0x00000000)\r
993 #define FMC_SDRAM_RBURST_ENABLE               ((uint32_t)0x00001000)\r
994 /**\r
995   * @}\r
996   */\r
997   \r
998 /** @defgroup FMC_SDRAM_Read_Pipe_Delay FMC SDRAM Read Pipe Delay\r
999   * @{\r
1000   */\r
1001 #define FMC_SDRAM_RPIPE_DELAY_0               ((uint32_t)0x00000000)\r
1002 #define FMC_SDRAM_RPIPE_DELAY_1               ((uint32_t)0x00002000)\r
1003 #define FMC_SDRAM_RPIPE_DELAY_2               ((uint32_t)0x00004000)\r
1004 /**\r
1005   * @}\r
1006   */\r
1007 \r
1008 /** @defgroup FMC_SDRAM_Command_Mode FMC SDRAM Command Mode\r
1009   * @{\r
1010   */\r
1011 #define FMC_SDRAM_CMD_NORMAL_MODE             ((uint32_t)0x00000000)\r
1012 #define FMC_SDRAM_CMD_CLK_ENABLE              ((uint32_t)0x00000001)\r
1013 #define FMC_SDRAM_CMD_PALL                    ((uint32_t)0x00000002)\r
1014 #define FMC_SDRAM_CMD_AUTOREFRESH_MODE        ((uint32_t)0x00000003)\r
1015 #define FMC_SDRAM_CMD_LOAD_MODE               ((uint32_t)0x00000004)\r
1016 #define FMC_SDRAM_CMD_SELFREFRESH_MODE        ((uint32_t)0x00000005)\r
1017 #define FMC_SDRAM_CMD_POWERDOWN_MODE          ((uint32_t)0x00000006)\r
1018 /**\r
1019   * @}\r
1020   */\r
1021 \r
1022 /** @defgroup FMC_SDRAM_Command_Target FMC SDRAM Command Target\r
1023   * @{\r
1024   */\r
1025 #define FMC_SDRAM_CMD_TARGET_BANK2            FMC_SDCMR_CTB2\r
1026 #define FMC_SDRAM_CMD_TARGET_BANK1            FMC_SDCMR_CTB1\r
1027 #define FMC_SDRAM_CMD_TARGET_BANK1_2          ((uint32_t)0x00000018)\r
1028 /**\r
1029   * @}\r
1030   */\r
1031 \r
1032 /** @defgroup FMC_SDRAM_Mode_Status FMC SDRAM Mode Status \r
1033   * @{\r
1034   */\r
1035 #define FMC_SDRAM_NORMAL_MODE                     ((uint32_t)0x00000000)\r
1036 #define FMC_SDRAM_SELF_REFRESH_MODE               FMC_SDSR_MODES1_0\r
1037 #define FMC_SDRAM_POWER_DOWN_MODE                 FMC_SDSR_MODES1_1\r
1038 /**\r
1039   * @}\r
1040   */\r
1041 \r
1042 /**\r
1043   * @}\r
1044   */ \r
1045 \r
1046 /** @defgroup FMC_LL_Interrupt_definition FMC Low Layer Interrupt definition  \r
1047   * @{\r
1048   */  \r
1049 #define FMC_IT_RISING_EDGE                ((uint32_t)0x00000008)\r
1050 #define FMC_IT_LEVEL                      ((uint32_t)0x00000010)\r
1051 #define FMC_IT_FALLING_EDGE               ((uint32_t)0x00000020)\r
1052 #define FMC_IT_REFRESH_ERROR              ((uint32_t)0x00004000)\r
1053 /**\r
1054   * @}\r
1055   */\r
1056     \r
1057 /** @defgroup FMC_LL_Flag_definition FMC Low Layer Flag definition \r
1058   * @{\r
1059   */ \r
1060 #define FMC_FLAG_RISING_EDGE                    ((uint32_t)0x00000001)\r
1061 #define FMC_FLAG_LEVEL                          ((uint32_t)0x00000002)\r
1062 #define FMC_FLAG_FALLING_EDGE                   ((uint32_t)0x00000004)\r
1063 #define FMC_FLAG_FEMPT                          ((uint32_t)0x00000040)\r
1064 #define FMC_SDRAM_FLAG_REFRESH_IT               FMC_SDSR_RE\r
1065 #define FMC_SDRAM_FLAG_BUSY                     FMC_SDSR_BUSY\r
1066 #define FMC_SDRAM_FLAG_REFRESH_ERROR            FMC_SDRTR_CRE\r
1067 /**\r
1068   * @}\r
1069   */\r
1070 /**\r
1071   * @}\r
1072   */\r
1073 \r
1074 /**\r
1075   * @}\r
1076   */\r
1077 \r
1078 /* Private macro -------------------------------------------------------------*/\r
1079 /** @defgroup FMC_LL_Private_Macros FMC_LL  Private Macros\r
1080   * @{\r
1081   */\r
1082 \r
1083 /** @defgroup FMC_LL_NOR_Macros FMC NOR/SRAM Macros\r
1084  *  @brief macros to handle NOR device enable/disable and read/write operations\r
1085  *  @{\r
1086  */\r
1087  \r
1088 /**\r
1089   * @brief  Enable the NORSRAM device access.\r
1090   * @param  __INSTANCE__: FMC_NORSRAM Instance\r
1091   * @param  __BANK__: FMC_NORSRAM Bank     \r
1092   * @retval None\r
1093   */ \r
1094 #define __FMC_NORSRAM_ENABLE(__INSTANCE__, __BANK__)  ((__INSTANCE__)->BTCR[(__BANK__)] |= FMC_BCR1_MBKEN)\r
1095 \r
1096 /**\r
1097   * @brief  Disable the NORSRAM device access.\r
1098   * @param  __INSTANCE__: FMC_NORSRAM Instance\r
1099   * @param  __BANK__: FMC_NORSRAM Bank   \r
1100   * @retval None\r
1101   */ \r
1102 #define __FMC_NORSRAM_DISABLE(__INSTANCE__, __BANK__) ((__INSTANCE__)->BTCR[(__BANK__)] &= ~FMC_BCR1_MBKEN)  \r
1103 \r
1104 /**\r
1105   * @}\r
1106   */ \r
1107 \r
1108 /** @defgroup FMC_LL_NAND_Macros FMC NAND Macros\r
1109  *  @brief macros to handle NAND device enable/disable\r
1110  *  @{\r
1111  */\r
1112  \r
1113 /**\r
1114   * @brief  Enable the NAND device access.\r
1115   * @param  __INSTANCE__: FMC_NAND Instance    \r
1116   * @retval None\r
1117   */  \r
1118 #define __FMC_NAND_ENABLE(__INSTANCE__)  ((__INSTANCE__)->PCR |= FMC_PCR_PBKEN)\r
1119 \r
1120 /**\r
1121   * @brief  Disable the NAND device access.\r
1122   * @param  __INSTANCE__: FMC_NAND Instance  \r
1123   * @retval None\r
1124   */\r
1125 #define __FMC_NAND_DISABLE(__INSTANCE__) ((__INSTANCE__)->PCR &= ~FMC_PCR_PBKEN)\r
1126 \r
1127 /**\r
1128   * @}\r
1129   */ \r
1130     \r
1131 /** @defgroup FMC_Interrupt FMC Interrupt\r
1132  *  @brief macros to handle FMC interrupts\r
1133  * @{\r
1134  */ \r
1135 \r
1136 /**\r
1137   * @brief  Enable the NAND device interrupt.\r
1138   * @param  __INSTANCE__:  FMC_NAND instance     \r
1139   * @param  __INTERRUPT__: FMC_NAND interrupt \r
1140   *         This parameter can be any combination of the following values:\r
1141   *            @arg FMC_IT_RISING_EDGE: Interrupt rising edge.\r
1142   *            @arg FMC_IT_LEVEL: Interrupt level.\r
1143   *            @arg FMC_IT_FALLING_EDGE: Interrupt falling edge.       \r
1144   * @retval None\r
1145   */  \r
1146 #define __FMC_NAND_ENABLE_IT(__INSTANCE__, __INTERRUPT__)  ((__INSTANCE__)->SR |= (__INTERRUPT__))\r
1147 \r
1148 /**\r
1149   * @brief  Disable the NAND device interrupt.\r
1150   * @param  __INSTANCE__:  FMC_NAND Instance\r
1151   * @param  __INTERRUPT__: FMC_NAND interrupt\r
1152   *         This parameter can be any combination of the following values:\r
1153   *            @arg FMC_IT_RISING_EDGE: Interrupt rising edge.\r
1154   *            @arg FMC_IT_LEVEL: Interrupt level.\r
1155   *            @arg FMC_IT_FALLING_EDGE: Interrupt falling edge.   \r
1156   * @retval None\r
1157   */\r
1158 #define __FMC_NAND_DISABLE_IT(__INSTANCE__, __INTERRUPT__)  ((__INSTANCE__)->SR &= ~(__INTERRUPT__))\r
1159                                                                                                                            \r
1160 /**\r
1161   * @brief  Get flag status of the NAND device.\r
1162   * @param  __INSTANCE__: FMC_NAND Instance\r
1163   * @param  __BANK__:     FMC_NAND Bank     \r
1164   * @param  __FLAG__: FMC_NAND flag\r
1165   *         This parameter can be any combination of the following values:\r
1166   *            @arg FMC_FLAG_RISING_EDGE: Interrupt rising edge flag.\r
1167   *            @arg FMC_FLAG_LEVEL: Interrupt level edge flag.\r
1168   *            @arg FMC_FLAG_FALLING_EDGE: Interrupt falling edge flag.\r
1169   *            @arg FMC_FLAG_FEMPT: FIFO empty flag.   \r
1170   * @retval The state of FLAG (SET or RESET).\r
1171   */\r
1172 #define __FMC_NAND_GET_FLAG(__INSTANCE__, __BANK__, __FLAG__)  (((__INSTANCE__)->SR &(__FLAG__)) == (__FLAG__))\r
1173 \r
1174 /**\r
1175   * @brief  Clear flag status of the NAND device.\r
1176   * @param  __INSTANCE__: FMC_NAND Instance   \r
1177   * @param  __FLAG__: FMC_NAND flag\r
1178   *         This parameter can be any combination of the following values:\r
1179   *            @arg FMC_FLAG_RISING_EDGE: Interrupt rising edge flag.\r
1180   *            @arg FMC_FLAG_LEVEL: Interrupt level edge flag.\r
1181   *            @arg FMC_FLAG_FALLING_EDGE: Interrupt falling edge flag.\r
1182   *            @arg FMC_FLAG_FEMPT: FIFO empty flag.   \r
1183   * @retval None\r
1184   */\r
1185 #define __FMC_NAND_CLEAR_FLAG(__INSTANCE__, __FLAG__)  ((__INSTANCE__)->SR &= ~(__FLAG__))  \r
1186 \r
1187 /**\r
1188   * @brief  Enable the SDRAM device interrupt.\r
1189   * @param  __INSTANCE__: FMC_SDRAM instance  \r
1190   * @param  __INTERRUPT__: FMC_SDRAM interrupt \r
1191   *         This parameter can be any combination of the following values:\r
1192   *            @arg FMC_IT_REFRESH_ERROR: Interrupt refresh error      \r
1193   * @retval None\r
1194   */\r
1195 #define __FMC_SDRAM_ENABLE_IT(__INSTANCE__, __INTERRUPT__)  ((__INSTANCE__)->SDRTR |= (__INTERRUPT__))\r
1196 \r
1197 /**\r
1198   * @brief  Disable the SDRAM device interrupt.\r
1199   * @param  __INSTANCE__: FMC_SDRAM instance  \r
1200   * @param  __INTERRUPT__: FMC_SDRAM interrupt \r
1201   *         This parameter can be any combination of the following values:\r
1202   *            @arg FMC_IT_REFRESH_ERROR: Interrupt refresh error      \r
1203   * @retval None\r
1204   */\r
1205 #define __FMC_SDRAM_DISABLE_IT(__INSTANCE__, __INTERRUPT__)  ((__INSTANCE__)->SDRTR &= ~(__INTERRUPT__))\r
1206 \r
1207 /**\r
1208   * @brief  Get flag status of the SDRAM device.\r
1209   * @param  __INSTANCE__: FMC_SDRAM instance  \r
1210   * @param  __FLAG__: FMC_SDRAM flag\r
1211   *         This parameter can be any combination of the following values:\r
1212   *            @arg FMC_SDRAM_FLAG_REFRESH_IT: Interrupt refresh error.\r
1213   *            @arg FMC_SDRAM_FLAG_BUSY: SDRAM busy flag.\r
1214   *            @arg FMC_SDRAM_FLAG_REFRESH_ERROR: Refresh error flag.\r
1215   * @retval The state of FLAG (SET or RESET).\r
1216   */\r
1217 #define __FMC_SDRAM_GET_FLAG(__INSTANCE__, __FLAG__)  (((__INSTANCE__)->SDSR &(__FLAG__)) == (__FLAG__))\r
1218 \r
1219 /**\r
1220   * @brief  Clear flag status of the SDRAM device.\r
1221   * @param  __INSTANCE__: FMC_SDRAM instance  \r
1222   * @param  __FLAG__: FMC_SDRAM flag\r
1223   *         This parameter can be any combination of the following values:\r
1224   *           @arg FMC_SDRAM_FLAG_REFRESH_ERROR\r
1225   * @retval None\r
1226   */\r
1227 #define __FMC_SDRAM_CLEAR_FLAG(__INSTANCE__, __FLAG__)  ((__INSTANCE__)->SDRTR |= (__FLAG__))\r
1228 /**\r
1229   * @}\r
1230   */\r
1231 \r
1232 /**\r
1233   * @}\r
1234   */ \r
1235 \r
1236 /* Private functions ---------------------------------------------------------*/\r
1237 /** @defgroup FMC_LL_Private_Functions FMC LL Private Functions\r
1238   *  @{\r
1239   */\r
1240 \r
1241 /** @defgroup FMC_LL_NORSRAM  NOR SRAM\r
1242   *  @{\r
1243   */\r
1244 /** @defgroup FMC_LL_NORSRAM_Private_Functions_Group1 NOR SRAM Initialization/de-initialization functions \r
1245   *  @{\r
1246   */\r
1247 HAL_StatusTypeDef  FMC_NORSRAM_Init(FMC_NORSRAM_TypeDef *Device, FMC_NORSRAM_InitTypeDef *Init);\r
1248 HAL_StatusTypeDef  FMC_NORSRAM_Timing_Init(FMC_NORSRAM_TypeDef *Device, FMC_NORSRAM_TimingTypeDef *Timing, uint32_t Bank);\r
1249 HAL_StatusTypeDef  FMC_NORSRAM_Extended_Timing_Init(FMC_NORSRAM_EXTENDED_TypeDef *Device, FMC_NORSRAM_TimingTypeDef *Timing, uint32_t Bank, uint32_t ExtendedMode);\r
1250 HAL_StatusTypeDef  FMC_NORSRAM_DeInit(FMC_NORSRAM_TypeDef *Device, FMC_NORSRAM_EXTENDED_TypeDef *ExDevice, uint32_t Bank);\r
1251 /**\r
1252   * @}\r
1253   */ \r
1254 \r
1255 /** @defgroup FMC_LL_NORSRAM_Private_Functions_Group2 NOR SRAM Control functions \r
1256   *  @{\r
1257   */\r
1258 HAL_StatusTypeDef  FMC_NORSRAM_WriteOperation_Enable(FMC_NORSRAM_TypeDef *Device, uint32_t Bank);\r
1259 HAL_StatusTypeDef  FMC_NORSRAM_WriteOperation_Disable(FMC_NORSRAM_TypeDef *Device, uint32_t Bank);\r
1260 /**\r
1261   * @}\r
1262   */\r
1263 /**\r
1264   * @}\r
1265   */\r
1266 \r
1267 /** @defgroup FMC_LL_NAND NAND\r
1268   *  @{\r
1269   */\r
1270 /** @defgroup FMC_LL_NAND_Private_Functions_Group1 NAND Initialization/de-initialization functions \r
1271   *  @{\r
1272   */\r
1273 HAL_StatusTypeDef  FMC_NAND_Init(FMC_NAND_TypeDef *Device, FMC_NAND_InitTypeDef *Init);\r
1274 HAL_StatusTypeDef  FMC_NAND_CommonSpace_Timing_Init(FMC_NAND_TypeDef *Device, FMC_NAND_PCC_TimingTypeDef *Timing, uint32_t Bank);\r
1275 HAL_StatusTypeDef  FMC_NAND_AttributeSpace_Timing_Init(FMC_NAND_TypeDef *Device, FMC_NAND_PCC_TimingTypeDef *Timing, uint32_t Bank);\r
1276 HAL_StatusTypeDef  FMC_NAND_DeInit(FMC_NAND_TypeDef *Device, uint32_t Bank);\r
1277 /**\r
1278   * @}\r
1279   */\r
1280 \r
1281 /** @defgroup FMC_LL_NAND_Private_Functions_Group2 NAND Control functions \r
1282   *  @{\r
1283   */\r
1284 HAL_StatusTypeDef  FMC_NAND_ECC_Enable(FMC_NAND_TypeDef *Device, uint32_t Bank);\r
1285 HAL_StatusTypeDef  FMC_NAND_ECC_Disable(FMC_NAND_TypeDef *Device, uint32_t Bank);\r
1286 HAL_StatusTypeDef  FMC_NAND_GetECC(FMC_NAND_TypeDef *Device, uint32_t *ECCval, uint32_t Bank, uint32_t Timeout);\r
1287 /**\r
1288   * @}\r
1289   */\r
1290 \r
1291 /** @defgroup FMC_LL_SDRAM SDRAM\r
1292   *  @{\r
1293   */\r
1294 /** @defgroup FMC_LL_SDRAM_Private_Functions_Group1 SDRAM Initialization/de-initialization functions \r
1295   *  @{\r
1296   */\r
1297 HAL_StatusTypeDef  FMC_SDRAM_Init(FMC_SDRAM_TypeDef *Device, FMC_SDRAM_InitTypeDef *Init);\r
1298 HAL_StatusTypeDef  FMC_SDRAM_Timing_Init(FMC_SDRAM_TypeDef *Device, FMC_SDRAM_TimingTypeDef *Timing, uint32_t Bank);\r
1299 HAL_StatusTypeDef  FMC_SDRAM_DeInit(FMC_SDRAM_TypeDef *Device, uint32_t Bank);\r
1300 \r
1301 /**\r
1302   * @}\r
1303   */\r
1304 \r
1305 /** @defgroup FMC_LL_SDRAM_Private_Functions_Group2 SDRAM Control functions \r
1306   *  @{\r
1307   */\r
1308 HAL_StatusTypeDef  FMC_SDRAM_WriteProtection_Enable(FMC_SDRAM_TypeDef *Device, uint32_t Bank);\r
1309 HAL_StatusTypeDef  FMC_SDRAM_WriteProtection_Disable(FMC_SDRAM_TypeDef *Device, uint32_t Bank);\r
1310 HAL_StatusTypeDef  FMC_SDRAM_SendCommand(FMC_SDRAM_TypeDef *Device, FMC_SDRAM_CommandTypeDef *Command, uint32_t Timeout);\r
1311 HAL_StatusTypeDef  FMC_SDRAM_ProgramRefreshRate(FMC_SDRAM_TypeDef *Device, uint32_t RefreshRate);\r
1312 HAL_StatusTypeDef  FMC_SDRAM_SetAutoRefreshNumber(FMC_SDRAM_TypeDef *Device, uint32_t AutoRefreshNumber);\r
1313 uint32_t           FMC_SDRAM_GetModeStatus(FMC_SDRAM_TypeDef *Device, uint32_t Bank);\r
1314 /**\r
1315   * @}\r
1316   */\r
1317 \r
1318 /**\r
1319   * @}\r
1320   */\r
1321 \r
1322 /**\r
1323   * @}\r
1324   */\r
1325 \r
1326 #endif /* STM32F756xx || STM32F746xx */\r
1327 /**\r
1328   * @}\r
1329   */\r
1330 \r
1331 /**\r
1332   * @}\r
1333   */\r
1334 #ifdef __cplusplus\r
1335 }\r
1336 #endif\r
1337 \r
1338 #endif /* __STM32F7xx_LL_FMC_H */\r
1339 \r
1340 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/\r