Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.
Dependents: 1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB
Fork of mbed by
TARGET_NUCLEO_F411RE/stm32f4xx_ll_fsmc.h@99:dbbf35b96557, 2015-05-13 (annotated)
- Committer:
- Kojto
- Date:
- Wed May 13 08:08:21 2015 +0200
- Revision:
- 99:dbbf35b96557
- Parent:
- 86:04dd9b1680ae
- Child:
- 106:ba1f97679dad
Release 99 of the mbed library
Changes:
- new targets - MAXWSNENV, DISCO_L053C8
- STM32F4xx - ST Cube driver
- KSDK mcu - SPI timing fix
- Nordic - update to softdevice s130
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 86:04dd9b1680ae | 1 | /** |
bogdanm | 86:04dd9b1680ae | 2 | ****************************************************************************** |
bogdanm | 86:04dd9b1680ae | 3 | * @file stm32f4xx_ll_fsmc.h |
bogdanm | 86:04dd9b1680ae | 4 | * @author MCD Application Team |
Kojto | 99:dbbf35b96557 | 5 | * @version V1.3.0 |
Kojto | 99:dbbf35b96557 | 6 | * @date 09-March-2015 |
bogdanm | 86:04dd9b1680ae | 7 | * @brief Header file of FSMC HAL module. |
bogdanm | 86:04dd9b1680ae | 8 | ****************************************************************************** |
bogdanm | 86:04dd9b1680ae | 9 | * @attention |
bogdanm | 86:04dd9b1680ae | 10 | * |
Kojto | 99:dbbf35b96557 | 11 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
bogdanm | 86:04dd9b1680ae | 12 | * |
bogdanm | 86:04dd9b1680ae | 13 | * Redistribution and use in source and binary forms, with or without modification, |
bogdanm | 86:04dd9b1680ae | 14 | * are permitted provided that the following conditions are met: |
bogdanm | 86:04dd9b1680ae | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
bogdanm | 86:04dd9b1680ae | 16 | * this list of conditions and the following disclaimer. |
bogdanm | 86:04dd9b1680ae | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
bogdanm | 86:04dd9b1680ae | 18 | * this list of conditions and the following disclaimer in the documentation |
bogdanm | 86:04dd9b1680ae | 19 | * and/or other materials provided with the distribution. |
bogdanm | 86:04dd9b1680ae | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
bogdanm | 86:04dd9b1680ae | 21 | * may be used to endorse or promote products derived from this software |
bogdanm | 86:04dd9b1680ae | 22 | * without specific prior written permission. |
bogdanm | 86:04dd9b1680ae | 23 | * |
bogdanm | 86:04dd9b1680ae | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
bogdanm | 86:04dd9b1680ae | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
bogdanm | 86:04dd9b1680ae | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
bogdanm | 86:04dd9b1680ae | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
bogdanm | 86:04dd9b1680ae | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
bogdanm | 86:04dd9b1680ae | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
bogdanm | 86:04dd9b1680ae | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
bogdanm | 86:04dd9b1680ae | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
bogdanm | 86:04dd9b1680ae | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
bogdanm | 86:04dd9b1680ae | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
bogdanm | 86:04dd9b1680ae | 34 | * |
bogdanm | 86:04dd9b1680ae | 35 | ****************************************************************************** |
bogdanm | 86:04dd9b1680ae | 36 | */ |
bogdanm | 86:04dd9b1680ae | 37 | |
bogdanm | 86:04dd9b1680ae | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
bogdanm | 86:04dd9b1680ae | 39 | #ifndef __STM32F4xx_LL_FSMC_H |
bogdanm | 86:04dd9b1680ae | 40 | #define __STM32F4xx_LL_FSMC_H |
bogdanm | 86:04dd9b1680ae | 41 | |
bogdanm | 86:04dd9b1680ae | 42 | #ifdef __cplusplus |
bogdanm | 86:04dd9b1680ae | 43 | extern "C" { |
bogdanm | 86:04dd9b1680ae | 44 | #endif |
bogdanm | 86:04dd9b1680ae | 45 | |
bogdanm | 86:04dd9b1680ae | 46 | /* Includes ------------------------------------------------------------------*/ |
bogdanm | 86:04dd9b1680ae | 47 | #include "stm32f4xx_hal_def.h" |
bogdanm | 86:04dd9b1680ae | 48 | |
bogdanm | 86:04dd9b1680ae | 49 | /** @addtogroup STM32F4xx_HAL_Driver |
bogdanm | 86:04dd9b1680ae | 50 | * @{ |
bogdanm | 86:04dd9b1680ae | 51 | */ |
Kojto | 99:dbbf35b96557 | 52 | |
Kojto | 99:dbbf35b96557 | 53 | /** @addtogroup FSMC_LL |
bogdanm | 86:04dd9b1680ae | 54 | * @{ |
Kojto | 99:dbbf35b96557 | 55 | */ |
bogdanm | 86:04dd9b1680ae | 56 | |
Kojto | 99:dbbf35b96557 | 57 | #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) |
Kojto | 99:dbbf35b96557 | 58 | /* Private types -------------------------------------------------------------*/ |
Kojto | 99:dbbf35b96557 | 59 | /** @defgroup FSMC_LL_Private_Types FSMC Private Types |
Kojto | 99:dbbf35b96557 | 60 | * @{ |
Kojto | 99:dbbf35b96557 | 61 | */ |
bogdanm | 86:04dd9b1680ae | 62 | |
bogdanm | 86:04dd9b1680ae | 63 | /** |
Kojto | 99:dbbf35b96557 | 64 | * @brief FSMC NORSRAM Configuration Structure definition |
bogdanm | 86:04dd9b1680ae | 65 | */ |
bogdanm | 86:04dd9b1680ae | 66 | typedef struct |
bogdanm | 86:04dd9b1680ae | 67 | { |
bogdanm | 86:04dd9b1680ae | 68 | uint32_t NSBank; /*!< Specifies the NORSRAM memory device that will be used. |
bogdanm | 86:04dd9b1680ae | 69 | This parameter can be a value of @ref FSMC_NORSRAM_Bank */ |
bogdanm | 86:04dd9b1680ae | 70 | |
bogdanm | 86:04dd9b1680ae | 71 | uint32_t DataAddressMux; /*!< Specifies whether the address and data values are |
bogdanm | 86:04dd9b1680ae | 72 | multiplexed on the data bus or not. |
bogdanm | 86:04dd9b1680ae | 73 | This parameter can be a value of @ref FSMC_Data_Address_Bus_Multiplexing */ |
bogdanm | 86:04dd9b1680ae | 74 | |
bogdanm | 86:04dd9b1680ae | 75 | uint32_t MemoryType; /*!< Specifies the type of external memory attached to |
bogdanm | 86:04dd9b1680ae | 76 | the corresponding memory device. |
bogdanm | 86:04dd9b1680ae | 77 | This parameter can be a value of @ref FSMC_Memory_Type */ |
bogdanm | 86:04dd9b1680ae | 78 | |
bogdanm | 86:04dd9b1680ae | 79 | uint32_t MemoryDataWidth; /*!< Specifies the external memory device width. |
bogdanm | 86:04dd9b1680ae | 80 | This parameter can be a value of @ref FSMC_NORSRAM_Data_Width */ |
bogdanm | 86:04dd9b1680ae | 81 | |
bogdanm | 86:04dd9b1680ae | 82 | uint32_t BurstAccessMode; /*!< Enables or disables the burst access mode for Flash memory, |
bogdanm | 86:04dd9b1680ae | 83 | valid only with synchronous burst Flash memories. |
bogdanm | 86:04dd9b1680ae | 84 | This parameter can be a value of @ref FSMC_Burst_Access_Mode */ |
bogdanm | 86:04dd9b1680ae | 85 | |
bogdanm | 86:04dd9b1680ae | 86 | uint32_t WaitSignalPolarity; /*!< Specifies the wait signal polarity, valid only when accessing |
bogdanm | 86:04dd9b1680ae | 87 | the Flash memory in burst mode. |
bogdanm | 86:04dd9b1680ae | 88 | This parameter can be a value of @ref FSMC_Wait_Signal_Polarity */ |
bogdanm | 86:04dd9b1680ae | 89 | |
bogdanm | 86:04dd9b1680ae | 90 | uint32_t WrapMode; /*!< Enables or disables the Wrapped burst access mode for Flash |
bogdanm | 86:04dd9b1680ae | 91 | memory, valid only when accessing Flash memories in burst mode. |
bogdanm | 86:04dd9b1680ae | 92 | This parameter can be a value of @ref FSMC_Wrap_Mode */ |
bogdanm | 86:04dd9b1680ae | 93 | |
bogdanm | 86:04dd9b1680ae | 94 | uint32_t WaitSignalActive; /*!< Specifies if the wait signal is asserted by the memory one |
bogdanm | 86:04dd9b1680ae | 95 | clock cycle before the wait state or during the wait state, |
bogdanm | 86:04dd9b1680ae | 96 | valid only when accessing memories in burst mode. |
bogdanm | 86:04dd9b1680ae | 97 | This parameter can be a value of @ref FSMC_Wait_Timing */ |
bogdanm | 86:04dd9b1680ae | 98 | |
bogdanm | 86:04dd9b1680ae | 99 | uint32_t WriteOperation; /*!< Enables or disables the write operation in the selected device by the FSMC. |
bogdanm | 86:04dd9b1680ae | 100 | This parameter can be a value of @ref FSMC_Write_Operation */ |
bogdanm | 86:04dd9b1680ae | 101 | |
bogdanm | 86:04dd9b1680ae | 102 | uint32_t WaitSignal; /*!< Enables or disables the wait state insertion via wait |
bogdanm | 86:04dd9b1680ae | 103 | signal, valid for Flash memory access in burst mode. |
bogdanm | 86:04dd9b1680ae | 104 | This parameter can be a value of @ref FSMC_Wait_Signal */ |
bogdanm | 86:04dd9b1680ae | 105 | |
bogdanm | 86:04dd9b1680ae | 106 | uint32_t ExtendedMode; /*!< Enables or disables the extended mode. |
bogdanm | 86:04dd9b1680ae | 107 | This parameter can be a value of @ref FSMC_Extended_Mode */ |
bogdanm | 86:04dd9b1680ae | 108 | |
bogdanm | 86:04dd9b1680ae | 109 | uint32_t AsynchronousWait; /*!< Enables or disables wait signal during asynchronous transfers, |
bogdanm | 86:04dd9b1680ae | 110 | valid only with asynchronous Flash memories. |
bogdanm | 86:04dd9b1680ae | 111 | This parameter can be a value of @ref FSMC_AsynchronousWait */ |
bogdanm | 86:04dd9b1680ae | 112 | |
bogdanm | 86:04dd9b1680ae | 113 | uint32_t WriteBurst; /*!< Enables or disables the write burst operation. |
bogdanm | 86:04dd9b1680ae | 114 | This parameter can be a value of @ref FSMC_Write_Burst */ |
bogdanm | 86:04dd9b1680ae | 115 | |
bogdanm | 86:04dd9b1680ae | 116 | }FSMC_NORSRAM_InitTypeDef; |
bogdanm | 86:04dd9b1680ae | 117 | |
bogdanm | 86:04dd9b1680ae | 118 | /** |
Kojto | 99:dbbf35b96557 | 119 | * @brief FSMC NORSRAM Timing parameters structure definition |
bogdanm | 86:04dd9b1680ae | 120 | */ |
bogdanm | 86:04dd9b1680ae | 121 | typedef struct |
bogdanm | 86:04dd9b1680ae | 122 | { |
bogdanm | 86:04dd9b1680ae | 123 | uint32_t AddressSetupTime; /*!< Defines the number of HCLK cycles to configure |
bogdanm | 86:04dd9b1680ae | 124 | the duration of the address setup time. |
bogdanm | 86:04dd9b1680ae | 125 | This parameter can be a value between Min_Data = 0 and Max_Data = 15. |
bogdanm | 86:04dd9b1680ae | 126 | @note This parameter is not used with synchronous NOR Flash memories. */ |
bogdanm | 86:04dd9b1680ae | 127 | |
bogdanm | 86:04dd9b1680ae | 128 | uint32_t AddressHoldTime; /*!< Defines the number of HCLK cycles to configure |
bogdanm | 86:04dd9b1680ae | 129 | the duration of the address hold time. |
bogdanm | 86:04dd9b1680ae | 130 | This parameter can be a value between Min_Data = 1 and Max_Data = 15. |
bogdanm | 86:04dd9b1680ae | 131 | @note This parameter is not used with synchronous NOR Flash memories. */ |
bogdanm | 86:04dd9b1680ae | 132 | |
bogdanm | 86:04dd9b1680ae | 133 | uint32_t DataSetupTime; /*!< Defines the number of HCLK cycles to configure |
bogdanm | 86:04dd9b1680ae | 134 | the duration of the data setup time. |
bogdanm | 86:04dd9b1680ae | 135 | This parameter can be a value between Min_Data = 1 and Max_Data = 255. |
bogdanm | 86:04dd9b1680ae | 136 | @note This parameter is used for SRAMs, ROMs and asynchronous multiplexed |
bogdanm | 86:04dd9b1680ae | 137 | NOR Flash memories. */ |
bogdanm | 86:04dd9b1680ae | 138 | |
bogdanm | 86:04dd9b1680ae | 139 | uint32_t BusTurnAroundDuration; /*!< Defines the number of HCLK cycles to configure |
bogdanm | 86:04dd9b1680ae | 140 | the duration of the bus turnaround. |
bogdanm | 86:04dd9b1680ae | 141 | This parameter can be a value between Min_Data = 0 and Max_Data = 15. |
bogdanm | 86:04dd9b1680ae | 142 | @note This parameter is only used for multiplexed NOR Flash memories. */ |
bogdanm | 86:04dd9b1680ae | 143 | |
bogdanm | 86:04dd9b1680ae | 144 | uint32_t CLKDivision; /*!< Defines the period of CLK clock output signal, expressed in number of |
bogdanm | 86:04dd9b1680ae | 145 | HCLK cycles. This parameter can be a value between Min_Data = 2 and Max_Data = 16. |
bogdanm | 86:04dd9b1680ae | 146 | @note This parameter is not used for asynchronous NOR Flash, SRAM or ROM |
bogdanm | 86:04dd9b1680ae | 147 | accesses. */ |
bogdanm | 86:04dd9b1680ae | 148 | |
bogdanm | 86:04dd9b1680ae | 149 | uint32_t DataLatency; /*!< Defines the number of memory clock cycles to issue |
bogdanm | 86:04dd9b1680ae | 150 | to the memory before getting the first data. |
bogdanm | 86:04dd9b1680ae | 151 | The parameter value depends on the memory type as shown below: |
bogdanm | 86:04dd9b1680ae | 152 | - It must be set to 0 in case of a CRAM |
bogdanm | 86:04dd9b1680ae | 153 | - It is don't care in asynchronous NOR, SRAM or ROM accesses |
bogdanm | 86:04dd9b1680ae | 154 | - It may assume a value between Min_Data = 2 and Max_Data = 17 in NOR Flash memories |
bogdanm | 86:04dd9b1680ae | 155 | with synchronous burst mode enable */ |
bogdanm | 86:04dd9b1680ae | 156 | |
bogdanm | 86:04dd9b1680ae | 157 | uint32_t AccessMode; /*!< Specifies the asynchronous access mode. |
bogdanm | 86:04dd9b1680ae | 158 | This parameter can be a value of @ref FSMC_Access_Mode */ |
bogdanm | 86:04dd9b1680ae | 159 | |
bogdanm | 86:04dd9b1680ae | 160 | }FSMC_NORSRAM_TimingTypeDef; |
bogdanm | 86:04dd9b1680ae | 161 | |
bogdanm | 86:04dd9b1680ae | 162 | /** |
Kojto | 99:dbbf35b96557 | 163 | * @brief FSMC NAND Configuration Structure definition |
bogdanm | 86:04dd9b1680ae | 164 | */ |
bogdanm | 86:04dd9b1680ae | 165 | typedef struct |
bogdanm | 86:04dd9b1680ae | 166 | { |
bogdanm | 86:04dd9b1680ae | 167 | uint32_t NandBank; /*!< Specifies the NAND memory device that will be used. |
bogdanm | 86:04dd9b1680ae | 168 | This parameter can be a value of @ref FSMC_NAND_Bank */ |
bogdanm | 86:04dd9b1680ae | 169 | |
bogdanm | 86:04dd9b1680ae | 170 | uint32_t Waitfeature; /*!< Enables or disables the Wait feature for the NAND Memory device. |
bogdanm | 86:04dd9b1680ae | 171 | This parameter can be any value of @ref FSMC_Wait_feature */ |
bogdanm | 86:04dd9b1680ae | 172 | |
bogdanm | 86:04dd9b1680ae | 173 | uint32_t MemoryDataWidth; /*!< Specifies the external memory device width. |
bogdanm | 86:04dd9b1680ae | 174 | This parameter can be any value of @ref FSMC_NAND_Data_Width */ |
bogdanm | 86:04dd9b1680ae | 175 | |
bogdanm | 86:04dd9b1680ae | 176 | uint32_t EccComputation; /*!< Enables or disables the ECC computation. |
bogdanm | 86:04dd9b1680ae | 177 | This parameter can be any value of @ref FSMC_ECC */ |
bogdanm | 86:04dd9b1680ae | 178 | |
bogdanm | 86:04dd9b1680ae | 179 | uint32_t ECCPageSize; /*!< Defines the page size for the extended ECC. |
bogdanm | 86:04dd9b1680ae | 180 | This parameter can be any value of @ref FSMC_ECC_Page_Size */ |
bogdanm | 86:04dd9b1680ae | 181 | |
bogdanm | 86:04dd9b1680ae | 182 | uint32_t TCLRSetupTime; /*!< Defines the number of HCLK cycles to configure the |
bogdanm | 86:04dd9b1680ae | 183 | delay between CLE low and RE low. |
bogdanm | 86:04dd9b1680ae | 184 | This parameter can be a value between Min_Data = 0 and Max_Data = 255 */ |
bogdanm | 86:04dd9b1680ae | 185 | |
bogdanm | 86:04dd9b1680ae | 186 | uint32_t TARSetupTime; /*!< Defines the number of HCLK cycles to configure the |
bogdanm | 86:04dd9b1680ae | 187 | delay between ALE low and RE low. |
bogdanm | 86:04dd9b1680ae | 188 | This parameter can be a number between Min_Data = 0 and Max_Data = 255 */ |
bogdanm | 86:04dd9b1680ae | 189 | |
bogdanm | 86:04dd9b1680ae | 190 | }FSMC_NAND_InitTypeDef; |
bogdanm | 86:04dd9b1680ae | 191 | |
bogdanm | 86:04dd9b1680ae | 192 | /** |
Kojto | 99:dbbf35b96557 | 193 | * @brief FSMC NAND/PCCARD Timing parameters structure definition |
bogdanm | 86:04dd9b1680ae | 194 | */ |
bogdanm | 86:04dd9b1680ae | 195 | typedef struct |
bogdanm | 86:04dd9b1680ae | 196 | { |
bogdanm | 86:04dd9b1680ae | 197 | uint32_t SetupTime; /*!< Defines the number of HCLK cycles to setup address before |
bogdanm | 86:04dd9b1680ae | 198 | the command assertion for NAND-Flash read or write access |
bogdanm | 86:04dd9b1680ae | 199 | to common/Attribute or I/O memory space (depending on |
bogdanm | 86:04dd9b1680ae | 200 | the memory space timing to be configured). |
bogdanm | 86:04dd9b1680ae | 201 | This parameter can be a value between Min_Data = 0 and Max_Data = 255 */ |
bogdanm | 86:04dd9b1680ae | 202 | |
bogdanm | 86:04dd9b1680ae | 203 | uint32_t WaitSetupTime; /*!< Defines the minimum number of HCLK cycles to assert the |
bogdanm | 86:04dd9b1680ae | 204 | command for NAND-Flash read or write access to |
bogdanm | 86:04dd9b1680ae | 205 | common/Attribute or I/O memory space (depending on the |
bogdanm | 86:04dd9b1680ae | 206 | memory space timing to be configured). |
bogdanm | 86:04dd9b1680ae | 207 | This parameter can be a number between Min_Data = 0 and Max_Data = 255 */ |
bogdanm | 86:04dd9b1680ae | 208 | |
bogdanm | 86:04dd9b1680ae | 209 | uint32_t HoldSetupTime; /*!< Defines the number of HCLK clock cycles to hold address |
bogdanm | 86:04dd9b1680ae | 210 | (and data for write access) after the command de-assertion |
bogdanm | 86:04dd9b1680ae | 211 | for NAND-Flash read or write access to common/Attribute |
bogdanm | 86:04dd9b1680ae | 212 | or I/O memory space (depending on the memory space timing |
bogdanm | 86:04dd9b1680ae | 213 | to be configured). |
bogdanm | 86:04dd9b1680ae | 214 | This parameter can be a number between Min_Data = 0 and Max_Data = 255 */ |
bogdanm | 86:04dd9b1680ae | 215 | |
bogdanm | 86:04dd9b1680ae | 216 | uint32_t HiZSetupTime; /*!< Defines the number of HCLK clock cycles during which the |
bogdanm | 86:04dd9b1680ae | 217 | data bus is kept in HiZ after the start of a NAND-Flash |
bogdanm | 86:04dd9b1680ae | 218 | write access to common/Attribute or I/O memory space (depending |
bogdanm | 86:04dd9b1680ae | 219 | on the memory space timing to be configured). |
bogdanm | 86:04dd9b1680ae | 220 | This parameter can be a number between Min_Data = 0 and Max_Data = 255 */ |
bogdanm | 86:04dd9b1680ae | 221 | |
bogdanm | 86:04dd9b1680ae | 222 | }FSMC_NAND_PCC_TimingTypeDef; |
bogdanm | 86:04dd9b1680ae | 223 | |
bogdanm | 86:04dd9b1680ae | 224 | /** |
Kojto | 99:dbbf35b96557 | 225 | * @brief FSMC NAND Configuration Structure definition |
bogdanm | 86:04dd9b1680ae | 226 | */ |
bogdanm | 86:04dd9b1680ae | 227 | typedef struct |
bogdanm | 86:04dd9b1680ae | 228 | { |
bogdanm | 86:04dd9b1680ae | 229 | uint32_t Waitfeature; /*!< Enables or disables the Wait feature for the PCCARD Memory device. |
bogdanm | 86:04dd9b1680ae | 230 | This parameter can be any value of @ref FSMC_Wait_feature */ |
bogdanm | 86:04dd9b1680ae | 231 | |
bogdanm | 86:04dd9b1680ae | 232 | uint32_t TCLRSetupTime; /*!< Defines the number of HCLK cycles to configure the |
bogdanm | 86:04dd9b1680ae | 233 | delay between CLE low and RE low. |
bogdanm | 86:04dd9b1680ae | 234 | This parameter can be a value between Min_Data = 0 and Max_Data = 255 */ |
bogdanm | 86:04dd9b1680ae | 235 | |
bogdanm | 86:04dd9b1680ae | 236 | uint32_t TARSetupTime; /*!< Defines the number of HCLK cycles to configure the |
bogdanm | 86:04dd9b1680ae | 237 | delay between ALE low and RE low. |
bogdanm | 86:04dd9b1680ae | 238 | This parameter can be a number between Min_Data = 0 and Max_Data = 255 */ |
bogdanm | 86:04dd9b1680ae | 239 | |
bogdanm | 86:04dd9b1680ae | 240 | }FSMC_PCCARD_InitTypeDef; |
Kojto | 99:dbbf35b96557 | 241 | /** |
Kojto | 99:dbbf35b96557 | 242 | * @} |
Kojto | 99:dbbf35b96557 | 243 | */ |
bogdanm | 86:04dd9b1680ae | 244 | |
Kojto | 99:dbbf35b96557 | 245 | /* Private constants ---------------------------------------------------------*/ |
Kojto | 99:dbbf35b96557 | 246 | /** @defgroup FSMC_LL_Private_Constants FSMC Private Constants |
Kojto | 99:dbbf35b96557 | 247 | * @{ |
Kojto | 99:dbbf35b96557 | 248 | */ |
bogdanm | 86:04dd9b1680ae | 249 | |
Kojto | 99:dbbf35b96557 | 250 | /** @defgroup FSMC_LL_NOR_SRAM_Controller FSMC NOR/SRAM Controller |
bogdanm | 86:04dd9b1680ae | 251 | * @{ |
bogdanm | 86:04dd9b1680ae | 252 | */ |
Kojto | 99:dbbf35b96557 | 253 | /** @defgroup FSMC_NORSRAM_Bank FSMC NOR/SRAM Bank |
bogdanm | 86:04dd9b1680ae | 254 | * @{ |
bogdanm | 86:04dd9b1680ae | 255 | */ |
bogdanm | 86:04dd9b1680ae | 256 | #define FSMC_NORSRAM_BANK1 ((uint32_t)0x00000000) |
bogdanm | 86:04dd9b1680ae | 257 | #define FSMC_NORSRAM_BANK2 ((uint32_t)0x00000002) |
bogdanm | 86:04dd9b1680ae | 258 | #define FSMC_NORSRAM_BANK3 ((uint32_t)0x00000004) |
bogdanm | 86:04dd9b1680ae | 259 | #define FSMC_NORSRAM_BANK4 ((uint32_t)0x00000006) |
bogdanm | 86:04dd9b1680ae | 260 | /** |
bogdanm | 86:04dd9b1680ae | 261 | * @} |
bogdanm | 86:04dd9b1680ae | 262 | */ |
bogdanm | 86:04dd9b1680ae | 263 | |
Kojto | 99:dbbf35b96557 | 264 | /** @defgroup FSMC_Data_Address_Bus_Multiplexing FSMC Data Address Bus Multiplexing |
bogdanm | 86:04dd9b1680ae | 265 | * @{ |
bogdanm | 86:04dd9b1680ae | 266 | */ |
bogdanm | 86:04dd9b1680ae | 267 | #define FSMC_DATA_ADDRESS_MUX_DISABLE ((uint32_t)0x00000000) |
bogdanm | 86:04dd9b1680ae | 268 | #define FSMC_DATA_ADDRESS_MUX_ENABLE ((uint32_t)0x00000002) |
bogdanm | 86:04dd9b1680ae | 269 | /** |
bogdanm | 86:04dd9b1680ae | 270 | * @} |
bogdanm | 86:04dd9b1680ae | 271 | */ |
bogdanm | 86:04dd9b1680ae | 272 | |
Kojto | 99:dbbf35b96557 | 273 | /** @defgroup FSMC_Memory_Type FSMC Memory Type |
bogdanm | 86:04dd9b1680ae | 274 | * @{ |
bogdanm | 86:04dd9b1680ae | 275 | */ |
bogdanm | 86:04dd9b1680ae | 276 | #define FSMC_MEMORY_TYPE_SRAM ((uint32_t)0x00000000) |
bogdanm | 86:04dd9b1680ae | 277 | #define FSMC_MEMORY_TYPE_PSRAM ((uint32_t)0x00000004) |
bogdanm | 86:04dd9b1680ae | 278 | #define FSMC_MEMORY_TYPE_NOR ((uint32_t)0x00000008) |
bogdanm | 86:04dd9b1680ae | 279 | /** |
bogdanm | 86:04dd9b1680ae | 280 | * @} |
bogdanm | 86:04dd9b1680ae | 281 | */ |
bogdanm | 86:04dd9b1680ae | 282 | |
Kojto | 99:dbbf35b96557 | 283 | /** @defgroup FSMC_NORSRAM_Data_Width FSMC NOR/SRAM Data Width |
bogdanm | 86:04dd9b1680ae | 284 | * @{ |
bogdanm | 86:04dd9b1680ae | 285 | */ |
bogdanm | 86:04dd9b1680ae | 286 | #define FSMC_NORSRAM_MEM_BUS_WIDTH_8 ((uint32_t)0x00000000) |
bogdanm | 86:04dd9b1680ae | 287 | #define FSMC_NORSRAM_MEM_BUS_WIDTH_16 ((uint32_t)0x00000010) |
bogdanm | 86:04dd9b1680ae | 288 | #define FSMC_NORSRAM_MEM_BUS_WIDTH_32 ((uint32_t)0x00000020) |
bogdanm | 86:04dd9b1680ae | 289 | /** |
bogdanm | 86:04dd9b1680ae | 290 | * @} |
bogdanm | 86:04dd9b1680ae | 291 | */ |
bogdanm | 86:04dd9b1680ae | 292 | |
Kojto | 99:dbbf35b96557 | 293 | /** @defgroup FSMC_NORSRAM_Flash_Access FSMC NOR/SRAM Flash Access |
bogdanm | 86:04dd9b1680ae | 294 | * @{ |
bogdanm | 86:04dd9b1680ae | 295 | */ |
bogdanm | 86:04dd9b1680ae | 296 | #define FSMC_NORSRAM_FLASH_ACCESS_ENABLE ((uint32_t)0x00000040) |
bogdanm | 86:04dd9b1680ae | 297 | #define FSMC_NORSRAM_FLASH_ACCESS_DISABLE ((uint32_t)0x00000000) |
bogdanm | 86:04dd9b1680ae | 298 | /** |
bogdanm | 86:04dd9b1680ae | 299 | * @} |
bogdanm | 86:04dd9b1680ae | 300 | */ |
bogdanm | 86:04dd9b1680ae | 301 | |
Kojto | 99:dbbf35b96557 | 302 | /** @defgroup FSMC_Burst_Access_Mode FSMC Burst Access Mode |
bogdanm | 86:04dd9b1680ae | 303 | * @{ |
bogdanm | 86:04dd9b1680ae | 304 | */ |
bogdanm | 86:04dd9b1680ae | 305 | #define FSMC_BURST_ACCESS_MODE_DISABLE ((uint32_t)0x00000000) |
bogdanm | 86:04dd9b1680ae | 306 | #define FSMC_BURST_ACCESS_MODE_ENABLE ((uint32_t)0x00000100) |
bogdanm | 86:04dd9b1680ae | 307 | /** |
bogdanm | 86:04dd9b1680ae | 308 | * @} |
bogdanm | 86:04dd9b1680ae | 309 | */ |
bogdanm | 86:04dd9b1680ae | 310 | |
Kojto | 99:dbbf35b96557 | 311 | /** @defgroup FSMC_Wait_Signal_Polarity FSMC Wait Signal Polarity |
bogdanm | 86:04dd9b1680ae | 312 | * @{ |
bogdanm | 86:04dd9b1680ae | 313 | */ |
bogdanm | 86:04dd9b1680ae | 314 | #define FSMC_WAIT_SIGNAL_POLARITY_LOW ((uint32_t)0x00000000) |
bogdanm | 86:04dd9b1680ae | 315 | #define FSMC_WAIT_SIGNAL_POLARITY_HIGH ((uint32_t)0x00000200) |
bogdanm | 86:04dd9b1680ae | 316 | /** |
bogdanm | 86:04dd9b1680ae | 317 | * @} |
bogdanm | 86:04dd9b1680ae | 318 | */ |
bogdanm | 86:04dd9b1680ae | 319 | |
Kojto | 99:dbbf35b96557 | 320 | /** @defgroup FSMC_Wrap_Mode FSMC Wrap Mode |
Kojto | 99:dbbf35b96557 | 321 | * @{ |
Kojto | 99:dbbf35b96557 | 322 | */ |
Kojto | 99:dbbf35b96557 | 323 | #define FSMC_WRAP_MODE_DISABLE ((uint32_t)0x00000000) |
Kojto | 99:dbbf35b96557 | 324 | #define FSMC_WRAP_MODE_ENABLE ((uint32_t)0x00000400) |
Kojto | 99:dbbf35b96557 | 325 | /** |
Kojto | 99:dbbf35b96557 | 326 | * @} |
Kojto | 99:dbbf35b96557 | 327 | */ |
Kojto | 99:dbbf35b96557 | 328 | |
Kojto | 99:dbbf35b96557 | 329 | /** @defgroup FSMC_Wait_Timing FSMC Wait Timing |
bogdanm | 86:04dd9b1680ae | 330 | * @{ |
bogdanm | 86:04dd9b1680ae | 331 | */ |
bogdanm | 86:04dd9b1680ae | 332 | #define FSMC_WAIT_TIMING_BEFORE_WS ((uint32_t)0x00000000) |
bogdanm | 86:04dd9b1680ae | 333 | #define FSMC_WAIT_TIMING_DURING_WS ((uint32_t)0x00000800) |
bogdanm | 86:04dd9b1680ae | 334 | /** |
bogdanm | 86:04dd9b1680ae | 335 | * @} |
bogdanm | 86:04dd9b1680ae | 336 | */ |
bogdanm | 86:04dd9b1680ae | 337 | |
Kojto | 99:dbbf35b96557 | 338 | /** @defgroup FSMC_Write_Operation FSMC Write Operation |
bogdanm | 86:04dd9b1680ae | 339 | * @{ |
bogdanm | 86:04dd9b1680ae | 340 | */ |
bogdanm | 86:04dd9b1680ae | 341 | #define FSMC_WRITE_OPERATION_DISABLE ((uint32_t)0x00000000) |
bogdanm | 86:04dd9b1680ae | 342 | #define FSMC_WRITE_OPERATION_ENABLE ((uint32_t)0x00001000) |
bogdanm | 86:04dd9b1680ae | 343 | /** |
bogdanm | 86:04dd9b1680ae | 344 | * @} |
bogdanm | 86:04dd9b1680ae | 345 | */ |
bogdanm | 86:04dd9b1680ae | 346 | |
Kojto | 99:dbbf35b96557 | 347 | /** @defgroup FSMC_Wait_Signal FSMC Wait Signal |
Kojto | 99:dbbf35b96557 | 348 | * @{ |
Kojto | 99:dbbf35b96557 | 349 | */ |
Kojto | 99:dbbf35b96557 | 350 | #define FSMC_WAIT_SIGNAL_DISABLE ((uint32_t)0x00000000) |
Kojto | 99:dbbf35b96557 | 351 | #define FSMC_WAIT_SIGNAL_ENABLE ((uint32_t)0x00002000) |
Kojto | 99:dbbf35b96557 | 352 | /** |
Kojto | 99:dbbf35b96557 | 353 | * @} |
Kojto | 99:dbbf35b96557 | 354 | */ |
Kojto | 99:dbbf35b96557 | 355 | |
Kojto | 99:dbbf35b96557 | 356 | /** @defgroup FSMC_Extended_Mode FSMC Extended Mode |
Kojto | 99:dbbf35b96557 | 357 | * @{ |
Kojto | 99:dbbf35b96557 | 358 | */ |
Kojto | 99:dbbf35b96557 | 359 | #define FSMC_EXTENDED_MODE_DISABLE ((uint32_t)0x00000000) |
Kojto | 99:dbbf35b96557 | 360 | #define FSMC_EXTENDED_MODE_ENABLE ((uint32_t)0x00004000) |
Kojto | 99:dbbf35b96557 | 361 | /** |
Kojto | 99:dbbf35b96557 | 362 | * @} |
Kojto | 99:dbbf35b96557 | 363 | */ |
Kojto | 99:dbbf35b96557 | 364 | |
Kojto | 99:dbbf35b96557 | 365 | /** @defgroup FSMC_AsynchronousWait FSMC Asynchronous Wait |
bogdanm | 86:04dd9b1680ae | 366 | * @{ |
bogdanm | 86:04dd9b1680ae | 367 | */ |
bogdanm | 86:04dd9b1680ae | 368 | #define FSMC_ASYNCHRONOUS_WAIT_DISABLE ((uint32_t)0x00000000) |
bogdanm | 86:04dd9b1680ae | 369 | #define FSMC_ASYNCHRONOUS_WAIT_ENABLE ((uint32_t)0x00008000) |
bogdanm | 86:04dd9b1680ae | 370 | /** |
bogdanm | 86:04dd9b1680ae | 371 | * @} |
bogdanm | 86:04dd9b1680ae | 372 | */ |
bogdanm | 86:04dd9b1680ae | 373 | |
Kojto | 99:dbbf35b96557 | 374 | /** @defgroup FSMC_Write_Burst FSMC Write Burst |
bogdanm | 86:04dd9b1680ae | 375 | * @{ |
bogdanm | 86:04dd9b1680ae | 376 | */ |
bogdanm | 86:04dd9b1680ae | 377 | #define FSMC_WRITE_BURST_DISABLE ((uint32_t)0x00000000) |
bogdanm | 86:04dd9b1680ae | 378 | #define FSMC_WRITE_BURST_ENABLE ((uint32_t)0x00080000) |
bogdanm | 86:04dd9b1680ae | 379 | /** |
bogdanm | 86:04dd9b1680ae | 380 | * @} |
bogdanm | 86:04dd9b1680ae | 381 | */ |
bogdanm | 86:04dd9b1680ae | 382 | |
Kojto | 99:dbbf35b96557 | 383 | /** @defgroup FSMC_Continous_Clock FSMC Continous Clock |
bogdanm | 86:04dd9b1680ae | 384 | * @{ |
bogdanm | 86:04dd9b1680ae | 385 | */ |
Kojto | 99:dbbf35b96557 | 386 | #define FSMC_CONTINUOUS_CLOCK_SYNC_ONLY ((uint32_t)0x00000000) |
Kojto | 99:dbbf35b96557 | 387 | #define FSMC_CONTINUOUS_CLOCK_SYNC_ASYNC ((uint32_t)0x00100000) |
bogdanm | 86:04dd9b1680ae | 388 | /** |
bogdanm | 86:04dd9b1680ae | 389 | * @} |
bogdanm | 86:04dd9b1680ae | 390 | */ |
bogdanm | 86:04dd9b1680ae | 391 | |
Kojto | 99:dbbf35b96557 | 392 | /** @defgroup FSMC_Access_Mode FSMC Access Mode |
bogdanm | 86:04dd9b1680ae | 393 | * @{ |
bogdanm | 86:04dd9b1680ae | 394 | */ |
bogdanm | 86:04dd9b1680ae | 395 | #define FSMC_ACCESS_MODE_A ((uint32_t)0x00000000) |
bogdanm | 86:04dd9b1680ae | 396 | #define FSMC_ACCESS_MODE_B ((uint32_t)0x10000000) |
bogdanm | 86:04dd9b1680ae | 397 | #define FSMC_ACCESS_MODE_C ((uint32_t)0x20000000) |
bogdanm | 86:04dd9b1680ae | 398 | #define FSMC_ACCESS_MODE_D ((uint32_t)0x30000000) |
bogdanm | 86:04dd9b1680ae | 399 | /** |
bogdanm | 86:04dd9b1680ae | 400 | * @} |
bogdanm | 86:04dd9b1680ae | 401 | */ |
bogdanm | 86:04dd9b1680ae | 402 | /** |
bogdanm | 86:04dd9b1680ae | 403 | * @} |
bogdanm | 86:04dd9b1680ae | 404 | */ |
bogdanm | 86:04dd9b1680ae | 405 | |
Kojto | 99:dbbf35b96557 | 406 | /** @defgroup FSMC_LL_NAND_Controller FSMC NAND and PCCARD Controller |
Kojto | 99:dbbf35b96557 | 407 | * @{ |
Kojto | 99:dbbf35b96557 | 408 | */ |
Kojto | 99:dbbf35b96557 | 409 | /** @defgroup FSMC_NAND_Bank FSMC NAND Bank |
Kojto | 99:dbbf35b96557 | 410 | * @{ |
Kojto | 99:dbbf35b96557 | 411 | */ |
Kojto | 99:dbbf35b96557 | 412 | #define FSMC_NAND_BANK2 ((uint32_t)0x00000010) |
Kojto | 99:dbbf35b96557 | 413 | #define FSMC_NAND_BANK3 ((uint32_t)0x00000100) |
Kojto | 99:dbbf35b96557 | 414 | /** |
Kojto | 99:dbbf35b96557 | 415 | * @} |
Kojto | 99:dbbf35b96557 | 416 | */ |
Kojto | 99:dbbf35b96557 | 417 | |
Kojto | 99:dbbf35b96557 | 418 | /** @defgroup FSMC_Wait_feature FSMC Wait feature |
bogdanm | 86:04dd9b1680ae | 419 | * @{ |
bogdanm | 86:04dd9b1680ae | 420 | */ |
bogdanm | 86:04dd9b1680ae | 421 | #define FSMC_NAND_PCC_WAIT_FEATURE_DISABLE ((uint32_t)0x00000000) |
bogdanm | 86:04dd9b1680ae | 422 | #define FSMC_NAND_PCC_WAIT_FEATURE_ENABLE ((uint32_t)0x00000002) |
bogdanm | 86:04dd9b1680ae | 423 | /** |
bogdanm | 86:04dd9b1680ae | 424 | * @} |
bogdanm | 86:04dd9b1680ae | 425 | */ |
bogdanm | 86:04dd9b1680ae | 426 | |
Kojto | 99:dbbf35b96557 | 427 | /** @defgroup FSMC_PCR_Memory_Type FSMC PCR Memory Type |
bogdanm | 86:04dd9b1680ae | 428 | * @{ |
bogdanm | 86:04dd9b1680ae | 429 | */ |
bogdanm | 86:04dd9b1680ae | 430 | #define FSMC_PCR_MEMORY_TYPE_PCCARD ((uint32_t)0x00000000) |
bogdanm | 86:04dd9b1680ae | 431 | #define FSMC_PCR_MEMORY_TYPE_NAND ((uint32_t)0x00000008) |
bogdanm | 86:04dd9b1680ae | 432 | /** |
bogdanm | 86:04dd9b1680ae | 433 | * @} |
bogdanm | 86:04dd9b1680ae | 434 | */ |
bogdanm | 86:04dd9b1680ae | 435 | |
Kojto | 99:dbbf35b96557 | 436 | /** @defgroup FSMC_NAND_Data_Width FSMC NAND Data Width |
bogdanm | 86:04dd9b1680ae | 437 | * @{ |
bogdanm | 86:04dd9b1680ae | 438 | */ |
bogdanm | 86:04dd9b1680ae | 439 | #define FSMC_NAND_PCC_MEM_BUS_WIDTH_8 ((uint32_t)0x00000000) |
bogdanm | 86:04dd9b1680ae | 440 | #define FSMC_NAND_PCC_MEM_BUS_WIDTH_16 ((uint32_t)0x00000010) |
bogdanm | 86:04dd9b1680ae | 441 | /** |
bogdanm | 86:04dd9b1680ae | 442 | * @} |
bogdanm | 86:04dd9b1680ae | 443 | */ |
bogdanm | 86:04dd9b1680ae | 444 | |
Kojto | 99:dbbf35b96557 | 445 | /** @defgroup FSMC_ECC FSMC ECC |
bogdanm | 86:04dd9b1680ae | 446 | * @{ |
bogdanm | 86:04dd9b1680ae | 447 | */ |
bogdanm | 86:04dd9b1680ae | 448 | #define FSMC_NAND_ECC_DISABLE ((uint32_t)0x00000000) |
bogdanm | 86:04dd9b1680ae | 449 | #define FSMC_NAND_ECC_ENABLE ((uint32_t)0x00000040) |
bogdanm | 86:04dd9b1680ae | 450 | /** |
bogdanm | 86:04dd9b1680ae | 451 | * @} |
bogdanm | 86:04dd9b1680ae | 452 | */ |
bogdanm | 86:04dd9b1680ae | 453 | |
Kojto | 99:dbbf35b96557 | 454 | /** @defgroup FSMC_ECC_Page_Size FSMC ECC Page Size |
bogdanm | 86:04dd9b1680ae | 455 | * @{ |
bogdanm | 86:04dd9b1680ae | 456 | */ |
bogdanm | 86:04dd9b1680ae | 457 | #define FSMC_NAND_ECC_PAGE_SIZE_256BYTE ((uint32_t)0x00000000) |
bogdanm | 86:04dd9b1680ae | 458 | #define FSMC_NAND_ECC_PAGE_SIZE_512BYTE ((uint32_t)0x00020000) |
bogdanm | 86:04dd9b1680ae | 459 | #define FSMC_NAND_ECC_PAGE_SIZE_1024BYTE ((uint32_t)0x00040000) |
bogdanm | 86:04dd9b1680ae | 460 | #define FSMC_NAND_ECC_PAGE_SIZE_2048BYTE ((uint32_t)0x00060000) |
bogdanm | 86:04dd9b1680ae | 461 | #define FSMC_NAND_ECC_PAGE_SIZE_4096BYTE ((uint32_t)0x00080000) |
bogdanm | 86:04dd9b1680ae | 462 | #define FSMC_NAND_ECC_PAGE_SIZE_8192BYTE ((uint32_t)0x000A0000) |
bogdanm | 86:04dd9b1680ae | 463 | /** |
bogdanm | 86:04dd9b1680ae | 464 | * @} |
bogdanm | 86:04dd9b1680ae | 465 | */ |
bogdanm | 86:04dd9b1680ae | 466 | /** |
bogdanm | 86:04dd9b1680ae | 467 | * @} |
bogdanm | 86:04dd9b1680ae | 468 | */ |
bogdanm | 86:04dd9b1680ae | 469 | |
Kojto | 99:dbbf35b96557 | 470 | /** @defgroup FSMC_LL_Interrupt_definition FSMC Interrupt definition |
bogdanm | 86:04dd9b1680ae | 471 | * @{ |
bogdanm | 86:04dd9b1680ae | 472 | */ |
bogdanm | 86:04dd9b1680ae | 473 | #define FSMC_IT_RISING_EDGE ((uint32_t)0x00000008) |
bogdanm | 86:04dd9b1680ae | 474 | #define FSMC_IT_LEVEL ((uint32_t)0x00000010) |
bogdanm | 86:04dd9b1680ae | 475 | #define FSMC_IT_FALLING_EDGE ((uint32_t)0x00000020) |
bogdanm | 86:04dd9b1680ae | 476 | #define FSMC_IT_REFRESH_ERROR ((uint32_t)0x00004000) |
bogdanm | 86:04dd9b1680ae | 477 | /** |
bogdanm | 86:04dd9b1680ae | 478 | * @} |
bogdanm | 86:04dd9b1680ae | 479 | */ |
bogdanm | 86:04dd9b1680ae | 480 | |
Kojto | 99:dbbf35b96557 | 481 | /** @defgroup FSMC_LL_Flag_definition FSMC Flag definition |
bogdanm | 86:04dd9b1680ae | 482 | * @{ |
bogdanm | 86:04dd9b1680ae | 483 | */ |
bogdanm | 86:04dd9b1680ae | 484 | #define FSMC_FLAG_RISING_EDGE ((uint32_t)0x00000001) |
bogdanm | 86:04dd9b1680ae | 485 | #define FSMC_FLAG_LEVEL ((uint32_t)0x00000002) |
bogdanm | 86:04dd9b1680ae | 486 | #define FSMC_FLAG_FALLING_EDGE ((uint32_t)0x00000004) |
bogdanm | 86:04dd9b1680ae | 487 | #define FSMC_FLAG_FEMPT ((uint32_t)0x00000040) |
bogdanm | 86:04dd9b1680ae | 488 | /** |
bogdanm | 86:04dd9b1680ae | 489 | * @} |
bogdanm | 86:04dd9b1680ae | 490 | */ |
bogdanm | 86:04dd9b1680ae | 491 | |
Kojto | 99:dbbf35b96557 | 492 | /** @defgroup FSMC_LL_Alias_definition FSMC Alias definition |
Kojto | 99:dbbf35b96557 | 493 | * @{ |
bogdanm | 86:04dd9b1680ae | 494 | */ |
Kojto | 99:dbbf35b96557 | 495 | #define FSMC_NORSRAM_TypeDef FSMC_Bank1_TypeDef |
Kojto | 99:dbbf35b96557 | 496 | #define FSMC_NORSRAM_EXTENDED_TypeDef FSMC_Bank1E_TypeDef |
Kojto | 99:dbbf35b96557 | 497 | #define FSMC_NAND_TypeDef FSMC_Bank2_3_TypeDef |
Kojto | 99:dbbf35b96557 | 498 | #define FSMC_PCCARD_TypeDef FSMC_Bank4_TypeDef |
bogdanm | 86:04dd9b1680ae | 499 | |
Kojto | 99:dbbf35b96557 | 500 | #define FSMC_NORSRAM_DEVICE FSMC_Bank1 |
Kojto | 99:dbbf35b96557 | 501 | #define FSMC_NORSRAM_EXTENDED_DEVICE FSMC_Bank1E |
Kojto | 99:dbbf35b96557 | 502 | #define FSMC_NAND_DEVICE FSMC_Bank2_3 |
Kojto | 99:dbbf35b96557 | 503 | #define FSMC_PCCARD_DEVICE FSMC_Bank4 |
bogdanm | 86:04dd9b1680ae | 504 | |
bogdanm | 86:04dd9b1680ae | 505 | #define FMC_NORSRAM_TypeDef FSMC_NORSRAM_TypeDef |
bogdanm | 86:04dd9b1680ae | 506 | #define FMC_NORSRAM_EXTENDED_TypeDef FSMC_NORSRAM_EXTENDED_TypeDef |
bogdanm | 86:04dd9b1680ae | 507 | #define FMC_NORSRAM_InitTypeDef FSMC_NORSRAM_InitTypeDef |
bogdanm | 86:04dd9b1680ae | 508 | #define FMC_NORSRAM_TimingTypeDef FSMC_NORSRAM_TimingTypeDef |
bogdanm | 86:04dd9b1680ae | 509 | |
bogdanm | 86:04dd9b1680ae | 510 | #define FMC_NORSRAM_Init FSMC_NORSRAM_Init |
bogdanm | 86:04dd9b1680ae | 511 | #define FMC_NORSRAM_Timing_Init FSMC_NORSRAM_Timing_Init |
bogdanm | 86:04dd9b1680ae | 512 | #define FMC_NORSRAM_Extended_Timing_Init FSMC_NORSRAM_Extended_Timing_Init |
bogdanm | 86:04dd9b1680ae | 513 | #define FMC_NORSRAM_DeInit FSMC_NORSRAM_DeInit |
bogdanm | 86:04dd9b1680ae | 514 | #define FMC_NORSRAM_WriteOperation_Enable FSMC_NORSRAM_WriteOperation_Enable |
bogdanm | 86:04dd9b1680ae | 515 | #define FMC_NORSRAM_WriteOperation_Disable FSMC_NORSRAM_WriteOperation_Disable |
bogdanm | 86:04dd9b1680ae | 516 | |
bogdanm | 86:04dd9b1680ae | 517 | #define __FMC_NORSRAM_ENABLE __FSMC_NORSRAM_ENABLE |
bogdanm | 86:04dd9b1680ae | 518 | #define __FMC_NORSRAM_DISABLE __FSMC_NORSRAM_DISABLE |
bogdanm | 86:04dd9b1680ae | 519 | |
bogdanm | 86:04dd9b1680ae | 520 | #define FMC_NAND_InitTypeDef FSMC_NAND_InitTypeDef |
bogdanm | 86:04dd9b1680ae | 521 | #define FMC_PCCARD_InitTypeDef FSMC_PCCARD_InitTypeDef |
bogdanm | 86:04dd9b1680ae | 522 | #define FMC_NAND_PCC_TimingTypeDef FSMC_NAND_PCC_TimingTypeDef |
bogdanm | 86:04dd9b1680ae | 523 | |
bogdanm | 86:04dd9b1680ae | 524 | #define FMC_NAND_Init FSMC_NAND_Init |
bogdanm | 86:04dd9b1680ae | 525 | #define FMC_NAND_CommonSpace_Timing_Init FSMC_NAND_CommonSpace_Timing_Init |
bogdanm | 86:04dd9b1680ae | 526 | #define FMC_NAND_AttributeSpace_Timing_Init FSMC_NAND_AttributeSpace_Timing_Init |
bogdanm | 86:04dd9b1680ae | 527 | #define FMC_NAND_DeInit FSMC_NAND_DeInit |
bogdanm | 86:04dd9b1680ae | 528 | #define FMC_NAND_ECC_Enable FSMC_NAND_ECC_Enable |
bogdanm | 86:04dd9b1680ae | 529 | #define FMC_NAND_ECC_Disable FSMC_NAND_ECC_Disable |
bogdanm | 86:04dd9b1680ae | 530 | #define FMC_NAND_GetECC FSMC_NAND_GetECC |
bogdanm | 86:04dd9b1680ae | 531 | #define FMC_PCCARD_Init FSMC_PCCARD_Init |
bogdanm | 86:04dd9b1680ae | 532 | #define FMC_PCCARD_CommonSpace_Timing_Init FSMC_PCCARD_CommonSpace_Timing_Init |
bogdanm | 86:04dd9b1680ae | 533 | #define FMC_PCCARD_AttributeSpace_Timing_Init FSMC_PCCARD_AttributeSpace_Timing_Init |
bogdanm | 86:04dd9b1680ae | 534 | #define FMC_PCCARD_IOSpace_Timing_Init FSMC_PCCARD_IOSpace_Timing_Init |
bogdanm | 86:04dd9b1680ae | 535 | #define FMC_PCCARD_DeInit FSMC_PCCARD_DeInit |
bogdanm | 86:04dd9b1680ae | 536 | |
bogdanm | 86:04dd9b1680ae | 537 | #define __FMC_NAND_ENABLE __FSMC_NAND_ENABLE |
bogdanm | 86:04dd9b1680ae | 538 | #define __FMC_NAND_DISABLE __FSMC_NAND_DISABLE |
bogdanm | 86:04dd9b1680ae | 539 | #define __FMC_PCCARD_ENABLE __FSMC_PCCARD_ENABLE |
bogdanm | 86:04dd9b1680ae | 540 | #define __FMC_PCCARD_DISABLE __FSMC_PCCARD_DISABLE |
bogdanm | 86:04dd9b1680ae | 541 | #define __FMC_NAND_ENABLE_IT __FSMC_NAND_ENABLE_IT |
bogdanm | 86:04dd9b1680ae | 542 | #define __FMC_NAND_DISABLE_IT __FSMC_NAND_DISABLE_IT |
bogdanm | 86:04dd9b1680ae | 543 | #define __FMC_NAND_GET_FLAG __FSMC_NAND_GET_FLAG |
bogdanm | 86:04dd9b1680ae | 544 | #define __FMC_NAND_CLEAR_FLAG __FSMC_NAND_CLEAR_FLAG |
bogdanm | 86:04dd9b1680ae | 545 | #define __FMC_PCCARD_ENABLE_IT __FSMC_PCCARD_ENABLE_IT |
bogdanm | 86:04dd9b1680ae | 546 | #define __FMC_PCCARD_DISABLE_IT __FSMC_PCCARD_DISABLE_IT |
bogdanm | 86:04dd9b1680ae | 547 | #define __FMC_PCCARD_GET_FLAG __FSMC_PCCARD_GET_FLAG |
bogdanm | 86:04dd9b1680ae | 548 | #define __FMC_PCCARD_CLEAR_FLAG __FSMC_PCCARD_CLEAR_FLAG |
bogdanm | 86:04dd9b1680ae | 549 | |
bogdanm | 86:04dd9b1680ae | 550 | #define FMC_NORSRAM_TypeDef FSMC_NORSRAM_TypeDef |
bogdanm | 86:04dd9b1680ae | 551 | #define FMC_NORSRAM_EXTENDED_TypeDef FSMC_NORSRAM_EXTENDED_TypeDef |
bogdanm | 86:04dd9b1680ae | 552 | #define FMC_NAND_TypeDef FSMC_NAND_TypeDef |
bogdanm | 86:04dd9b1680ae | 553 | #define FMC_PCCARD_TypeDef FSMC_PCCARD_TypeDef |
bogdanm | 86:04dd9b1680ae | 554 | |
bogdanm | 86:04dd9b1680ae | 555 | #define FMC_NORSRAM_DEVICE FSMC_NORSRAM_DEVICE |
bogdanm | 86:04dd9b1680ae | 556 | #define FMC_NORSRAM_EXTENDED_DEVICE FSMC_NORSRAM_EXTENDED_DEVICE |
bogdanm | 86:04dd9b1680ae | 557 | #define FMC_NAND_DEVICE FSMC_NAND_DEVICE |
bogdanm | 86:04dd9b1680ae | 558 | #define FMC_PCCARD_DEVICE FSMC_PCCARD_DEVICE |
bogdanm | 86:04dd9b1680ae | 559 | |
bogdanm | 86:04dd9b1680ae | 560 | #define FMC_NAND_BANK2 FSMC_NAND_BANK2 |
bogdanm | 86:04dd9b1680ae | 561 | |
bogdanm | 86:04dd9b1680ae | 562 | #define FMC_NORSRAM_BANK1 FSMC_NORSRAM_BANK1 |
bogdanm | 86:04dd9b1680ae | 563 | #define FMC_NORSRAM_BANK2 FSMC_NORSRAM_BANK2 |
bogdanm | 86:04dd9b1680ae | 564 | #define FMC_NORSRAM_BANK3 FSMC_NORSRAM_BANK3 |
bogdanm | 86:04dd9b1680ae | 565 | |
bogdanm | 86:04dd9b1680ae | 566 | #define FMC_IT_RISING_EDGE FSMC_IT_RISING_EDGE |
bogdanm | 86:04dd9b1680ae | 567 | #define FMC_IT_LEVEL FSMC_IT_LEVEL |
bogdanm | 86:04dd9b1680ae | 568 | #define FMC_IT_FALLING_EDGE FSMC_IT_FALLING_EDGE |
bogdanm | 86:04dd9b1680ae | 569 | #define FMC_IT_REFRESH_ERROR FSMC_IT_REFRESH_ERROR |
bogdanm | 86:04dd9b1680ae | 570 | |
bogdanm | 86:04dd9b1680ae | 571 | #define FMC_FLAG_RISING_EDGE FSMC_FLAG_RISING_EDGE |
bogdanm | 86:04dd9b1680ae | 572 | #define FMC_FLAG_LEVEL FSMC_FLAG_LEVEL |
bogdanm | 86:04dd9b1680ae | 573 | #define FMC_FLAG_FALLING_EDGE FSMC_FLAG_FALLING_EDGE |
bogdanm | 86:04dd9b1680ae | 574 | #define FMC_FLAG_FEMPT FSMC_FLAG_FEMPT |
Kojto | 99:dbbf35b96557 | 575 | /** |
Kojto | 99:dbbf35b96557 | 576 | * @} |
Kojto | 99:dbbf35b96557 | 577 | */ |
bogdanm | 86:04dd9b1680ae | 578 | |
Kojto | 99:dbbf35b96557 | 579 | /** |
Kojto | 99:dbbf35b96557 | 580 | * @} |
Kojto | 99:dbbf35b96557 | 581 | */ |
Kojto | 99:dbbf35b96557 | 582 | |
Kojto | 99:dbbf35b96557 | 583 | /* Private macro -------------------------------------------------------------*/ |
Kojto | 99:dbbf35b96557 | 584 | /** @defgroup FSMC_LL_Private_Macros FSMC Private Macros |
Kojto | 99:dbbf35b96557 | 585 | * @{ |
Kojto | 99:dbbf35b96557 | 586 | */ |
Kojto | 99:dbbf35b96557 | 587 | |
Kojto | 99:dbbf35b96557 | 588 | /** @defgroup FSMC_LL_NOR_Macros FSMC NOR/SRAM Exported Macros |
Kojto | 99:dbbf35b96557 | 589 | * @brief macros to handle NOR device enable/disable and read/write operations |
Kojto | 99:dbbf35b96557 | 590 | * @{ |
Kojto | 99:dbbf35b96557 | 591 | */ |
Kojto | 99:dbbf35b96557 | 592 | /** |
Kojto | 99:dbbf35b96557 | 593 | * @brief Enable the NORSRAM device access. |
Kojto | 99:dbbf35b96557 | 594 | * @param __INSTANCE__: FSMC_NORSRAM Instance |
Kojto | 99:dbbf35b96557 | 595 | * @param __BANK__: FSMC_NORSRAM Bank |
Kojto | 99:dbbf35b96557 | 596 | * @retval none |
Kojto | 99:dbbf35b96557 | 597 | */ |
Kojto | 99:dbbf35b96557 | 598 | #define __FSMC_NORSRAM_ENABLE(__INSTANCE__, __BANK__) ((__INSTANCE__)->BTCR[(__BANK__)] |= FSMC_BCR1_MBKEN) |
Kojto | 99:dbbf35b96557 | 599 | |
Kojto | 99:dbbf35b96557 | 600 | /** |
Kojto | 99:dbbf35b96557 | 601 | * @brief Disable the NORSRAM device access. |
Kojto | 99:dbbf35b96557 | 602 | * @param __INSTANCE__: FSMC_NORSRAM Instance |
Kojto | 99:dbbf35b96557 | 603 | * @param __BANK__: FSMC_NORSRAM Bank |
Kojto | 99:dbbf35b96557 | 604 | * @retval none |
Kojto | 99:dbbf35b96557 | 605 | */ |
Kojto | 99:dbbf35b96557 | 606 | #define __FSMC_NORSRAM_DISABLE(__INSTANCE__, __BANK__) ((__INSTANCE__)->BTCR[(__BANK__)] &= ~FSMC_BCR1_MBKEN) |
Kojto | 99:dbbf35b96557 | 607 | /** |
Kojto | 99:dbbf35b96557 | 608 | * @} |
Kojto | 99:dbbf35b96557 | 609 | */ |
Kojto | 99:dbbf35b96557 | 610 | |
Kojto | 99:dbbf35b96557 | 611 | /** @defgroup FSMC_LL_NAND_Macros FSMC NAND Macros |
Kojto | 99:dbbf35b96557 | 612 | * @brief macros to handle NAND device enable/disable |
Kojto | 99:dbbf35b96557 | 613 | * @{ |
Kojto | 99:dbbf35b96557 | 614 | */ |
Kojto | 99:dbbf35b96557 | 615 | /** |
Kojto | 99:dbbf35b96557 | 616 | * @brief Enable the NAND device access. |
Kojto | 99:dbbf35b96557 | 617 | * @param __INSTANCE__: FSMC_NAND Instance |
Kojto | 99:dbbf35b96557 | 618 | * @param __BANK__: FSMC_NAND Bank |
Kojto | 99:dbbf35b96557 | 619 | * @retval none |
Kojto | 99:dbbf35b96557 | 620 | */ |
Kojto | 99:dbbf35b96557 | 621 | #define __FSMC_NAND_ENABLE(__INSTANCE__, __BANK__) (((__BANK__) == FSMC_NAND_BANK2)? ((__INSTANCE__)->PCR2 |= FSMC_PCR2_PBKEN): \ |
Kojto | 99:dbbf35b96557 | 622 | ((__INSTANCE__)->PCR3 |= FSMC_PCR3_PBKEN)) |
Kojto | 99:dbbf35b96557 | 623 | |
Kojto | 99:dbbf35b96557 | 624 | /** |
Kojto | 99:dbbf35b96557 | 625 | * @brief Disable the NAND device access. |
Kojto | 99:dbbf35b96557 | 626 | * @param __INSTANCE__: FSMC_NAND Instance |
Kojto | 99:dbbf35b96557 | 627 | * @param __BANK__: FSMC_NAND Bank |
Kojto | 99:dbbf35b96557 | 628 | * @retval none |
Kojto | 99:dbbf35b96557 | 629 | */ |
Kojto | 99:dbbf35b96557 | 630 | #define __FSMC_NAND_DISABLE(__INSTANCE__, __BANK__) (((__BANK__) == FSMC_NAND_BANK2)? ((__INSTANCE__)->PCR2 &= ~FSMC_PCR2_PBKEN): \ |
Kojto | 99:dbbf35b96557 | 631 | ((__INSTANCE__)->PCR3 &= ~FSMC_PCR3_PBKEN)) |
Kojto | 99:dbbf35b96557 | 632 | /** |
Kojto | 99:dbbf35b96557 | 633 | * @} |
Kojto | 99:dbbf35b96557 | 634 | */ |
Kojto | 99:dbbf35b96557 | 635 | |
Kojto | 99:dbbf35b96557 | 636 | /** @defgroup FSMC_LL_PCCARD_Macros FSMC PCCARD Macros |
Kojto | 99:dbbf35b96557 | 637 | * @brief macros to handle SRAM read/write operations |
Kojto | 99:dbbf35b96557 | 638 | * @{ |
Kojto | 99:dbbf35b96557 | 639 | */ |
Kojto | 99:dbbf35b96557 | 640 | /** |
Kojto | 99:dbbf35b96557 | 641 | * @brief Enable the PCCARD device access. |
Kojto | 99:dbbf35b96557 | 642 | * @param __INSTANCE__: FSMC_PCCARD Instance |
Kojto | 99:dbbf35b96557 | 643 | * @retval none |
Kojto | 99:dbbf35b96557 | 644 | */ |
Kojto | 99:dbbf35b96557 | 645 | #define __FSMC_PCCARD_ENABLE(__INSTANCE__) ((__INSTANCE__)->PCR4 |= FSMC_PCR4_PBKEN) |
Kojto | 99:dbbf35b96557 | 646 | |
Kojto | 99:dbbf35b96557 | 647 | /** |
Kojto | 99:dbbf35b96557 | 648 | * @brief Disable the PCCARD device access. |
Kojto | 99:dbbf35b96557 | 649 | * @param __INSTANCE__: FSMC_PCCARD Instance |
Kojto | 99:dbbf35b96557 | 650 | * @retval none |
Kojto | 99:dbbf35b96557 | 651 | */ |
Kojto | 99:dbbf35b96557 | 652 | #define __FSMC_PCCARD_DISABLE(__INSTANCE__) ((__INSTANCE__)->PCR4 &= ~FSMC_PCR4_PBKEN) |
Kojto | 99:dbbf35b96557 | 653 | /** |
Kojto | 99:dbbf35b96557 | 654 | * @} |
Kojto | 99:dbbf35b96557 | 655 | */ |
Kojto | 99:dbbf35b96557 | 656 | |
Kojto | 99:dbbf35b96557 | 657 | /** @defgroup FSMC_LL_Flag_Interrupt_Macros FSMC Flag&Interrupt Macros |
Kojto | 99:dbbf35b96557 | 658 | * @brief macros to handle FSMC flags and interrupts |
Kojto | 99:dbbf35b96557 | 659 | * @{ |
Kojto | 99:dbbf35b96557 | 660 | */ |
Kojto | 99:dbbf35b96557 | 661 | /** |
Kojto | 99:dbbf35b96557 | 662 | * @brief Enable the NAND device interrupt. |
Kojto | 99:dbbf35b96557 | 663 | * @param __INSTANCE__: FSMC_NAND Instance |
Kojto | 99:dbbf35b96557 | 664 | * @param __BANK__: FSMC_NAND Bank |
Kojto | 99:dbbf35b96557 | 665 | * @param __INTERRUPT__: FSMC_NAND interrupt |
Kojto | 99:dbbf35b96557 | 666 | * This parameter can be any combination of the following values: |
Kojto | 99:dbbf35b96557 | 667 | * @arg FSMC_IT_RISING_EDGE: Interrupt rising edge. |
Kojto | 99:dbbf35b96557 | 668 | * @arg FSMC_IT_LEVEL: Interrupt level. |
Kojto | 99:dbbf35b96557 | 669 | * @arg FSMC_IT_FALLING_EDGE: Interrupt falling edge. |
Kojto | 99:dbbf35b96557 | 670 | * @retval None |
Kojto | 99:dbbf35b96557 | 671 | */ |
Kojto | 99:dbbf35b96557 | 672 | #define __FSMC_NAND_ENABLE_IT(__INSTANCE__, __BANK__, __INTERRUPT__) (((__BANK__) == FSMC_NAND_BANK2)? ((__INSTANCE__)->SR2 |= (__INTERRUPT__)): \ |
Kojto | 99:dbbf35b96557 | 673 | ((__INSTANCE__)->SR3 |= (__INTERRUPT__))) |
Kojto | 99:dbbf35b96557 | 674 | |
Kojto | 99:dbbf35b96557 | 675 | /** |
Kojto | 99:dbbf35b96557 | 676 | * @brief Disable the NAND device interrupt. |
Kojto | 99:dbbf35b96557 | 677 | * @param __INSTANCE__: FSMC_NAND Instance |
Kojto | 99:dbbf35b96557 | 678 | * @param __BANK__: FSMC_NAND Bank |
Kojto | 99:dbbf35b96557 | 679 | * @param __INTERRUPT__: FSMC_NAND interrupt |
Kojto | 99:dbbf35b96557 | 680 | * This parameter can be any combination of the following values: |
Kojto | 99:dbbf35b96557 | 681 | * @arg FSMC_IT_RISING_EDGE: Interrupt rising edge. |
Kojto | 99:dbbf35b96557 | 682 | * @arg FSMC_IT_LEVEL: Interrupt level. |
Kojto | 99:dbbf35b96557 | 683 | * @arg FSMC_IT_FALLING_EDGE: Interrupt falling edge. |
Kojto | 99:dbbf35b96557 | 684 | * @retval None |
Kojto | 99:dbbf35b96557 | 685 | */ |
Kojto | 99:dbbf35b96557 | 686 | #define __FSMC_NAND_DISABLE_IT(__INSTANCE__, __BANK__, __INTERRUPT__) (((__BANK__) == FSMC_NAND_BANK2)? ((__INSTANCE__)->SR2 &= ~(__INTERRUPT__)): \ |
Kojto | 99:dbbf35b96557 | 687 | ((__INSTANCE__)->SR3 &= ~(__INTERRUPT__))) |
Kojto | 99:dbbf35b96557 | 688 | |
Kojto | 99:dbbf35b96557 | 689 | /** |
Kojto | 99:dbbf35b96557 | 690 | * @brief Get flag status of the NAND device. |
Kojto | 99:dbbf35b96557 | 691 | * @param __INSTANCE__: FSMC_NAND Instance |
Kojto | 99:dbbf35b96557 | 692 | * @param __BANK__ : FSMC_NAND Bank |
Kojto | 99:dbbf35b96557 | 693 | * @param __FLAG__ : FSMC_NAND flag |
Kojto | 99:dbbf35b96557 | 694 | * This parameter can be any combination of the following values: |
Kojto | 99:dbbf35b96557 | 695 | * @arg FSMC_FLAG_RISING_EDGE: Interrupt rising edge flag. |
Kojto | 99:dbbf35b96557 | 696 | * @arg FSMC_FLAG_LEVEL: Interrupt level edge flag. |
Kojto | 99:dbbf35b96557 | 697 | * @arg FSMC_FLAG_FALLING_EDGE: Interrupt falling edge flag. |
Kojto | 99:dbbf35b96557 | 698 | * @arg FSMC_FLAG_FEMPT: FIFO empty flag. |
Kojto | 99:dbbf35b96557 | 699 | * @retval The state of FLAG (SET or RESET). |
Kojto | 99:dbbf35b96557 | 700 | */ |
Kojto | 99:dbbf35b96557 | 701 | #define __FSMC_NAND_GET_FLAG(__INSTANCE__, __BANK__, __FLAG__) (((__BANK__) == FSMC_NAND_BANK2)? (((__INSTANCE__)->SR2 &(__FLAG__)) == (__FLAG__)): \ |
Kojto | 99:dbbf35b96557 | 702 | (((__INSTANCE__)->SR3 &(__FLAG__)) == (__FLAG__))) |
Kojto | 99:dbbf35b96557 | 703 | /** |
Kojto | 99:dbbf35b96557 | 704 | * @brief Clear flag status of the NAND device. |
Kojto | 99:dbbf35b96557 | 705 | * @param __INSTANCE__: FSMC_NAND Instance |
Kojto | 99:dbbf35b96557 | 706 | * @param __BANK__: FSMC_NAND Bank |
Kojto | 99:dbbf35b96557 | 707 | * @param __FLAG__: FSMC_NAND flag |
Kojto | 99:dbbf35b96557 | 708 | * This parameter can be any combination of the following values: |
Kojto | 99:dbbf35b96557 | 709 | * @arg FSMC_FLAG_RISING_EDGE: Interrupt rising edge flag. |
Kojto | 99:dbbf35b96557 | 710 | * @arg FSMC_FLAG_LEVEL: Interrupt level edge flag. |
Kojto | 99:dbbf35b96557 | 711 | * @arg FSMC_FLAG_FALLING_EDGE: Interrupt falling edge flag. |
Kojto | 99:dbbf35b96557 | 712 | * @arg FSMC_FLAG_FEMPT: FIFO empty flag. |
Kojto | 99:dbbf35b96557 | 713 | * @retval None |
Kojto | 99:dbbf35b96557 | 714 | */ |
Kojto | 99:dbbf35b96557 | 715 | #define __FSMC_NAND_CLEAR_FLAG(__INSTANCE__, __BANK__, __FLAG__) (((__BANK__) == FSMC_NAND_BANK2)? ((__INSTANCE__)->SR2 &= ~(__FLAG__)): \ |
Kojto | 99:dbbf35b96557 | 716 | ((__INSTANCE__)->SR3 &= ~(__FLAG__))) |
Kojto | 99:dbbf35b96557 | 717 | /** |
Kojto | 99:dbbf35b96557 | 718 | * @brief Enable the PCCARD device interrupt. |
Kojto | 99:dbbf35b96557 | 719 | * @param __INSTANCE__: FSMC_PCCARD Instance |
Kojto | 99:dbbf35b96557 | 720 | * @param __INTERRUPT__: FSMC_PCCARD interrupt |
Kojto | 99:dbbf35b96557 | 721 | * This parameter can be any combination of the following values: |
Kojto | 99:dbbf35b96557 | 722 | * @arg FSMC_IT_RISING_EDGE: Interrupt rising edge. |
Kojto | 99:dbbf35b96557 | 723 | * @arg FSMC_IT_LEVEL: Interrupt level. |
Kojto | 99:dbbf35b96557 | 724 | * @arg FSMC_IT_FALLING_EDGE: Interrupt falling edge. |
Kojto | 99:dbbf35b96557 | 725 | * @retval None |
Kojto | 99:dbbf35b96557 | 726 | */ |
Kojto | 99:dbbf35b96557 | 727 | #define __FSMC_PCCARD_ENABLE_IT(__INSTANCE__, __INTERRUPT__) ((__INSTANCE__)->SR4 |= (__INTERRUPT__)) |
Kojto | 99:dbbf35b96557 | 728 | |
Kojto | 99:dbbf35b96557 | 729 | /** |
Kojto | 99:dbbf35b96557 | 730 | * @brief Disable the PCCARD device interrupt. |
Kojto | 99:dbbf35b96557 | 731 | * @param __INSTANCE__: FSMC_PCCARD Instance |
Kojto | 99:dbbf35b96557 | 732 | * @param __INTERRUPT__: FSMC_PCCARD interrupt |
Kojto | 99:dbbf35b96557 | 733 | * This parameter can be any combination of the following values: |
Kojto | 99:dbbf35b96557 | 734 | * @arg FSMC_IT_RISING_EDGE: Interrupt rising edge. |
Kojto | 99:dbbf35b96557 | 735 | * @arg FSMC_IT_LEVEL: Interrupt level. |
Kojto | 99:dbbf35b96557 | 736 | * @arg FSMC_IT_FALLING_EDGE: Interrupt falling edge. |
Kojto | 99:dbbf35b96557 | 737 | * @retval None |
Kojto | 99:dbbf35b96557 | 738 | */ |
Kojto | 99:dbbf35b96557 | 739 | #define __FSMC_PCCARD_DISABLE_IT(__INSTANCE__, __INTERRUPT__) ((__INSTANCE__)->SR4 &= ~(__INTERRUPT__)) |
Kojto | 99:dbbf35b96557 | 740 | |
Kojto | 99:dbbf35b96557 | 741 | /** |
Kojto | 99:dbbf35b96557 | 742 | * @brief Get flag status of the PCCARD device. |
Kojto | 99:dbbf35b96557 | 743 | * @param __INSTANCE__: FSMC_PCCARD Instance |
Kojto | 99:dbbf35b96557 | 744 | * @param __FLAG__: FSMC_PCCARD flag |
Kojto | 99:dbbf35b96557 | 745 | * This parameter can be any combination of the following values: |
Kojto | 99:dbbf35b96557 | 746 | * @arg FSMC_FLAG_RISING_EDGE: Interrupt rising edge flag. |
Kojto | 99:dbbf35b96557 | 747 | * @arg FSMC_FLAG_LEVEL: Interrupt level edge flag. |
Kojto | 99:dbbf35b96557 | 748 | * @arg FSMC_FLAG_FALLING_EDGE: Interrupt falling edge flag. |
Kojto | 99:dbbf35b96557 | 749 | * @arg FSMC_FLAG_FEMPT: FIFO empty flag. |
Kojto | 99:dbbf35b96557 | 750 | * @retval The state of FLAG (SET or RESET). |
Kojto | 99:dbbf35b96557 | 751 | */ |
Kojto | 99:dbbf35b96557 | 752 | #define __FSMC_PCCARD_GET_FLAG(__INSTANCE__, __FLAG__) (((__INSTANCE__)->SR4 &(__FLAG__)) == (__FLAG__)) |
Kojto | 99:dbbf35b96557 | 753 | |
Kojto | 99:dbbf35b96557 | 754 | /** |
Kojto | 99:dbbf35b96557 | 755 | * @brief Clear flag status of the PCCARD device. |
Kojto | 99:dbbf35b96557 | 756 | * @param __INSTANCE__: FSMC_PCCARD Instance |
Kojto | 99:dbbf35b96557 | 757 | * @param __FLAG__: FSMC_PCCARD flag |
Kojto | 99:dbbf35b96557 | 758 | * This parameter can be any combination of the following values: |
Kojto | 99:dbbf35b96557 | 759 | * @arg FSMC_FLAG_RISING_EDGE: Interrupt rising edge flag. |
Kojto | 99:dbbf35b96557 | 760 | * @arg FSMC_FLAG_LEVEL: Interrupt level edge flag. |
Kojto | 99:dbbf35b96557 | 761 | * @arg FSMC_FLAG_FALLING_EDGE: Interrupt falling edge flag. |
Kojto | 99:dbbf35b96557 | 762 | * @arg FSMC_FLAG_FEMPT: FIFO empty flag. |
Kojto | 99:dbbf35b96557 | 763 | * @retval None |
Kojto | 99:dbbf35b96557 | 764 | */ |
Kojto | 99:dbbf35b96557 | 765 | #define __FSMC_PCCARD_CLEAR_FLAG(__INSTANCE__, __FLAG__) ((__INSTANCE__)->SR4 &= ~(__FLAG__)) |
Kojto | 99:dbbf35b96557 | 766 | /** |
Kojto | 99:dbbf35b96557 | 767 | * @} |
Kojto | 99:dbbf35b96557 | 768 | */ |
Kojto | 99:dbbf35b96557 | 769 | |
Kojto | 99:dbbf35b96557 | 770 | /** @defgroup FSMC_LL_Assert_Macros FSMC Assert Macros |
Kojto | 99:dbbf35b96557 | 771 | * @{ |
Kojto | 99:dbbf35b96557 | 772 | */ |
Kojto | 99:dbbf35b96557 | 773 | #define IS_FSMC_NORSRAM_BANK(__BANK__) (((__BANK__) == FSMC_NORSRAM_BANK1) || \ |
Kojto | 99:dbbf35b96557 | 774 | ((__BANK__) == FSMC_NORSRAM_BANK2) || \ |
Kojto | 99:dbbf35b96557 | 775 | ((__BANK__) == FSMC_NORSRAM_BANK3) || \ |
Kojto | 99:dbbf35b96557 | 776 | ((__BANK__) == FSMC_NORSRAM_BANK4)) |
Kojto | 99:dbbf35b96557 | 777 | |
Kojto | 99:dbbf35b96557 | 778 | #define IS_FSMC_MUX(__MUX__) (((__MUX__) == FSMC_DATA_ADDRESS_MUX_DISABLE) || \ |
Kojto | 99:dbbf35b96557 | 779 | ((__MUX__) == FSMC_DATA_ADDRESS_MUX_ENABLE)) |
Kojto | 99:dbbf35b96557 | 780 | |
Kojto | 99:dbbf35b96557 | 781 | #define IS_FSMC_MEMORY(__MEMORY__) (((__MEMORY__) == FSMC_MEMORY_TYPE_SRAM) || \ |
Kojto | 99:dbbf35b96557 | 782 | ((__MEMORY__) == FSMC_MEMORY_TYPE_PSRAM)|| \ |
Kojto | 99:dbbf35b96557 | 783 | ((__MEMORY__) == FSMC_MEMORY_TYPE_NOR)) |
Kojto | 99:dbbf35b96557 | 784 | |
Kojto | 99:dbbf35b96557 | 785 | #define IS_FSMC_NORSRAM_MEMORY_WIDTH(__WIDTH__) (((__WIDTH__) == FSMC_NORSRAM_MEM_BUS_WIDTH_8) || \ |
Kojto | 99:dbbf35b96557 | 786 | ((__WIDTH__) == FSMC_NORSRAM_MEM_BUS_WIDTH_16) || \ |
Kojto | 99:dbbf35b96557 | 787 | ((__WIDTH__) == FSMC_NORSRAM_MEM_BUS_WIDTH_32)) |
Kojto | 99:dbbf35b96557 | 788 | |
Kojto | 99:dbbf35b96557 | 789 | #define IS_FSMC_ACCESS_MODE(__MODE__) (((__MODE__) == FSMC_ACCESS_MODE_A) || \ |
Kojto | 99:dbbf35b96557 | 790 | ((__MODE__) == FSMC_ACCESS_MODE_B) || \ |
Kojto | 99:dbbf35b96557 | 791 | ((__MODE__) == FSMC_ACCESS_MODE_C) || \ |
Kojto | 99:dbbf35b96557 | 792 | ((__MODE__) == FSMC_ACCESS_MODE_D)) |
Kojto | 99:dbbf35b96557 | 793 | |
Kojto | 99:dbbf35b96557 | 794 | #define IS_FSMC_NAND_BANK(BANK) (((BANK) == FSMC_NAND_BANK2) || \ |
Kojto | 99:dbbf35b96557 | 795 | ((BANK) == FSMC_NAND_BANK3)) |
Kojto | 99:dbbf35b96557 | 796 | |
Kojto | 99:dbbf35b96557 | 797 | #define IS_FSMC_WAIT_FEATURE(FEATURE) (((FEATURE) == FSMC_NAND_PCC_WAIT_FEATURE_DISABLE) || \ |
Kojto | 99:dbbf35b96557 | 798 | ((FEATURE) == FSMC_NAND_PCC_WAIT_FEATURE_ENABLE)) |
Kojto | 99:dbbf35b96557 | 799 | |
Kojto | 99:dbbf35b96557 | 800 | #define IS_FSMC_NAND_MEMORY_WIDTH(WIDTH) (((WIDTH) == FSMC_NAND_PCC_MEM_BUS_WIDTH_8) || \ |
Kojto | 99:dbbf35b96557 | 801 | ((WIDTH) == FSMC_NAND_PCC_MEM_BUS_WIDTH_16)) |
Kojto | 99:dbbf35b96557 | 802 | |
Kojto | 99:dbbf35b96557 | 803 | #define IS_FSMC_ECC_STATE(STATE) (((STATE) == FSMC_NAND_ECC_DISABLE) || \ |
Kojto | 99:dbbf35b96557 | 804 | ((STATE) == FSMC_NAND_ECC_ENABLE)) |
Kojto | 99:dbbf35b96557 | 805 | |
Kojto | 99:dbbf35b96557 | 806 | #define IS_FSMC_ECCPAGE_SIZE(SIZE) (((SIZE) == FSMC_NAND_ECC_PAGE_SIZE_256BYTE) || \ |
Kojto | 99:dbbf35b96557 | 807 | ((SIZE) == FSMC_NAND_ECC_PAGE_SIZE_512BYTE) || \ |
Kojto | 99:dbbf35b96557 | 808 | ((SIZE) == FSMC_NAND_ECC_PAGE_SIZE_1024BYTE) || \ |
Kojto | 99:dbbf35b96557 | 809 | ((SIZE) == FSMC_NAND_ECC_PAGE_SIZE_2048BYTE) || \ |
Kojto | 99:dbbf35b96557 | 810 | ((SIZE) == FSMC_NAND_ECC_PAGE_SIZE_4096BYTE) || \ |
Kojto | 99:dbbf35b96557 | 811 | ((SIZE) == FSMC_NAND_ECC_PAGE_SIZE_8192BYTE)) |
Kojto | 99:dbbf35b96557 | 812 | |
Kojto | 99:dbbf35b96557 | 813 | #define IS_FSMC_TCLR_TIME(TIME) ((TIME) <= 255) |
Kojto | 99:dbbf35b96557 | 814 | |
Kojto | 99:dbbf35b96557 | 815 | #define IS_FSMC_TAR_TIME(TIME) ((TIME) <= 255) |
Kojto | 99:dbbf35b96557 | 816 | |
Kojto | 99:dbbf35b96557 | 817 | #define IS_FSMC_SETUP_TIME(TIME) ((TIME) <= 255) |
Kojto | 99:dbbf35b96557 | 818 | |
Kojto | 99:dbbf35b96557 | 819 | #define IS_FSMC_WAIT_TIME(TIME) ((TIME) <= 255) |
Kojto | 99:dbbf35b96557 | 820 | |
Kojto | 99:dbbf35b96557 | 821 | #define IS_FSMC_HOLD_TIME(TIME) ((TIME) <= 255) |
Kojto | 99:dbbf35b96557 | 822 | |
Kojto | 99:dbbf35b96557 | 823 | #define IS_FSMC_HIZ_TIME(TIME) ((TIME) <= 255) |
Kojto | 99:dbbf35b96557 | 824 | |
Kojto | 99:dbbf35b96557 | 825 | #define IS_FSMC_NORSRAM_DEVICE(__INSTANCE__) ((__INSTANCE__) == FSMC_NORSRAM_DEVICE) |
Kojto | 99:dbbf35b96557 | 826 | |
Kojto | 99:dbbf35b96557 | 827 | #define IS_FSMC_NORSRAM_EXTENDED_DEVICE(__INSTANCE__) ((__INSTANCE__) == FSMC_NORSRAM_EXTENDED_DEVICE) |
Kojto | 99:dbbf35b96557 | 828 | |
Kojto | 99:dbbf35b96557 | 829 | #define IS_FSMC_NAND_DEVICE(INSTANCE) ((INSTANCE) == FSMC_NAND_DEVICE) |
Kojto | 99:dbbf35b96557 | 830 | |
Kojto | 99:dbbf35b96557 | 831 | #define IS_FSMC_PCCARD_DEVICE(INSTANCE) ((INSTANCE) == FSMC_PCCARD_DEVICE) |
Kojto | 99:dbbf35b96557 | 832 | |
Kojto | 99:dbbf35b96557 | 833 | #define IS_FSMC_BURSTMODE(__STATE__) (((__STATE__) == FSMC_BURST_ACCESS_MODE_DISABLE) || \ |
Kojto | 99:dbbf35b96557 | 834 | ((__STATE__) == FSMC_BURST_ACCESS_MODE_ENABLE)) |
Kojto | 99:dbbf35b96557 | 835 | |
Kojto | 99:dbbf35b96557 | 836 | #define IS_FSMC_WAIT_POLARITY(__POLARITY__) (((__POLARITY__) == FSMC_WAIT_SIGNAL_POLARITY_LOW) || \ |
Kojto | 99:dbbf35b96557 | 837 | ((__POLARITY__) == FSMC_WAIT_SIGNAL_POLARITY_HIGH)) |
Kojto | 99:dbbf35b96557 | 838 | |
Kojto | 99:dbbf35b96557 | 839 | #define IS_FSMC_WRAP_MODE(__MODE__) (((__MODE__) == FSMC_WRAP_MODE_DISABLE) || \ |
Kojto | 99:dbbf35b96557 | 840 | ((__MODE__) == FSMC_WRAP_MODE_ENABLE)) |
Kojto | 99:dbbf35b96557 | 841 | |
Kojto | 99:dbbf35b96557 | 842 | #define IS_FSMC_WAIT_SIGNAL_ACTIVE(__ACTIVE__) (((__ACTIVE__) == FSMC_WAIT_TIMING_BEFORE_WS) || \ |
Kojto | 99:dbbf35b96557 | 843 | ((__ACTIVE__) == FSMC_WAIT_TIMING_DURING_WS)) |
Kojto | 99:dbbf35b96557 | 844 | |
Kojto | 99:dbbf35b96557 | 845 | #define IS_FSMC_WRITE_OPERATION(__OPERATION__) (((__OPERATION__) == FSMC_WRITE_OPERATION_DISABLE) || \ |
Kojto | 99:dbbf35b96557 | 846 | ((__OPERATION__) == FSMC_WRITE_OPERATION_ENABLE)) |
Kojto | 99:dbbf35b96557 | 847 | |
Kojto | 99:dbbf35b96557 | 848 | #define IS_FSMC_WAITE_SIGNAL(__SIGNAL__) (((__SIGNAL__) == FSMC_WAIT_SIGNAL_DISABLE) || \ |
Kojto | 99:dbbf35b96557 | 849 | ((__SIGNAL__) == FSMC_WAIT_SIGNAL_ENABLE)) |
Kojto | 99:dbbf35b96557 | 850 | |
Kojto | 99:dbbf35b96557 | 851 | #define IS_FSMC_EXTENDED_MODE(__MODE__) (((__MODE__) == FSMC_EXTENDED_MODE_DISABLE) || \ |
Kojto | 99:dbbf35b96557 | 852 | ((__MODE__) == FSMC_EXTENDED_MODE_ENABLE)) |
Kojto | 99:dbbf35b96557 | 853 | |
Kojto | 99:dbbf35b96557 | 854 | #define IS_FSMC_ASYNWAIT(__STATE__) (((__STATE__) == FSMC_ASYNCHRONOUS_WAIT_DISABLE) || \ |
Kojto | 99:dbbf35b96557 | 855 | ((__STATE__) == FSMC_ASYNCHRONOUS_WAIT_ENABLE)) |
Kojto | 99:dbbf35b96557 | 856 | |
Kojto | 99:dbbf35b96557 | 857 | #define IS_FSMC_DATA_LATENCY(__LATENCY__) (((__LATENCY__) > 1) && ((__LATENCY__) <= 17)) |
Kojto | 99:dbbf35b96557 | 858 | |
Kojto | 99:dbbf35b96557 | 859 | #define IS_FSMC_WRITE_BURST(__BURST__) (((__BURST__) == FSMC_WRITE_BURST_DISABLE) || \ |
Kojto | 99:dbbf35b96557 | 860 | ((__BURST__) == FSMC_WRITE_BURST_ENABLE)) |
Kojto | 99:dbbf35b96557 | 861 | |
Kojto | 99:dbbf35b96557 | 862 | #define IS_FSMC_ADDRESS_SETUP_TIME(__TIME__) ((__TIME__) <= 15) |
Kojto | 99:dbbf35b96557 | 863 | |
Kojto | 99:dbbf35b96557 | 864 | #define IS_FSMC_ADDRESS_HOLD_TIME(__TIME__) (((__TIME__) > 0) && ((__TIME__) <= 15)) |
Kojto | 99:dbbf35b96557 | 865 | |
Kojto | 99:dbbf35b96557 | 866 | #define IS_FSMC_DATASETUP_TIME(__TIME__) (((__TIME__) > 0) && ((__TIME__) <= 255)) |
Kojto | 99:dbbf35b96557 | 867 | |
Kojto | 99:dbbf35b96557 | 868 | #define IS_FSMC_TURNAROUND_TIME(__TIME__) ((__TIME__) <= 15) |
Kojto | 99:dbbf35b96557 | 869 | |
Kojto | 99:dbbf35b96557 | 870 | #define IS_FSMC_CONTINOUS_CLOCK(CCLOCK) (((CCLOCK) == FSMC_CONTINUOUS_CLOCK_SYNC_ONLY) || \ |
Kojto | 99:dbbf35b96557 | 871 | ((CCLOCK) == FSMC_CONTINUOUS_CLOCK_SYNC_ASYNC)) |
Kojto | 99:dbbf35b96557 | 872 | |
Kojto | 99:dbbf35b96557 | 873 | #define IS_FSMC_CLK_DIV(DIV) (((DIV) > 1) && ((DIV) <= 16)) |
Kojto | 99:dbbf35b96557 | 874 | |
Kojto | 99:dbbf35b96557 | 875 | /** |
Kojto | 99:dbbf35b96557 | 876 | * @} |
Kojto | 99:dbbf35b96557 | 877 | */ |
Kojto | 99:dbbf35b96557 | 878 | /** |
Kojto | 99:dbbf35b96557 | 879 | * @} |
Kojto | 99:dbbf35b96557 | 880 | */ |
Kojto | 99:dbbf35b96557 | 881 | |
Kojto | 99:dbbf35b96557 | 882 | /* Private functions ---------------------------------------------------------*/ |
Kojto | 99:dbbf35b96557 | 883 | /** @defgroup FSMC_LL_Private_Functions FSMC LL Private Functions |
Kojto | 99:dbbf35b96557 | 884 | * @{ |
Kojto | 99:dbbf35b96557 | 885 | */ |
Kojto | 99:dbbf35b96557 | 886 | |
Kojto | 99:dbbf35b96557 | 887 | /** @defgroup FSMC_LL_NORSRAM NOR SRAM |
Kojto | 99:dbbf35b96557 | 888 | * @{ |
Kojto | 99:dbbf35b96557 | 889 | */ |
Kojto | 99:dbbf35b96557 | 890 | |
Kojto | 99:dbbf35b96557 | 891 | /** @defgroup FSMC_LL_NORSRAM_Private_Functions_Group1 NOR SRAM Initialization/de-initialization functions |
Kojto | 99:dbbf35b96557 | 892 | * @{ |
Kojto | 99:dbbf35b96557 | 893 | */ |
Kojto | 99:dbbf35b96557 | 894 | HAL_StatusTypeDef FSMC_NORSRAM_Init(FSMC_NORSRAM_TypeDef *Device, FSMC_NORSRAM_InitTypeDef *Init); |
Kojto | 99:dbbf35b96557 | 895 | HAL_StatusTypeDef FSMC_NORSRAM_Timing_Init(FSMC_NORSRAM_TypeDef *Device, FSMC_NORSRAM_TimingTypeDef *Timing, uint32_t Bank); |
Kojto | 99:dbbf35b96557 | 896 | HAL_StatusTypeDef FSMC_NORSRAM_Extended_Timing_Init(FSMC_NORSRAM_EXTENDED_TypeDef *Device, FSMC_NORSRAM_TimingTypeDef *Timing, uint32_t Bank, uint32_t ExtendedMode); |
Kojto | 99:dbbf35b96557 | 897 | HAL_StatusTypeDef FSMC_NORSRAM_DeInit(FSMC_NORSRAM_TypeDef *Device, FSMC_NORSRAM_EXTENDED_TypeDef *ExDevice, uint32_t Bank); |
Kojto | 99:dbbf35b96557 | 898 | /** |
Kojto | 99:dbbf35b96557 | 899 | * @} |
Kojto | 99:dbbf35b96557 | 900 | */ |
Kojto | 99:dbbf35b96557 | 901 | |
Kojto | 99:dbbf35b96557 | 902 | /** @defgroup FSMC_LL_NORSRAM_Private_Functions_Group2 NOR SRAM Control functions |
Kojto | 99:dbbf35b96557 | 903 | * @{ |
Kojto | 99:dbbf35b96557 | 904 | */ |
Kojto | 99:dbbf35b96557 | 905 | HAL_StatusTypeDef FSMC_NORSRAM_WriteOperation_Enable(FSMC_NORSRAM_TypeDef *Device, uint32_t Bank); |
Kojto | 99:dbbf35b96557 | 906 | HAL_StatusTypeDef FSMC_NORSRAM_WriteOperation_Disable(FSMC_NORSRAM_TypeDef *Device, uint32_t Bank); |
Kojto | 99:dbbf35b96557 | 907 | /** |
Kojto | 99:dbbf35b96557 | 908 | * @} |
Kojto | 99:dbbf35b96557 | 909 | */ |
Kojto | 99:dbbf35b96557 | 910 | /** |
Kojto | 99:dbbf35b96557 | 911 | * @} |
Kojto | 99:dbbf35b96557 | 912 | */ |
Kojto | 99:dbbf35b96557 | 913 | |
Kojto | 99:dbbf35b96557 | 914 | /** @defgroup FSMC_LL_NAND NAND |
Kojto | 99:dbbf35b96557 | 915 | * @{ |
Kojto | 99:dbbf35b96557 | 916 | */ |
Kojto | 99:dbbf35b96557 | 917 | /** @defgroup FSMC_LL_NAND_Private_Functions_Group1 NAND Initialization/de-initialization functions |
Kojto | 99:dbbf35b96557 | 918 | * @{ |
Kojto | 99:dbbf35b96557 | 919 | */ |
Kojto | 99:dbbf35b96557 | 920 | HAL_StatusTypeDef FSMC_NAND_Init(FSMC_NAND_TypeDef *Device, FSMC_NAND_InitTypeDef *Init); |
Kojto | 99:dbbf35b96557 | 921 | HAL_StatusTypeDef FSMC_NAND_CommonSpace_Timing_Init(FSMC_NAND_TypeDef *Device, FSMC_NAND_PCC_TimingTypeDef *Timing, uint32_t Bank); |
Kojto | 99:dbbf35b96557 | 922 | HAL_StatusTypeDef FSMC_NAND_AttributeSpace_Timing_Init(FSMC_NAND_TypeDef *Device, FSMC_NAND_PCC_TimingTypeDef *Timing, uint32_t Bank); |
Kojto | 99:dbbf35b96557 | 923 | HAL_StatusTypeDef FSMC_NAND_DeInit(FSMC_NAND_TypeDef *Device, uint32_t Bank); |
Kojto | 99:dbbf35b96557 | 924 | /** |
Kojto | 99:dbbf35b96557 | 925 | * @} |
Kojto | 99:dbbf35b96557 | 926 | */ |
Kojto | 99:dbbf35b96557 | 927 | |
Kojto | 99:dbbf35b96557 | 928 | /** @defgroup FSMC_LL_NAND_Private_Functions_Group2 NAND Control functions |
Kojto | 99:dbbf35b96557 | 929 | * @{ |
Kojto | 99:dbbf35b96557 | 930 | */ |
Kojto | 99:dbbf35b96557 | 931 | HAL_StatusTypeDef FSMC_NAND_ECC_Enable(FSMC_NAND_TypeDef *Device, uint32_t Bank); |
Kojto | 99:dbbf35b96557 | 932 | HAL_StatusTypeDef FSMC_NAND_ECC_Disable(FSMC_NAND_TypeDef *Device, uint32_t Bank); |
Kojto | 99:dbbf35b96557 | 933 | HAL_StatusTypeDef FSMC_NAND_GetECC(FSMC_NAND_TypeDef *Device, uint32_t *ECCval, uint32_t Bank, uint32_t Timeout); |
Kojto | 99:dbbf35b96557 | 934 | /** |
Kojto | 99:dbbf35b96557 | 935 | * @} |
Kojto | 99:dbbf35b96557 | 936 | */ |
Kojto | 99:dbbf35b96557 | 937 | /** |
Kojto | 99:dbbf35b96557 | 938 | * @} |
Kojto | 99:dbbf35b96557 | 939 | */ |
Kojto | 99:dbbf35b96557 | 940 | |
Kojto | 99:dbbf35b96557 | 941 | /** @defgroup FSMC_LL_PCCARD PCCARD |
Kojto | 99:dbbf35b96557 | 942 | * @{ |
Kojto | 99:dbbf35b96557 | 943 | */ |
Kojto | 99:dbbf35b96557 | 944 | /** @defgroup FSMC_LL_PCCARD_Private_Functions_Group1 PCCARD Initialization/de-initialization functions |
Kojto | 99:dbbf35b96557 | 945 | * @{ |
Kojto | 99:dbbf35b96557 | 946 | */ |
Kojto | 99:dbbf35b96557 | 947 | HAL_StatusTypeDef FSMC_PCCARD_Init(FSMC_PCCARD_TypeDef *Device, FSMC_PCCARD_InitTypeDef *Init); |
Kojto | 99:dbbf35b96557 | 948 | HAL_StatusTypeDef FSMC_PCCARD_CommonSpace_Timing_Init(FSMC_PCCARD_TypeDef *Device, FSMC_NAND_PCC_TimingTypeDef *Timing); |
Kojto | 99:dbbf35b96557 | 949 | HAL_StatusTypeDef FSMC_PCCARD_AttributeSpace_Timing_Init(FSMC_PCCARD_TypeDef *Device, FSMC_NAND_PCC_TimingTypeDef *Timing); |
Kojto | 99:dbbf35b96557 | 950 | HAL_StatusTypeDef FSMC_PCCARD_IOSpace_Timing_Init(FSMC_PCCARD_TypeDef *Device, FSMC_NAND_PCC_TimingTypeDef *Timing); |
Kojto | 99:dbbf35b96557 | 951 | HAL_StatusTypeDef FSMC_PCCARD_DeInit(FSMC_PCCARD_TypeDef *Device); |
Kojto | 99:dbbf35b96557 | 952 | /** |
Kojto | 99:dbbf35b96557 | 953 | * @} |
Kojto | 99:dbbf35b96557 | 954 | */ |
Kojto | 99:dbbf35b96557 | 955 | /** |
Kojto | 99:dbbf35b96557 | 956 | * @} |
Kojto | 99:dbbf35b96557 | 957 | */ |
Kojto | 99:dbbf35b96557 | 958 | |
Kojto | 99:dbbf35b96557 | 959 | /** |
Kojto | 99:dbbf35b96557 | 960 | * @} |
Kojto | 99:dbbf35b96557 | 961 | */ |
bogdanm | 86:04dd9b1680ae | 962 | #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx */ |
bogdanm | 86:04dd9b1680ae | 963 | |
bogdanm | 86:04dd9b1680ae | 964 | /** |
bogdanm | 86:04dd9b1680ae | 965 | * @} |
bogdanm | 86:04dd9b1680ae | 966 | */ |
bogdanm | 86:04dd9b1680ae | 967 | |
bogdanm | 86:04dd9b1680ae | 968 | /** |
bogdanm | 86:04dd9b1680ae | 969 | * @} |
bogdanm | 86:04dd9b1680ae | 970 | */ |
bogdanm | 86:04dd9b1680ae | 971 | |
bogdanm | 86:04dd9b1680ae | 972 | #ifdef __cplusplus |
bogdanm | 86:04dd9b1680ae | 973 | } |
bogdanm | 86:04dd9b1680ae | 974 | #endif |
bogdanm | 86:04dd9b1680ae | 975 | |
bogdanm | 86:04dd9b1680ae | 976 | #endif /* __STM32F4xx_LL_FSMC_H */ |
bogdanm | 86:04dd9b1680ae | 977 | |
bogdanm | 86:04dd9b1680ae | 978 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |