annotate Common/Drivers/STM32F4xx_HAL_DRIVER_v120/Inc/stm32f4xx_ll_fmc.h @ 66:90ceb2402d94

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