annotate Common/Drivers/STM32F4xx_HAL_DRIVER_v120/Inc/stm32f4xx_ll_fsmc.h @ 55:a7683f9765da

Italian activated (needs some fine tuning), special characters (?,?,?,?,? and others) currently not working...
author heinrichsweikamp
date Tue, 07 Aug 2018 00:24:05 +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_fsmc.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 FSMC 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_FSMC_H
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
40 #define __STM32F4xx_LL_FSMC_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 FSMC_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
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
57 #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
58 /* Private types -------------------------------------------------------------*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
59 /** @defgroup FSMC_LL_Private_Types FSMC Private Types
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 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
64 * @brief FSMC NORSRAM Configuration Structure definition
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
65 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
66 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
67 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
68 uint32_t NSBank; /*!< Specifies the NORSRAM memory device that will be used.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
69 This parameter can be a value of @ref FSMC_NORSRAM_Bank */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
70
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
71 uint32_t DataAddressMux; /*!< Specifies whether the address and data values are
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
72 multiplexed on the data bus or not.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
73 This parameter can be a value of @ref FSMC_Data_Address_Bus_Multiplexing */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
74
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
75 uint32_t MemoryType; /*!< Specifies the type of external memory attached to
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
76 the corresponding memory device.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
77 This parameter can be a value of @ref FSMC_Memory_Type */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
78
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
79 uint32_t MemoryDataWidth; /*!< Specifies the external memory device width.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
80 This parameter can be a value of @ref FSMC_NORSRAM_Data_Width */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
81
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
82 uint32_t BurstAccessMode; /*!< Enables or disables the burst access mode for Flash memory,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
83 valid only with synchronous burst Flash memories.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
84 This parameter can be a value of @ref FSMC_Burst_Access_Mode */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
85
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
86 uint32_t WaitSignalPolarity; /*!< Specifies the wait signal polarity, valid only when accessing
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
87 the Flash memory in burst mode.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
88 This parameter can be a value of @ref FSMC_Wait_Signal_Polarity */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
89
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
90 uint32_t WrapMode; /*!< Enables or disables the Wrapped burst access mode for Flash
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
91 memory, valid only when accessing Flash memories in burst mode.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
92 This parameter can be a value of @ref FSMC_Wrap_Mode */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
93
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
94 uint32_t WaitSignalActive; /*!< Specifies if the wait signal is asserted by the memory one
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
95 clock cycle before the wait state or during the wait state,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
96 valid only when accessing memories in burst mode.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
97 This parameter can be a value of @ref FSMC_Wait_Timing */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
98
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
99 uint32_t WriteOperation; /*!< Enables or disables the write operation in the selected device by the FSMC.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
100 This parameter can be a value of @ref FSMC_Write_Operation */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
101
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
102 uint32_t WaitSignal; /*!< Enables or disables the wait state insertion via wait
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
103 signal, valid for Flash memory access in burst mode.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
104 This parameter can be a value of @ref FSMC_Wait_Signal */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
105
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
106 uint32_t ExtendedMode; /*!< Enables or disables the extended mode.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
107 This parameter can be a value of @ref FSMC_Extended_Mode */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
108
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
109 uint32_t AsynchronousWait; /*!< Enables or disables wait signal during asynchronous transfers,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
110 valid only with asynchronous Flash memories.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
111 This parameter can be a value of @ref FSMC_AsynchronousWait */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
112
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
113 uint32_t WriteBurst; /*!< Enables or disables the write burst operation.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
114 This parameter can be a value of @ref FSMC_Write_Burst */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
115
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
116 }FSMC_NORSRAM_InitTypeDef;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
117
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
118 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
119 * @brief FSMC NORSRAM Timing parameters structure definition
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
120 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
121 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
122 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
123 uint32_t AddressSetupTime; /*!< Defines the number of HCLK cycles to configure
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
124 the duration of the address setup time.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
125 This parameter can be a value between Min_Data = 0 and Max_Data = 15.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
126 @note This parameter is not used with synchronous NOR Flash memories. */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
127
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
128 uint32_t AddressHoldTime; /*!< Defines the number of HCLK cycles to configure
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
129 the duration of the address hold time.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
130 This parameter can be a value between Min_Data = 1 and Max_Data = 15.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
131 @note This parameter is not used with synchronous NOR Flash memories. */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
132
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
133 uint32_t DataSetupTime; /*!< Defines the number of HCLK cycles to configure
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
134 the duration of the data setup time.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
135 This parameter can be a value between Min_Data = 1 and Max_Data = 255.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
136 @note This parameter is used for SRAMs, ROMs and asynchronous multiplexed
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
137 NOR Flash memories. */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
138
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
139 uint32_t BusTurnAroundDuration; /*!< Defines the number of HCLK cycles to configure
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
140 the duration of the bus turnaround.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
141 This parameter can be a value between Min_Data = 0 and Max_Data = 15.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
142 @note This parameter is only used for multiplexed NOR Flash memories. */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
143
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
144 uint32_t CLKDivision; /*!< Defines the period of CLK clock output signal, expressed in number of
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
145 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
146 @note This parameter is not used for asynchronous NOR Flash, SRAM or ROM
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
147 accesses. */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
148
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
149 uint32_t DataLatency; /*!< Defines the number of memory clock cycles to issue
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
150 to the memory before getting the first data.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
151 The parameter value depends on the memory type as shown below:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
152 - It must be set to 0 in case of a CRAM
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
153 - It is don't care in asynchronous NOR, SRAM or ROM accesses
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
154 - 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
155 with synchronous burst mode enable */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
156
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
157 uint32_t AccessMode; /*!< Specifies the asynchronous access mode.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
158 This parameter can be a value of @ref FSMC_Access_Mode */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
159
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
160 }FSMC_NORSRAM_TimingTypeDef;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
161
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
162 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
163 * @brief FSMC NAND Configuration Structure definition
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
164 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
165 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
166 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
167 uint32_t NandBank; /*!< Specifies the NAND memory device that will be used.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
168 This parameter can be a value of @ref FSMC_NAND_Bank */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
169
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
170 uint32_t Waitfeature; /*!< Enables or disables the Wait feature for the NAND Memory device.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
171 This parameter can be any value of @ref FSMC_Wait_feature */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
172
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
173 uint32_t MemoryDataWidth; /*!< Specifies the external memory device width.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
174 This parameter can be any value of @ref FSMC_NAND_Data_Width */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
175
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
176 uint32_t EccComputation; /*!< Enables or disables the ECC computation.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
177 This parameter can be any value of @ref FSMC_ECC */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
178
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
179 uint32_t ECCPageSize; /*!< Defines the page size for the extended ECC.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
180 This parameter can be any value of @ref FSMC_ECC_Page_Size */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
181
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
182 uint32_t TCLRSetupTime; /*!< Defines the number of HCLK cycles to configure the
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
183 delay between CLE low and RE low.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
184 This parameter can be a value between Min_Data = 0 and Max_Data = 255 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
185
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
186 uint32_t TARSetupTime; /*!< Defines the number of HCLK cycles to configure the
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
187 delay between ALE low and RE low.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
188 This parameter can be a number between Min_Data = 0 and Max_Data = 255 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
189
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
190 }FSMC_NAND_InitTypeDef;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
191
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
192 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
193 * @brief FSMC NAND/PCCARD Timing parameters structure definition
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
194 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
195 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
196 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
197 uint32_t SetupTime; /*!< Defines the number of HCLK cycles to setup address before
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
198 the command assertion for NAND-Flash read or write access
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
199 to common/Attribute or I/O memory space (depending on
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
200 the memory space timing to be configured).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
201 This parameter can be a value between Min_Data = 0 and Max_Data = 255 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
202
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
203 uint32_t WaitSetupTime; /*!< Defines the minimum number of HCLK cycles to assert the
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
204 command for NAND-Flash read or write access to
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
205 common/Attribute or I/O memory space (depending on the
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
206 memory space timing to be configured).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
207 This parameter can be a number between Min_Data = 0 and Max_Data = 255 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
208
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
209 uint32_t HoldSetupTime; /*!< Defines the number of HCLK clock cycles to hold address
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
210 (and data for write access) after the command de-assertion
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
211 for NAND-Flash read or write access to common/Attribute
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
212 or I/O memory space (depending on the memory space timing
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
213 to be configured).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
214 This parameter can be a number between Min_Data = 0 and Max_Data = 255 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
215
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
216 uint32_t HiZSetupTime; /*!< Defines the number of HCLK clock cycles during which the
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
217 data bus is kept in HiZ after the start of a NAND-Flash
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
218 write access to common/Attribute or I/O memory space (depending
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
219 on the memory space timing to be configured).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
220 This parameter can be a number between Min_Data = 0 and Max_Data = 255 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
221
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
222 }FSMC_NAND_PCC_TimingTypeDef;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
223
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
224 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
225 * @brief FSMC NAND Configuration Structure definition
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
226 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
227 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
228 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
229 uint32_t Waitfeature; /*!< Enables or disables the Wait feature for the PCCARD Memory device.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
230 This parameter can be any value of @ref FSMC_Wait_feature */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
231
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
232 uint32_t TCLRSetupTime; /*!< Defines the number of HCLK cycles to configure the
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
233 delay between CLE low and RE low.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
234 This parameter can be a value between Min_Data = 0 and Max_Data = 255 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
235
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
236 uint32_t TARSetupTime; /*!< Defines the number of HCLK cycles to configure the
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
237 delay between ALE low and RE low.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
238 This parameter can be a number between Min_Data = 0 and Max_Data = 255 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
239
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
240 }FSMC_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 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
244
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
245 /* Private constants ---------------------------------------------------------*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
246 /** @defgroup FSMC_LL_Private_Constants FSMC Private Constants
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
247 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
248 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
249
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
250 /** @defgroup FSMC_LL_NOR_SRAM_Controller FSMC NOR/SRAM Controller
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
251 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
252 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
253 /** @defgroup FSMC_NORSRAM_Bank FSMC NOR/SRAM Bank
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
254 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
255 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
256 #define FSMC_NORSRAM_BANK1 ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
257 #define FSMC_NORSRAM_BANK2 ((uint32_t)0x00000002)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
258 #define FSMC_NORSRAM_BANK3 ((uint32_t)0x00000004)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
259 #define FSMC_NORSRAM_BANK4 ((uint32_t)0x00000006)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
260 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
261 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
262 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
263
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
264 /** @defgroup FSMC_Data_Address_Bus_Multiplexing FSMC Data Address Bus Multiplexing
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
265 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
266 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
267 #define FSMC_DATA_ADDRESS_MUX_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
268 #define FSMC_DATA_ADDRESS_MUX_ENABLE ((uint32_t)0x00000002)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
269 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
270 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
271 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
272
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
273 /** @defgroup FSMC_Memory_Type FSMC Memory Type
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
274 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
275 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
276 #define FSMC_MEMORY_TYPE_SRAM ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
277 #define FSMC_MEMORY_TYPE_PSRAM ((uint32_t)0x00000004)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
278 #define FSMC_MEMORY_TYPE_NOR ((uint32_t)0x00000008)
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 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
282
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
283 /** @defgroup FSMC_NORSRAM_Data_Width FSMC NOR/SRAM Data Width
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
284 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
285 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
286 #define FSMC_NORSRAM_MEM_BUS_WIDTH_8 ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
287 #define FSMC_NORSRAM_MEM_BUS_WIDTH_16 ((uint32_t)0x00000010)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
288 #define FSMC_NORSRAM_MEM_BUS_WIDTH_32 ((uint32_t)0x00000020)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
289 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
290 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
291 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
292
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
293 /** @defgroup FSMC_NORSRAM_Flash_Access FSMC NOR/SRAM Flash Access
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
294 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
295 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
296 #define FSMC_NORSRAM_FLASH_ACCESS_ENABLE ((uint32_t)0x00000040)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
297 #define FSMC_NORSRAM_FLASH_ACCESS_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
298 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
299 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
300 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
301
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
302 /** @defgroup FSMC_Burst_Access_Mode FSMC Burst Access Mode
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
303 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
304 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
305 #define FSMC_BURST_ACCESS_MODE_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
306 #define FSMC_BURST_ACCESS_MODE_ENABLE ((uint32_t)0x00000100)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
307 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
308 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
309 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
310
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
311 /** @defgroup FSMC_Wait_Signal_Polarity FSMC Wait Signal Polarity
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
312 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
313 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
314 #define FSMC_WAIT_SIGNAL_POLARITY_LOW ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
315 #define FSMC_WAIT_SIGNAL_POLARITY_HIGH ((uint32_t)0x00000200)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
316 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
317 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
318 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
319
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
320 /** @defgroup FSMC_Wrap_Mode FSMC Wrap Mode
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
321 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
322 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
323 #define FSMC_WRAP_MODE_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
324 #define FSMC_WRAP_MODE_ENABLE ((uint32_t)0x00000400)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
325 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
326 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
327 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
328
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
329 /** @defgroup FSMC_Wait_Timing FSMC Wait Timing
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 #define FSMC_WAIT_TIMING_BEFORE_WS ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
333 #define FSMC_WAIT_TIMING_DURING_WS ((uint32_t)0x00000800)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
334 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
335 * @}
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 /** @defgroup FSMC_Write_Operation FSMC Write Operation
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
339 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
340 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
341 #define FSMC_WRITE_OPERATION_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
342 #define FSMC_WRITE_OPERATION_ENABLE ((uint32_t)0x00001000)
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 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
346
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
347 /** @defgroup FSMC_Wait_Signal FSMC Wait Signal
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
348 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
349 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
350 #define FSMC_WAIT_SIGNAL_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
351 #define FSMC_WAIT_SIGNAL_ENABLE ((uint32_t)0x00002000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
352 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
353 * @}
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 /** @defgroup FSMC_Extended_Mode FSMC Extended Mode
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
357 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
358 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
359 #define FSMC_EXTENDED_MODE_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
360 #define FSMC_EXTENDED_MODE_ENABLE ((uint32_t)0x00004000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
361 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
362 * @}
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 /** @defgroup FSMC_AsynchronousWait FSMC Asynchronous Wait
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
366 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
367 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
368 #define FSMC_ASYNCHRONOUS_WAIT_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
369 #define FSMC_ASYNCHRONOUS_WAIT_ENABLE ((uint32_t)0x00008000)
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 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
373
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
374 /** @defgroup FSMC_Write_Burst FSMC Write Burst
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
375 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
376 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
377 #define FSMC_WRITE_BURST_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
378 #define FSMC_WRITE_BURST_ENABLE ((uint32_t)0x00080000)
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
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
383 /** @defgroup FSMC_Continous_Clock FSMC Continous Clock
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
384 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
385 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
386 #define FSMC_CONTINUOUS_CLOCK_SYNC_ONLY ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
387 #define FSMC_CONTINUOUS_CLOCK_SYNC_ASYNC ((uint32_t)0x00100000)
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
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
392 /** @defgroup FSMC_Access_Mode FSMC Access Mode
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
393 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
394 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
395 #define FSMC_ACCESS_MODE_A ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
396 #define FSMC_ACCESS_MODE_B ((uint32_t)0x10000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
397 #define FSMC_ACCESS_MODE_C ((uint32_t)0x20000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
398 #define FSMC_ACCESS_MODE_D ((uint32_t)0x30000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
399 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
400 * @}
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 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
404 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
405
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
406 /** @defgroup FSMC_LL_NAND_Controller FSMC NAND and PCCARD Controller
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 FSMC_NAND_Bank FSMC NAND Bank
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 FSMC_NAND_BANK2 ((uint32_t)0x00000010)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
413 #define FSMC_NAND_BANK3 ((uint32_t)0x00000100)
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 FSMC_Wait_feature FSMC Wait feature
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 FSMC_NAND_PCC_WAIT_FEATURE_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
422 #define FSMC_NAND_PCC_WAIT_FEATURE_ENABLE ((uint32_t)0x00000002)
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 FSMC_PCR_Memory_Type FSMC PCR Memory Type
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 FSMC_PCR_MEMORY_TYPE_PCCARD ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
431 #define FSMC_PCR_MEMORY_TYPE_NAND ((uint32_t)0x00000008)
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 FSMC_NAND_Data_Width FSMC NAND Data Width
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 FSMC_NAND_PCC_MEM_BUS_WIDTH_8 ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
440 #define FSMC_NAND_PCC_MEM_BUS_WIDTH_16 ((uint32_t)0x00000010)
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 FSMC_ECC FSMC ECC
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 FSMC_NAND_ECC_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
449 #define FSMC_NAND_ECC_ENABLE ((uint32_t)0x00000040)
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 FSMC_ECC_Page_Size FSMC ECC Page Size
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 FSMC_NAND_ECC_PAGE_SIZE_256BYTE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
458 #define FSMC_NAND_ECC_PAGE_SIZE_512BYTE ((uint32_t)0x00020000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
459 #define FSMC_NAND_ECC_PAGE_SIZE_1024BYTE ((uint32_t)0x00040000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
460 #define FSMC_NAND_ECC_PAGE_SIZE_2048BYTE ((uint32_t)0x00060000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
461 #define FSMC_NAND_ECC_PAGE_SIZE_4096BYTE ((uint32_t)0x00080000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
462 #define FSMC_NAND_ECC_PAGE_SIZE_8192BYTE ((uint32_t)0x000A0000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
463 /**
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 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
467 * @}
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 /** @defgroup FSMC_LL_Interrupt_definition FSMC Interrupt definition
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
471 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
472 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
473 #define FSMC_IT_RISING_EDGE ((uint32_t)0x00000008)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
474 #define FSMC_IT_LEVEL ((uint32_t)0x00000010)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
475 #define FSMC_IT_FALLING_EDGE ((uint32_t)0x00000020)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
476 #define FSMC_IT_REFRESH_ERROR ((uint32_t)0x00004000)
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 FSMC_LL_Flag_definition FSMC Flag definition
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 FSMC_FLAG_RISING_EDGE ((uint32_t)0x00000001)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
485 #define FSMC_FLAG_LEVEL ((uint32_t)0x00000002)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
486 #define FSMC_FLAG_FALLING_EDGE ((uint32_t)0x00000004)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
487 #define FSMC_FLAG_FEMPT ((uint32_t)0x00000040)
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 /** @defgroup FSMC_LL_Alias_definition FSMC Alias definition
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 #define FSMC_NORSRAM_TypeDef FSMC_Bank1_TypeDef
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
496 #define FSMC_NORSRAM_EXTENDED_TypeDef FSMC_Bank1E_TypeDef
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
497 #define FSMC_NAND_TypeDef FSMC_Bank2_3_TypeDef
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
498 #define FSMC_PCCARD_TypeDef FSMC_Bank4_TypeDef
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
499
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
500 #define FSMC_NORSRAM_DEVICE FSMC_Bank1
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
501 #define FSMC_NORSRAM_EXTENDED_DEVICE FSMC_Bank1E
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
502 #define FSMC_NAND_DEVICE FSMC_Bank2_3
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
503 #define FSMC_PCCARD_DEVICE FSMC_Bank4
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
504
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
505 #define FMC_NORSRAM_TypeDef FSMC_NORSRAM_TypeDef
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
506 #define FMC_NORSRAM_EXTENDED_TypeDef FSMC_NORSRAM_EXTENDED_TypeDef
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
507 #define FMC_NORSRAM_InitTypeDef FSMC_NORSRAM_InitTypeDef
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
508 #define FMC_NORSRAM_TimingTypeDef FSMC_NORSRAM_TimingTypeDef
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
509
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
510 #define FMC_NORSRAM_Init FSMC_NORSRAM_Init
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
511 #define FMC_NORSRAM_Timing_Init FSMC_NORSRAM_Timing_Init
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
512 #define FMC_NORSRAM_Extended_Timing_Init FSMC_NORSRAM_Extended_Timing_Init
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
513 #define FMC_NORSRAM_DeInit FSMC_NORSRAM_DeInit
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
514 #define FMC_NORSRAM_WriteOperation_Enable FSMC_NORSRAM_WriteOperation_Enable
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
515 #define FMC_NORSRAM_WriteOperation_Disable FSMC_NORSRAM_WriteOperation_Disable
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
516
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
517 #define __FMC_NORSRAM_ENABLE __FSMC_NORSRAM_ENABLE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
518 #define __FMC_NORSRAM_DISABLE __FSMC_NORSRAM_DISABLE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
519
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
520 #define FMC_NAND_InitTypeDef FSMC_NAND_InitTypeDef
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
521 #define FMC_PCCARD_InitTypeDef FSMC_PCCARD_InitTypeDef
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
522 #define FMC_NAND_PCC_TimingTypeDef FSMC_NAND_PCC_TimingTypeDef
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
523
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
524 #define FMC_NAND_Init FSMC_NAND_Init
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
525 #define FMC_NAND_CommonSpace_Timing_Init FSMC_NAND_CommonSpace_Timing_Init
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
526 #define FMC_NAND_AttributeSpace_Timing_Init FSMC_NAND_AttributeSpace_Timing_Init
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
527 #define FMC_NAND_DeInit FSMC_NAND_DeInit
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
528 #define FMC_NAND_ECC_Enable FSMC_NAND_ECC_Enable
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
529 #define FMC_NAND_ECC_Disable FSMC_NAND_ECC_Disable
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
530 #define FMC_NAND_GetECC FSMC_NAND_GetECC
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
531 #define FMC_PCCARD_Init FSMC_PCCARD_Init
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
532 #define FMC_PCCARD_CommonSpace_Timing_Init FSMC_PCCARD_CommonSpace_Timing_Init
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
533 #define FMC_PCCARD_AttributeSpace_Timing_Init FSMC_PCCARD_AttributeSpace_Timing_Init
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
534 #define FMC_PCCARD_IOSpace_Timing_Init FSMC_PCCARD_IOSpace_Timing_Init
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
535 #define FMC_PCCARD_DeInit FSMC_PCCARD_DeInit
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
536
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
537 #define __FMC_NAND_ENABLE __FSMC_NAND_ENABLE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
538 #define __FMC_NAND_DISABLE __FSMC_NAND_DISABLE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
539 #define __FMC_PCCARD_ENABLE __FSMC_PCCARD_ENABLE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
540 #define __FMC_PCCARD_DISABLE __FSMC_PCCARD_DISABLE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
541 #define __FMC_NAND_ENABLE_IT __FSMC_NAND_ENABLE_IT
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
542 #define __FMC_NAND_DISABLE_IT __FSMC_NAND_DISABLE_IT
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
543 #define __FMC_NAND_GET_FLAG __FSMC_NAND_GET_FLAG
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
544 #define __FMC_NAND_CLEAR_FLAG __FSMC_NAND_CLEAR_FLAG
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
545 #define __FMC_PCCARD_ENABLE_IT __FSMC_PCCARD_ENABLE_IT
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
546 #define __FMC_PCCARD_DISABLE_IT __FSMC_PCCARD_DISABLE_IT
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
547 #define __FMC_PCCARD_GET_FLAG __FSMC_PCCARD_GET_FLAG
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
548 #define __FMC_PCCARD_CLEAR_FLAG __FSMC_PCCARD_CLEAR_FLAG
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
549
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
550 #define FMC_NORSRAM_TypeDef FSMC_NORSRAM_TypeDef
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
551 #define FMC_NORSRAM_EXTENDED_TypeDef FSMC_NORSRAM_EXTENDED_TypeDef
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
552 #define FMC_NAND_TypeDef FSMC_NAND_TypeDef
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
553 #define FMC_PCCARD_TypeDef FSMC_PCCARD_TypeDef
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
554
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
555 #define FMC_NORSRAM_DEVICE FSMC_NORSRAM_DEVICE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
556 #define FMC_NORSRAM_EXTENDED_DEVICE FSMC_NORSRAM_EXTENDED_DEVICE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
557 #define FMC_NAND_DEVICE FSMC_NAND_DEVICE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
558 #define FMC_PCCARD_DEVICE FSMC_PCCARD_DEVICE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
559
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
560 #define FMC_NAND_BANK2 FSMC_NAND_BANK2
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
561
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
562 #define FMC_NORSRAM_BANK1 FSMC_NORSRAM_BANK1
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
563 #define FMC_NORSRAM_BANK2 FSMC_NORSRAM_BANK2
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
564 #define FMC_NORSRAM_BANK3 FSMC_NORSRAM_BANK3
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
565
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
566 #define FMC_IT_RISING_EDGE FSMC_IT_RISING_EDGE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
567 #define FMC_IT_LEVEL FSMC_IT_LEVEL
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
568 #define FMC_IT_FALLING_EDGE FSMC_IT_FALLING_EDGE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
569 #define FMC_IT_REFRESH_ERROR FSMC_IT_REFRESH_ERROR
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
570
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
571 #define FMC_FLAG_RISING_EDGE FSMC_FLAG_RISING_EDGE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
572 #define FMC_FLAG_LEVEL FSMC_FLAG_LEVEL
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
573 #define FMC_FLAG_FALLING_EDGE FSMC_FLAG_FALLING_EDGE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
574 #define FMC_FLAG_FEMPT FSMC_FLAG_FEMPT
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
575 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
576 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
577 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
578
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
579 /**
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 /* Private macro -------------------------------------------------------------*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
584 /** @defgroup FSMC_LL_Private_Macros FSMC Private Macros
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
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
588 /** @defgroup FSMC_LL_NOR_Macros FSMC NOR/SRAM Exported Macros
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
589 * @brief macros to handle NOR device enable/disable and read/write operations
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 * @brief Enable the NORSRAM device access.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
594 * @param __INSTANCE__: FSMC_NORSRAM Instance
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
595 * @param __BANK__: FSMC_NORSRAM Bank
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
596 * @retval none
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
597 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
598 #define __FSMC_NORSRAM_ENABLE(__INSTANCE__, __BANK__) ((__INSTANCE__)->BTCR[(__BANK__)] |= FSMC_BCR1_MBKEN)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
599
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
600 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
601 * @brief Disable the NORSRAM device access.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
602 * @param __INSTANCE__: FSMC_NORSRAM Instance
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
603 * @param __BANK__: FSMC_NORSRAM Bank
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
604 * @retval none
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
605 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
606 #define __FSMC_NORSRAM_DISABLE(__INSTANCE__, __BANK__) ((__INSTANCE__)->BTCR[(__BANK__)] &= ~FSMC_BCR1_MBKEN)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
607 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
608 * @}
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 /** @defgroup FSMC_LL_NAND_Macros FSMC NAND Macros
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
612 * @brief macros to handle NAND device enable/disable
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
613 * @{
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 * @brief Enable the NAND device access.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
617 * @param __INSTANCE__: FSMC_NAND Instance
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
618 * @param __BANK__: FSMC_NAND Bank
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
619 * @retval none
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
620 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
621 #define __FSMC_NAND_ENABLE(__INSTANCE__, __BANK__) (((__BANK__) == FSMC_NAND_BANK2)? ((__INSTANCE__)->PCR2 |= FSMC_PCR2_PBKEN): \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
622 ((__INSTANCE__)->PCR3 |= FSMC_PCR3_PBKEN))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
623
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
624 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
625 * @brief Disable the NAND device access.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
626 * @param __INSTANCE__: FSMC_NAND Instance
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
627 * @param __BANK__: FSMC_NAND Bank
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
628 * @retval none
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
629 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
630 #define __FSMC_NAND_DISABLE(__INSTANCE__, __BANK__) (((__BANK__) == FSMC_NAND_BANK2)? ((__INSTANCE__)->PCR2 &= ~FSMC_PCR2_PBKEN): \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
631 ((__INSTANCE__)->PCR3 &= ~FSMC_PCR3_PBKEN))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
632 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
633 * @}
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 /** @defgroup FSMC_LL_PCCARD_Macros FSMC PCCARD Macros
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
637 * @brief macros to handle SRAM read/write operations
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
638 * @{
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 * @brief Enable the PCCARD device access.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
642 * @param __INSTANCE__: FSMC_PCCARD Instance
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
643 * @retval none
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
644 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
645 #define __FSMC_PCCARD_ENABLE(__INSTANCE__) ((__INSTANCE__)->PCR4 |= FSMC_PCR4_PBKEN)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
646
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
647 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
648 * @brief Disable the PCCARD device access.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
649 * @param __INSTANCE__: FSMC_PCCARD Instance
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
650 * @retval none
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
651 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
652 #define __FSMC_PCCARD_DISABLE(__INSTANCE__) ((__INSTANCE__)->PCR4 &= ~FSMC_PCR4_PBKEN)
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 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
656
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
657 /** @defgroup FSMC_LL_Flag_Interrupt_Macros FSMC Flag&Interrupt Macros
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
658 * @brief macros to handle FSMC flags and interrupts
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 * @brief Enable the NAND device interrupt.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
663 * @param __INSTANCE__: FSMC_NAND Instance
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
664 * @param __BANK__: FSMC_NAND Bank
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
665 * @param __INTERRUPT__: FSMC_NAND interrupt
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
666 * This parameter can be any combination of the following values:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
667 * @arg FSMC_IT_RISING_EDGE: Interrupt rising edge.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
668 * @arg FSMC_IT_LEVEL: Interrupt level.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
669 * @arg FSMC_IT_FALLING_EDGE: Interrupt falling edge.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
670 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
671 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
672 #define __FSMC_NAND_ENABLE_IT(__INSTANCE__, __BANK__, __INTERRUPT__) (((__BANK__) == FSMC_NAND_BANK2)? ((__INSTANCE__)->SR2 |= (__INTERRUPT__)): \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
673 ((__INSTANCE__)->SR3 |= (__INTERRUPT__)))
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 * @brief Disable the NAND device interrupt.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
677 * @param __INSTANCE__: FSMC_NAND Instance
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
678 * @param __BANK__: FSMC_NAND Bank
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
679 * @param __INTERRUPT__: FSMC_NAND interrupt
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
680 * This parameter can be any combination of the following values:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
681 * @arg FSMC_IT_RISING_EDGE: Interrupt rising edge.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
682 * @arg FSMC_IT_LEVEL: Interrupt level.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
683 * @arg FSMC_IT_FALLING_EDGE: Interrupt falling edge.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
684 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
685 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
686 #define __FSMC_NAND_DISABLE_IT(__INSTANCE__, __BANK__, __INTERRUPT__) (((__BANK__) == FSMC_NAND_BANK2)? ((__INSTANCE__)->SR2 &= ~(__INTERRUPT__)): \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
687 ((__INSTANCE__)->SR3 &= ~(__INTERRUPT__)))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
688
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
689 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
690 * @brief Get flag status of the NAND device.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
691 * @param __INSTANCE__: FSMC_NAND Instance
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
692 * @param __BANK__ : FSMC_NAND Bank
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
693 * @param __FLAG__ : FSMC_NAND flag
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
694 * This parameter can be any combination of the following values:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
695 * @arg FSMC_FLAG_RISING_EDGE: Interrupt rising edge flag.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
696 * @arg FSMC_FLAG_LEVEL: Interrupt level edge flag.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
697 * @arg FSMC_FLAG_FALLING_EDGE: Interrupt falling edge flag.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
698 * @arg FSMC_FLAG_FEMPT: FIFO empty flag.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
699 * @retval The state of FLAG (SET or RESET).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
700 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
701 #define __FSMC_NAND_GET_FLAG(__INSTANCE__, __BANK__, __FLAG__) (((__BANK__) == FSMC_NAND_BANK2)? (((__INSTANCE__)->SR2 &(__FLAG__)) == (__FLAG__)): \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
702 (((__INSTANCE__)->SR3 &(__FLAG__)) == (__FLAG__)))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
703 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
704 * @brief Clear flag status of the NAND device.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
705 * @param __INSTANCE__: FSMC_NAND Instance
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
706 * @param __BANK__: FSMC_NAND Bank
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
707 * @param __FLAG__: FSMC_NAND flag
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
708 * This parameter can be any combination of the following values:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
709 * @arg FSMC_FLAG_RISING_EDGE: Interrupt rising edge flag.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
710 * @arg FSMC_FLAG_LEVEL: Interrupt level edge flag.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
711 * @arg FSMC_FLAG_FALLING_EDGE: Interrupt falling edge flag.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
712 * @arg FSMC_FLAG_FEMPT: FIFO empty flag.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
713 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
714 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
715 #define __FSMC_NAND_CLEAR_FLAG(__INSTANCE__, __BANK__, __FLAG__) (((__BANK__) == FSMC_NAND_BANK2)? ((__INSTANCE__)->SR2 &= ~(__FLAG__)): \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
716 ((__INSTANCE__)->SR3 &= ~(__FLAG__)))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
717 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
718 * @brief Enable the PCCARD device interrupt.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
719 * @param __INSTANCE__: FSMC_PCCARD Instance
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
720 * @param __INTERRUPT__: FSMC_PCCARD interrupt
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
721 * This parameter can be any combination of the following values:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
722 * @arg FSMC_IT_RISING_EDGE: Interrupt rising edge.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
723 * @arg FSMC_IT_LEVEL: Interrupt level.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
724 * @arg FSMC_IT_FALLING_EDGE: Interrupt falling edge.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
725 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
726 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
727 #define __FSMC_PCCARD_ENABLE_IT(__INSTANCE__, __INTERRUPT__) ((__INSTANCE__)->SR4 |= (__INTERRUPT__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
728
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
729 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
730 * @brief Disable the PCCARD device interrupt.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
731 * @param __INSTANCE__: FSMC_PCCARD Instance
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
732 * @param __INTERRUPT__: FSMC_PCCARD interrupt
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
733 * This parameter can be any combination of the following values:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
734 * @arg FSMC_IT_RISING_EDGE: Interrupt rising edge.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
735 * @arg FSMC_IT_LEVEL: Interrupt level.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
736 * @arg FSMC_IT_FALLING_EDGE: Interrupt falling edge.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
737 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
738 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
739 #define __FSMC_PCCARD_DISABLE_IT(__INSTANCE__, __INTERRUPT__) ((__INSTANCE__)->SR4 &= ~(__INTERRUPT__))
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 * @brief Get flag status of the PCCARD device.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
743 * @param __INSTANCE__: FSMC_PCCARD Instance
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
744 * @param __FLAG__: FSMC_PCCARD flag
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
745 * This parameter can be any combination of the following values:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
746 * @arg FSMC_FLAG_RISING_EDGE: Interrupt rising edge flag.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
747 * @arg FSMC_FLAG_LEVEL: Interrupt level edge flag.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
748 * @arg FSMC_FLAG_FALLING_EDGE: Interrupt falling edge flag.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
749 * @arg FSMC_FLAG_FEMPT: FIFO empty flag.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
750 * @retval The state of FLAG (SET or RESET).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
751 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
752 #define __FSMC_PCCARD_GET_FLAG(__INSTANCE__, __FLAG__) (((__INSTANCE__)->SR4 &(__FLAG__)) == (__FLAG__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
753
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
754 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
755 * @brief Clear flag status of the PCCARD device.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
756 * @param __INSTANCE__: FSMC_PCCARD Instance
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
757 * @param __FLAG__: FSMC_PCCARD flag
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
758 * This parameter can be any combination of the following values:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
759 * @arg FSMC_FLAG_RISING_EDGE: Interrupt rising edge flag.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
760 * @arg FSMC_FLAG_LEVEL: Interrupt level edge flag.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
761 * @arg FSMC_FLAG_FALLING_EDGE: Interrupt falling edge flag.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
762 * @arg FSMC_FLAG_FEMPT: FIFO empty flag.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
763 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
764 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
765 #define __FSMC_PCCARD_CLEAR_FLAG(__INSTANCE__, __FLAG__) ((__INSTANCE__)->SR4 &= ~(__FLAG__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
766 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
767 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
768 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
769
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
770 /** @defgroup FSMC_LL_Assert_Macros FSMC Assert Macros
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 #define IS_FSMC_NORSRAM_BANK(__BANK__) (((__BANK__) == FSMC_NORSRAM_BANK1) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
774 ((__BANK__) == FSMC_NORSRAM_BANK2) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
775 ((__BANK__) == FSMC_NORSRAM_BANK3) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
776 ((__BANK__) == FSMC_NORSRAM_BANK4))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
777
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
778 #define IS_FSMC_MUX(__MUX__) (((__MUX__) == FSMC_DATA_ADDRESS_MUX_DISABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
779 ((__MUX__) == FSMC_DATA_ADDRESS_MUX_ENABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
780
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
781 #define IS_FSMC_MEMORY(__MEMORY__) (((__MEMORY__) == FSMC_MEMORY_TYPE_SRAM) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
782 ((__MEMORY__) == FSMC_MEMORY_TYPE_PSRAM)|| \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
783 ((__MEMORY__) == FSMC_MEMORY_TYPE_NOR))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
784
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
785 #define IS_FSMC_NORSRAM_MEMORY_WIDTH(__WIDTH__) (((__WIDTH__) == FSMC_NORSRAM_MEM_BUS_WIDTH_8) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
786 ((__WIDTH__) == FSMC_NORSRAM_MEM_BUS_WIDTH_16) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
787 ((__WIDTH__) == FSMC_NORSRAM_MEM_BUS_WIDTH_32))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
788
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
789 #define IS_FSMC_ACCESS_MODE(__MODE__) (((__MODE__) == FSMC_ACCESS_MODE_A) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
790 ((__MODE__) == FSMC_ACCESS_MODE_B) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
791 ((__MODE__) == FSMC_ACCESS_MODE_C) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
792 ((__MODE__) == FSMC_ACCESS_MODE_D))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
793
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
794 #define IS_FSMC_NAND_BANK(BANK) (((BANK) == FSMC_NAND_BANK2) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
795 ((BANK) == FSMC_NAND_BANK3))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
796
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
797 #define IS_FSMC_WAIT_FEATURE(FEATURE) (((FEATURE) == FSMC_NAND_PCC_WAIT_FEATURE_DISABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
798 ((FEATURE) == FSMC_NAND_PCC_WAIT_FEATURE_ENABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
799
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
800 #define IS_FSMC_NAND_MEMORY_WIDTH(WIDTH) (((WIDTH) == FSMC_NAND_PCC_MEM_BUS_WIDTH_8) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
801 ((WIDTH) == FSMC_NAND_PCC_MEM_BUS_WIDTH_16))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
802
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
803 #define IS_FSMC_ECC_STATE(STATE) (((STATE) == FSMC_NAND_ECC_DISABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
804 ((STATE) == FSMC_NAND_ECC_ENABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
805
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
806 #define IS_FSMC_ECCPAGE_SIZE(SIZE) (((SIZE) == FSMC_NAND_ECC_PAGE_SIZE_256BYTE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
807 ((SIZE) == FSMC_NAND_ECC_PAGE_SIZE_512BYTE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
808 ((SIZE) == FSMC_NAND_ECC_PAGE_SIZE_1024BYTE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
809 ((SIZE) == FSMC_NAND_ECC_PAGE_SIZE_2048BYTE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
810 ((SIZE) == FSMC_NAND_ECC_PAGE_SIZE_4096BYTE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
811 ((SIZE) == FSMC_NAND_ECC_PAGE_SIZE_8192BYTE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
812
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
813 #define IS_FSMC_TCLR_TIME(TIME) ((TIME) <= 255)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
814
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
815 #define IS_FSMC_TAR_TIME(TIME) ((TIME) <= 255)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
816
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
817 #define IS_FSMC_SETUP_TIME(TIME) ((TIME) <= 255)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
818
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
819 #define IS_FSMC_WAIT_TIME(TIME) ((TIME) <= 255)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
820
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
821 #define IS_FSMC_HOLD_TIME(TIME) ((TIME) <= 255)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
822
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
823 #define IS_FSMC_HIZ_TIME(TIME) ((TIME) <= 255)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
824
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
825 #define IS_FSMC_NORSRAM_DEVICE(__INSTANCE__) ((__INSTANCE__) == FSMC_NORSRAM_DEVICE)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
826
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
827 #define IS_FSMC_NORSRAM_EXTENDED_DEVICE(__INSTANCE__) ((__INSTANCE__) == FSMC_NORSRAM_EXTENDED_DEVICE)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
828
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
829 #define IS_FSMC_NAND_DEVICE(INSTANCE) ((INSTANCE) == FSMC_NAND_DEVICE)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
830
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
831 #define IS_FSMC_PCCARD_DEVICE(INSTANCE) ((INSTANCE) == FSMC_PCCARD_DEVICE)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
832
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
833 #define IS_FSMC_BURSTMODE(__STATE__) (((__STATE__) == FSMC_BURST_ACCESS_MODE_DISABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
834 ((__STATE__) == FSMC_BURST_ACCESS_MODE_ENABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
835
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
836 #define IS_FSMC_WAIT_POLARITY(__POLARITY__) (((__POLARITY__) == FSMC_WAIT_SIGNAL_POLARITY_LOW) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
837 ((__POLARITY__) == FSMC_WAIT_SIGNAL_POLARITY_HIGH))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
838
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
839 #define IS_FSMC_WRAP_MODE(__MODE__) (((__MODE__) == FSMC_WRAP_MODE_DISABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
840 ((__MODE__) == FSMC_WRAP_MODE_ENABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
841
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
842 #define IS_FSMC_WAIT_SIGNAL_ACTIVE(__ACTIVE__) (((__ACTIVE__) == FSMC_WAIT_TIMING_BEFORE_WS) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
843 ((__ACTIVE__) == FSMC_WAIT_TIMING_DURING_WS))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
844
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
845 #define IS_FSMC_WRITE_OPERATION(__OPERATION__) (((__OPERATION__) == FSMC_WRITE_OPERATION_DISABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
846 ((__OPERATION__) == FSMC_WRITE_OPERATION_ENABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
847
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
848 #define IS_FSMC_WAITE_SIGNAL(__SIGNAL__) (((__SIGNAL__) == FSMC_WAIT_SIGNAL_DISABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
849 ((__SIGNAL__) == FSMC_WAIT_SIGNAL_ENABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
850
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
851 #define IS_FSMC_EXTENDED_MODE(__MODE__) (((__MODE__) == FSMC_EXTENDED_MODE_DISABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
852 ((__MODE__) == FSMC_EXTENDED_MODE_ENABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
853
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
854 #define IS_FSMC_ASYNWAIT(__STATE__) (((__STATE__) == FSMC_ASYNCHRONOUS_WAIT_DISABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
855 ((__STATE__) == FSMC_ASYNCHRONOUS_WAIT_ENABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
856
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
857 #define IS_FSMC_DATA_LATENCY(__LATENCY__) (((__LATENCY__) > 1) && ((__LATENCY__) <= 17))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
858
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
859 #define IS_FSMC_WRITE_BURST(__BURST__) (((__BURST__) == FSMC_WRITE_BURST_DISABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
860 ((__BURST__) == FSMC_WRITE_BURST_ENABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
861
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
862 #define IS_FSMC_ADDRESS_SETUP_TIME(__TIME__) ((__TIME__) <= 15)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
863
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
864 #define IS_FSMC_ADDRESS_HOLD_TIME(__TIME__) (((__TIME__) > 0) && ((__TIME__) <= 15))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
865
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
866 #define IS_FSMC_DATASETUP_TIME(__TIME__) (((__TIME__) > 0) && ((__TIME__) <= 255))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
867
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
868 #define IS_FSMC_TURNAROUND_TIME(__TIME__) ((__TIME__) <= 15)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
869
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
870 #define IS_FSMC_CONTINOUS_CLOCK(CCLOCK) (((CCLOCK) == FSMC_CONTINUOUS_CLOCK_SYNC_ONLY) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
871 ((CCLOCK) == FSMC_CONTINUOUS_CLOCK_SYNC_ASYNC))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
872
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
873 #define IS_FSMC_CLK_DIV(DIV) (((DIV) > 1) && ((DIV) <= 16))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
874
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
875 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
876 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
877 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
878 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
879 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
880 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
881
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
882 /* Private functions ---------------------------------------------------------*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
883 /** @defgroup FSMC_LL_Private_Functions FSMC LL Private Functions
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
884 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
885 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
886
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
887 /** @defgroup FSMC_LL_NORSRAM NOR SRAM
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
888 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
889 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
890
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
891 /** @defgroup FSMC_LL_NORSRAM_Private_Functions_Group1 NOR SRAM Initialization/de-initialization functions
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 HAL_StatusTypeDef FSMC_NORSRAM_Init(FSMC_NORSRAM_TypeDef *Device, FSMC_NORSRAM_InitTypeDef *Init);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
895 HAL_StatusTypeDef FSMC_NORSRAM_Timing_Init(FSMC_NORSRAM_TypeDef *Device, FSMC_NORSRAM_TimingTypeDef *Timing, uint32_t Bank);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
896 HAL_StatusTypeDef FSMC_NORSRAM_Extended_Timing_Init(FSMC_NORSRAM_EXTENDED_TypeDef *Device, FSMC_NORSRAM_TimingTypeDef *Timing, uint32_t Bank, uint32_t ExtendedMode);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
897 HAL_StatusTypeDef FSMC_NORSRAM_DeInit(FSMC_NORSRAM_TypeDef *Device, FSMC_NORSRAM_EXTENDED_TypeDef *ExDevice, uint32_t Bank);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
898 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
899 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
900 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
901
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
902 /** @defgroup FSMC_LL_NORSRAM_Private_Functions_Group2 NOR SRAM Control functions
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
903 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
904 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
905 HAL_StatusTypeDef FSMC_NORSRAM_WriteOperation_Enable(FSMC_NORSRAM_TypeDef *Device, uint32_t Bank);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
906 HAL_StatusTypeDef FSMC_NORSRAM_WriteOperation_Disable(FSMC_NORSRAM_TypeDef *Device, uint32_t Bank);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
907 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
908 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
909 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
910 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
911 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
912 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
913
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
914 /** @defgroup FSMC_LL_NAND NAND
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
915 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
916 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
917 /** @defgroup FSMC_LL_NAND_Private_Functions_Group1 NAND Initialization/de-initialization functions
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
918 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
919 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
920 HAL_StatusTypeDef FSMC_NAND_Init(FSMC_NAND_TypeDef *Device, FSMC_NAND_InitTypeDef *Init);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
921 HAL_StatusTypeDef FSMC_NAND_CommonSpace_Timing_Init(FSMC_NAND_TypeDef *Device, FSMC_NAND_PCC_TimingTypeDef *Timing, uint32_t Bank);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
922 HAL_StatusTypeDef FSMC_NAND_AttributeSpace_Timing_Init(FSMC_NAND_TypeDef *Device, FSMC_NAND_PCC_TimingTypeDef *Timing, uint32_t Bank);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
923 HAL_StatusTypeDef FSMC_NAND_DeInit(FSMC_NAND_TypeDef *Device, uint32_t Bank);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
924 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
925 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
926 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
927
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
928 /** @defgroup FSMC_LL_NAND_Private_Functions_Group2 NAND Control functions
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
929 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
930 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
931 HAL_StatusTypeDef FSMC_NAND_ECC_Enable(FSMC_NAND_TypeDef *Device, uint32_t Bank);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
932 HAL_StatusTypeDef FSMC_NAND_ECC_Disable(FSMC_NAND_TypeDef *Device, uint32_t Bank);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
933 HAL_StatusTypeDef FSMC_NAND_GetECC(FSMC_NAND_TypeDef *Device, uint32_t *ECCval, uint32_t Bank, uint32_t Timeout);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
934 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
935 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
936 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
937 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
938 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
939 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
940
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
941 /** @defgroup FSMC_LL_PCCARD PCCARD
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
942 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
943 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
944 /** @defgroup FSMC_LL_PCCARD_Private_Functions_Group1 PCCARD Initialization/de-initialization functions
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
945 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
946 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
947 HAL_StatusTypeDef FSMC_PCCARD_Init(FSMC_PCCARD_TypeDef *Device, FSMC_PCCARD_InitTypeDef *Init);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
948 HAL_StatusTypeDef FSMC_PCCARD_CommonSpace_Timing_Init(FSMC_PCCARD_TypeDef *Device, FSMC_NAND_PCC_TimingTypeDef *Timing);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
949 HAL_StatusTypeDef FSMC_PCCARD_AttributeSpace_Timing_Init(FSMC_PCCARD_TypeDef *Device, FSMC_NAND_PCC_TimingTypeDef *Timing);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
950 HAL_StatusTypeDef FSMC_PCCARD_IOSpace_Timing_Init(FSMC_PCCARD_TypeDef *Device, FSMC_NAND_PCC_TimingTypeDef *Timing);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
951 HAL_StatusTypeDef FSMC_PCCARD_DeInit(FSMC_PCCARD_TypeDef *Device);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
952 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
953 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
954 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
955 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
956 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
957 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
958
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
959 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
960 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
961 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
962 #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
963
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
964 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
965 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
966 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
967
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
968 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
969 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
970 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
971
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
972 #ifdef __cplusplus
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
973 }
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
974 #endif
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
975
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
976 #endif /* __STM32F4xx_LL_FSMC_H */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
977
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
978 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/