001
targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_pccard.h@0:13413ea9a877, 2022-06-12 (annotated)
- Committer:
- ganlikun
- Date:
- Sun Jun 12 14:02:44 2022 +0000
- Revision:
- 0:13413ea9a877
00
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ganlikun | 0:13413ea9a877 | 1 | /** |
ganlikun | 0:13413ea9a877 | 2 | ****************************************************************************** |
ganlikun | 0:13413ea9a877 | 3 | * @file stm32f4xx_hal_pccard.h |
ganlikun | 0:13413ea9a877 | 4 | * @author MCD Application Team |
ganlikun | 0:13413ea9a877 | 5 | * @version V1.7.1 |
ganlikun | 0:13413ea9a877 | 6 | * @date 14-April-2017 |
ganlikun | 0:13413ea9a877 | 7 | * @brief Header file of PCCARD HAL module. |
ganlikun | 0:13413ea9a877 | 8 | ****************************************************************************** |
ganlikun | 0:13413ea9a877 | 9 | * @attention |
ganlikun | 0:13413ea9a877 | 10 | * |
ganlikun | 0:13413ea9a877 | 11 | * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2> |
ganlikun | 0:13413ea9a877 | 12 | * |
ganlikun | 0:13413ea9a877 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
ganlikun | 0:13413ea9a877 | 14 | * are permitted provided that the following conditions are met: |
ganlikun | 0:13413ea9a877 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
ganlikun | 0:13413ea9a877 | 16 | * this list of conditions and the following disclaimer. |
ganlikun | 0:13413ea9a877 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
ganlikun | 0:13413ea9a877 | 18 | * this list of conditions and the following disclaimer in the documentation |
ganlikun | 0:13413ea9a877 | 19 | * and/or other materials provided with the distribution. |
ganlikun | 0:13413ea9a877 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
ganlikun | 0:13413ea9a877 | 21 | * may be used to endorse or promote products derived from this software |
ganlikun | 0:13413ea9a877 | 22 | * without specific prior written permission. |
ganlikun | 0:13413ea9a877 | 23 | * |
ganlikun | 0:13413ea9a877 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
ganlikun | 0:13413ea9a877 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
ganlikun | 0:13413ea9a877 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
ganlikun | 0:13413ea9a877 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
ganlikun | 0:13413ea9a877 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
ganlikun | 0:13413ea9a877 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
ganlikun | 0:13413ea9a877 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
ganlikun | 0:13413ea9a877 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
ganlikun | 0:13413ea9a877 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
ganlikun | 0:13413ea9a877 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
ganlikun | 0:13413ea9a877 | 34 | * |
ganlikun | 0:13413ea9a877 | 35 | ****************************************************************************** |
ganlikun | 0:13413ea9a877 | 36 | */ |
ganlikun | 0:13413ea9a877 | 37 | |
ganlikun | 0:13413ea9a877 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
ganlikun | 0:13413ea9a877 | 39 | #ifndef __STM32F4xx_HAL_PCCARD_H |
ganlikun | 0:13413ea9a877 | 40 | #define __STM32F4xx_HAL_PCCARD_H |
ganlikun | 0:13413ea9a877 | 41 | |
ganlikun | 0:13413ea9a877 | 42 | #ifdef __cplusplus |
ganlikun | 0:13413ea9a877 | 43 | extern "C" { |
ganlikun | 0:13413ea9a877 | 44 | #endif |
ganlikun | 0:13413ea9a877 | 45 | |
ganlikun | 0:13413ea9a877 | 46 | /* Includes ------------------------------------------------------------------*/ |
ganlikun | 0:13413ea9a877 | 47 | #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) |
ganlikun | 0:13413ea9a877 | 48 | #include "stm32f4xx_ll_fsmc.h" |
ganlikun | 0:13413ea9a877 | 49 | #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx */ |
ganlikun | 0:13413ea9a877 | 50 | |
ganlikun | 0:13413ea9a877 | 51 | #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) |
ganlikun | 0:13413ea9a877 | 52 | #include "stm32f4xx_ll_fmc.h" |
ganlikun | 0:13413ea9a877 | 53 | #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */ |
ganlikun | 0:13413ea9a877 | 54 | |
ganlikun | 0:13413ea9a877 | 55 | /** @addtogroup STM32F4xx_HAL_Driver |
ganlikun | 0:13413ea9a877 | 56 | * @{ |
ganlikun | 0:13413ea9a877 | 57 | */ |
ganlikun | 0:13413ea9a877 | 58 | |
ganlikun | 0:13413ea9a877 | 59 | #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) ||\ |
ganlikun | 0:13413ea9a877 | 60 | defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) |
ganlikun | 0:13413ea9a877 | 61 | |
ganlikun | 0:13413ea9a877 | 62 | /** @addtogroup PCCARD |
ganlikun | 0:13413ea9a877 | 63 | * @{ |
ganlikun | 0:13413ea9a877 | 64 | */ |
ganlikun | 0:13413ea9a877 | 65 | |
ganlikun | 0:13413ea9a877 | 66 | /* Exported typedef ----------------------------------------------------------*/ |
ganlikun | 0:13413ea9a877 | 67 | /** @defgroup PCCARD_Exported_Types PCCARD Exported Types |
ganlikun | 0:13413ea9a877 | 68 | * @{ |
ganlikun | 0:13413ea9a877 | 69 | */ |
ganlikun | 0:13413ea9a877 | 70 | |
ganlikun | 0:13413ea9a877 | 71 | /** |
ganlikun | 0:13413ea9a877 | 72 | * @brief HAL PCCARD State structures definition |
ganlikun | 0:13413ea9a877 | 73 | */ |
ganlikun | 0:13413ea9a877 | 74 | typedef enum |
ganlikun | 0:13413ea9a877 | 75 | { |
ganlikun | 0:13413ea9a877 | 76 | HAL_PCCARD_STATE_RESET = 0x00U, /*!< PCCARD peripheral not yet initialized or disabled */ |
ganlikun | 0:13413ea9a877 | 77 | HAL_PCCARD_STATE_READY = 0x01U, /*!< PCCARD peripheral ready */ |
ganlikun | 0:13413ea9a877 | 78 | HAL_PCCARD_STATE_BUSY = 0x02U, /*!< PCCARD peripheral busy */ |
ganlikun | 0:13413ea9a877 | 79 | HAL_PCCARD_STATE_ERROR = 0x04U /*!< PCCARD peripheral error */ |
ganlikun | 0:13413ea9a877 | 80 | }HAL_PCCARD_StateTypeDef; |
ganlikun | 0:13413ea9a877 | 81 | |
ganlikun | 0:13413ea9a877 | 82 | typedef enum |
ganlikun | 0:13413ea9a877 | 83 | { |
ganlikun | 0:13413ea9a877 | 84 | HAL_PCCARD_STATUS_SUCCESS = 0U, |
ganlikun | 0:13413ea9a877 | 85 | HAL_PCCARD_STATUS_ONGOING, |
ganlikun | 0:13413ea9a877 | 86 | HAL_PCCARD_STATUS_ERROR, |
ganlikun | 0:13413ea9a877 | 87 | HAL_PCCARD_STATUS_TIMEOUT |
ganlikun | 0:13413ea9a877 | 88 | }HAL_PCCARD_StatusTypeDef; |
ganlikun | 0:13413ea9a877 | 89 | |
ganlikun | 0:13413ea9a877 | 90 | /** |
ganlikun | 0:13413ea9a877 | 91 | * @brief FMC_PCCARD handle Structure definition |
ganlikun | 0:13413ea9a877 | 92 | */ |
ganlikun | 0:13413ea9a877 | 93 | typedef struct |
ganlikun | 0:13413ea9a877 | 94 | { |
ganlikun | 0:13413ea9a877 | 95 | FMC_PCCARD_TypeDef *Instance; /*!< Register base address for PCCARD device */ |
ganlikun | 0:13413ea9a877 | 96 | |
ganlikun | 0:13413ea9a877 | 97 | FMC_PCCARD_InitTypeDef Init; /*!< PCCARD device control configuration parameters */ |
ganlikun | 0:13413ea9a877 | 98 | |
ganlikun | 0:13413ea9a877 | 99 | __IO HAL_PCCARD_StateTypeDef State; /*!< PCCARD device access state */ |
ganlikun | 0:13413ea9a877 | 100 | |
ganlikun | 0:13413ea9a877 | 101 | HAL_LockTypeDef Lock; /*!< PCCARD Lock */ |
ganlikun | 0:13413ea9a877 | 102 | |
ganlikun | 0:13413ea9a877 | 103 | }PCCARD_HandleTypeDef; |
ganlikun | 0:13413ea9a877 | 104 | /** |
ganlikun | 0:13413ea9a877 | 105 | * @} |
ganlikun | 0:13413ea9a877 | 106 | */ |
ganlikun | 0:13413ea9a877 | 107 | |
ganlikun | 0:13413ea9a877 | 108 | /* Exported constants --------------------------------------------------------*/ |
ganlikun | 0:13413ea9a877 | 109 | /* Exported macro ------------------------------------------------------------*/ |
ganlikun | 0:13413ea9a877 | 110 | /** @defgroup PCCARD_Exported_Macros PCCARD Exported Macros |
ganlikun | 0:13413ea9a877 | 111 | * @{ |
ganlikun | 0:13413ea9a877 | 112 | */ |
ganlikun | 0:13413ea9a877 | 113 | /** @brief Reset PCCARD handle state |
ganlikun | 0:13413ea9a877 | 114 | * @param __HANDLE__: specifies the PCCARD handle. |
ganlikun | 0:13413ea9a877 | 115 | * @retval None |
ganlikun | 0:13413ea9a877 | 116 | */ |
ganlikun | 0:13413ea9a877 | 117 | #define __HAL_PCCARD_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_PCCARD_STATE_RESET) |
ganlikun | 0:13413ea9a877 | 118 | /** |
ganlikun | 0:13413ea9a877 | 119 | * @} |
ganlikun | 0:13413ea9a877 | 120 | */ |
ganlikun | 0:13413ea9a877 | 121 | |
ganlikun | 0:13413ea9a877 | 122 | /* Exported functions --------------------------------------------------------*/ |
ganlikun | 0:13413ea9a877 | 123 | /** @addtogroup PCCARD_Exported_Functions |
ganlikun | 0:13413ea9a877 | 124 | * @{ |
ganlikun | 0:13413ea9a877 | 125 | */ |
ganlikun | 0:13413ea9a877 | 126 | |
ganlikun | 0:13413ea9a877 | 127 | /** @addtogroup PCCARD_Exported_Functions_Group1 |
ganlikun | 0:13413ea9a877 | 128 | * @{ |
ganlikun | 0:13413ea9a877 | 129 | */ |
ganlikun | 0:13413ea9a877 | 130 | /* Initialization/de-initialization functions **********************************/ |
ganlikun | 0:13413ea9a877 | 131 | HAL_StatusTypeDef HAL_PCCARD_Init(PCCARD_HandleTypeDef *hpccard, FMC_NAND_PCC_TimingTypeDef *ComSpaceTiming, FMC_NAND_PCC_TimingTypeDef *AttSpaceTiming, FMC_NAND_PCC_TimingTypeDef *IOSpaceTiming); |
ganlikun | 0:13413ea9a877 | 132 | HAL_StatusTypeDef HAL_PCCARD_DeInit(PCCARD_HandleTypeDef *hpccard); |
ganlikun | 0:13413ea9a877 | 133 | void HAL_PCCARD_MspInit(PCCARD_HandleTypeDef *hpccard); |
ganlikun | 0:13413ea9a877 | 134 | void HAL_PCCARD_MspDeInit(PCCARD_HandleTypeDef *hpccard); |
ganlikun | 0:13413ea9a877 | 135 | /** |
ganlikun | 0:13413ea9a877 | 136 | * @} |
ganlikun | 0:13413ea9a877 | 137 | */ |
ganlikun | 0:13413ea9a877 | 138 | |
ganlikun | 0:13413ea9a877 | 139 | /** @addtogroup PCCARD_Exported_Functions_Group2 |
ganlikun | 0:13413ea9a877 | 140 | * @{ |
ganlikun | 0:13413ea9a877 | 141 | */ |
ganlikun | 0:13413ea9a877 | 142 | /* IO operation functions *****************************************************/ |
ganlikun | 0:13413ea9a877 | 143 | HAL_StatusTypeDef HAL_PCCARD_Read_ID(PCCARD_HandleTypeDef *hpccard, uint8_t CompactFlash_ID[], uint8_t *pStatus); |
ganlikun | 0:13413ea9a877 | 144 | HAL_StatusTypeDef HAL_PCCARD_Write_Sector(PCCARD_HandleTypeDef *hpccard, uint16_t *pBuffer, uint16_t SectorAddress, uint8_t *pStatus); |
ganlikun | 0:13413ea9a877 | 145 | HAL_StatusTypeDef HAL_PCCARD_Read_Sector(PCCARD_HandleTypeDef *hpccard, uint16_t *pBuffer, uint16_t SectorAddress, uint8_t *pStatus); |
ganlikun | 0:13413ea9a877 | 146 | HAL_StatusTypeDef HAL_PCCARD_Erase_Sector(PCCARD_HandleTypeDef *hpccard, uint16_t SectorAddress, uint8_t *pStatus); |
ganlikun | 0:13413ea9a877 | 147 | HAL_StatusTypeDef HAL_PCCARD_Reset(PCCARD_HandleTypeDef *hpccard); |
ganlikun | 0:13413ea9a877 | 148 | void HAL_PCCARD_IRQHandler(PCCARD_HandleTypeDef *hpccard); |
ganlikun | 0:13413ea9a877 | 149 | void HAL_PCCARD_ITCallback(PCCARD_HandleTypeDef *hpccard); |
ganlikun | 0:13413ea9a877 | 150 | |
ganlikun | 0:13413ea9a877 | 151 | /** |
ganlikun | 0:13413ea9a877 | 152 | * @} |
ganlikun | 0:13413ea9a877 | 153 | */ |
ganlikun | 0:13413ea9a877 | 154 | |
ganlikun | 0:13413ea9a877 | 155 | /** @addtogroup PCCARD_Exported_Functions_Group3 |
ganlikun | 0:13413ea9a877 | 156 | * @{ |
ganlikun | 0:13413ea9a877 | 157 | */ |
ganlikun | 0:13413ea9a877 | 158 | /* PCCARD State functions *******************************************************/ |
ganlikun | 0:13413ea9a877 | 159 | HAL_PCCARD_StateTypeDef HAL_PCCARD_GetState(PCCARD_HandleTypeDef *hpccard); |
ganlikun | 0:13413ea9a877 | 160 | HAL_PCCARD_StatusTypeDef HAL_PCCARD_GetStatus(PCCARD_HandleTypeDef *hpccard); |
ganlikun | 0:13413ea9a877 | 161 | HAL_PCCARD_StatusTypeDef HAL_PCCARD_ReadStatus(PCCARD_HandleTypeDef *hpccard); |
ganlikun | 0:13413ea9a877 | 162 | /** |
ganlikun | 0:13413ea9a877 | 163 | * @} |
ganlikun | 0:13413ea9a877 | 164 | */ |
ganlikun | 0:13413ea9a877 | 165 | |
ganlikun | 0:13413ea9a877 | 166 | /** |
ganlikun | 0:13413ea9a877 | 167 | * @} |
ganlikun | 0:13413ea9a877 | 168 | */ |
ganlikun | 0:13413ea9a877 | 169 | /* Private types -------------------------------------------------------------*/ |
ganlikun | 0:13413ea9a877 | 170 | /* Private variables ---------------------------------------------------------*/ |
ganlikun | 0:13413ea9a877 | 171 | /* Private constants ---------------------------------------------------------*/ |
ganlikun | 0:13413ea9a877 | 172 | /** @defgroup PCCARD_Private_Constants PCCARD Private Constants |
ganlikun | 0:13413ea9a877 | 173 | * @{ |
ganlikun | 0:13413ea9a877 | 174 | */ |
ganlikun | 0:13413ea9a877 | 175 | #define PCCARD_DEVICE_ADDRESS 0x90000000U |
ganlikun | 0:13413ea9a877 | 176 | #define PCCARD_ATTRIBUTE_SPACE_ADDRESS 0x98000000U /* Attribute space size to @0x9BFF FFFF */ |
ganlikun | 0:13413ea9a877 | 177 | #define PCCARD_COMMON_SPACE_ADDRESS PCCARD_DEVICE_ADDRESS /* Common space size to @0x93FF FFFF */ |
ganlikun | 0:13413ea9a877 | 178 | #define PCCARD_IO_SPACE_ADDRESS 0x9C000000U /* IO space size to @0x9FFF FFFF */ |
ganlikun | 0:13413ea9a877 | 179 | #define PCCARD_IO_SPACE_PRIMARY_ADDR 0x9C0001F0U /* IO space size to @0x9FFF FFFF */ |
ganlikun | 0:13413ea9a877 | 180 | |
ganlikun | 0:13413ea9a877 | 181 | /* Flash-ATA registers description */ |
ganlikun | 0:13413ea9a877 | 182 | #define ATA_DATA ((uint8_t)0x00) /* Data register */ |
ganlikun | 0:13413ea9a877 | 183 | #define ATA_SECTOR_COUNT ((uint8_t)0x02) /* Sector Count register */ |
ganlikun | 0:13413ea9a877 | 184 | #define ATA_SECTOR_NUMBER ((uint8_t)0x03) /* Sector Number register */ |
ganlikun | 0:13413ea9a877 | 185 | #define ATA_CYLINDER_LOW ((uint8_t)0x04) /* Cylinder low register */ |
ganlikun | 0:13413ea9a877 | 186 | #define ATA_CYLINDER_HIGH ((uint8_t)0x05) /* Cylinder high register */ |
ganlikun | 0:13413ea9a877 | 187 | #define ATA_CARD_HEAD ((uint8_t)0x06) /* Card/Head register */ |
ganlikun | 0:13413ea9a877 | 188 | #define ATA_STATUS_CMD ((uint8_t)0x07) /* Status(read)/Command(write) register */ |
ganlikun | 0:13413ea9a877 | 189 | #define ATA_STATUS_CMD_ALTERNATE ((uint8_t)0x0E) /* Alternate Status(read)/Command(write) register */ |
ganlikun | 0:13413ea9a877 | 190 | #define ATA_COMMON_DATA_AREA ((uint16_t)0x0400) /* Start of data area (for Common access only!) */ |
ganlikun | 0:13413ea9a877 | 191 | #define ATA_CARD_CONFIGURATION ((uint16_t)0x0202) /* Card Configuration and Status Register */ |
ganlikun | 0:13413ea9a877 | 192 | |
ganlikun | 0:13413ea9a877 | 193 | /* Flash-ATA commands */ |
ganlikun | 0:13413ea9a877 | 194 | #define ATA_READ_SECTOR_CMD ((uint8_t)0x20) |
ganlikun | 0:13413ea9a877 | 195 | #define ATA_WRITE_SECTOR_CMD ((uint8_t)0x30) |
ganlikun | 0:13413ea9a877 | 196 | #define ATA_ERASE_SECTOR_CMD ((uint8_t)0xC0) |
ganlikun | 0:13413ea9a877 | 197 | #define ATA_IDENTIFY_CMD ((uint8_t)0xEC) |
ganlikun | 0:13413ea9a877 | 198 | |
ganlikun | 0:13413ea9a877 | 199 | /* PC Card/Compact Flash status */ |
ganlikun | 0:13413ea9a877 | 200 | #define PCCARD_TIMEOUT_ERROR ((uint8_t)0x60) |
ganlikun | 0:13413ea9a877 | 201 | #define PCCARD_BUSY ((uint8_t)0x80) |
ganlikun | 0:13413ea9a877 | 202 | #define PCCARD_PROGR ((uint8_t)0x01) |
ganlikun | 0:13413ea9a877 | 203 | #define PCCARD_READY ((uint8_t)0x40) |
ganlikun | 0:13413ea9a877 | 204 | |
ganlikun | 0:13413ea9a877 | 205 | #define PCCARD_SECTOR_SIZE 255U /* In half words */ |
ganlikun | 0:13413ea9a877 | 206 | |
ganlikun | 0:13413ea9a877 | 207 | /** |
ganlikun | 0:13413ea9a877 | 208 | * @} |
ganlikun | 0:13413ea9a877 | 209 | */ |
ganlikun | 0:13413ea9a877 | 210 | /* Compact Flash redefinition */ |
ganlikun | 0:13413ea9a877 | 211 | #define HAL_CF_Init HAL_PCCARD_Init |
ganlikun | 0:13413ea9a877 | 212 | #define HAL_CF_DeInit HAL_PCCARD_DeInit |
ganlikun | 0:13413ea9a877 | 213 | #define HAL_CF_MspInit HAL_PCCARD_MspInit |
ganlikun | 0:13413ea9a877 | 214 | #define HAL_CF_MspDeInit HAL_PCCARD_MspDeInit |
ganlikun | 0:13413ea9a877 | 215 | |
ganlikun | 0:13413ea9a877 | 216 | #define HAL_CF_Read_ID HAL_PCCARD_Read_ID |
ganlikun | 0:13413ea9a877 | 217 | #define HAL_CF_Write_Sector HAL_PCCARD_Write_Sector |
ganlikun | 0:13413ea9a877 | 218 | #define HAL_CF_Read_Sector HAL_PCCARD_Read_Sector |
ganlikun | 0:13413ea9a877 | 219 | #define HAL_CF_Erase_Sector HAL_PCCARD_Erase_Sector |
ganlikun | 0:13413ea9a877 | 220 | #define HAL_CF_Reset HAL_PCCARD_Reset |
ganlikun | 0:13413ea9a877 | 221 | #define HAL_CF_IRQHandler HAL_PCCARD_IRQHandler |
ganlikun | 0:13413ea9a877 | 222 | #define HAL_CF_ITCallback HAL_PCCARD_ITCallback |
ganlikun | 0:13413ea9a877 | 223 | |
ganlikun | 0:13413ea9a877 | 224 | #define HAL_CF_GetState HAL_PCCARD_GetState |
ganlikun | 0:13413ea9a877 | 225 | #define HAL_CF_GetStatus HAL_PCCARD_GetStatus |
ganlikun | 0:13413ea9a877 | 226 | #define HAL_CF_ReadStatus HAL_PCCARD_ReadStatus |
ganlikun | 0:13413ea9a877 | 227 | |
ganlikun | 0:13413ea9a877 | 228 | #define HAL_CF_STATUS_SUCCESS HAL_PCCARD_STATUS_SUCCESS |
ganlikun | 0:13413ea9a877 | 229 | #define HAL_CF_STATUS_ONGOING HAL_PCCARD_STATUS_ONGOING |
ganlikun | 0:13413ea9a877 | 230 | #define HAL_CF_STATUS_ERROR HAL_PCCARD_STATUS_ERROR |
ganlikun | 0:13413ea9a877 | 231 | #define HAL_CF_STATUS_TIMEOUT HAL_PCCARD_STATUS_TIMEOUT |
ganlikun | 0:13413ea9a877 | 232 | #define HAL_CF_StatusTypeDef HAL_PCCARD_StatusTypeDef |
ganlikun | 0:13413ea9a877 | 233 | |
ganlikun | 0:13413ea9a877 | 234 | #define CF_DEVICE_ADDRESS PCCARD_DEVICE_ADDRESS |
ganlikun | 0:13413ea9a877 | 235 | #define CF_ATTRIBUTE_SPACE_ADDRESS PCCARD_ATTRIBUTE_SPACE_ADDRESS |
ganlikun | 0:13413ea9a877 | 236 | #define CF_COMMON_SPACE_ADDRESS PCCARD_COMMON_SPACE_ADDRESS |
ganlikun | 0:13413ea9a877 | 237 | #define CF_IO_SPACE_ADDRESS PCCARD_IO_SPACE_ADDRESS |
ganlikun | 0:13413ea9a877 | 238 | #define CF_IO_SPACE_PRIMARY_ADDR PCCARD_IO_SPACE_PRIMARY_ADDR |
ganlikun | 0:13413ea9a877 | 239 | |
ganlikun | 0:13413ea9a877 | 240 | #define CF_TIMEOUT_ERROR PCCARD_TIMEOUT_ERROR |
ganlikun | 0:13413ea9a877 | 241 | #define CF_BUSY PCCARD_BUSY |
ganlikun | 0:13413ea9a877 | 242 | #define CF_PROGR PCCARD_PROGR |
ganlikun | 0:13413ea9a877 | 243 | #define CF_READY PCCARD_READY |
ganlikun | 0:13413ea9a877 | 244 | |
ganlikun | 0:13413ea9a877 | 245 | #define CF_SECTOR_SIZE PCCARD_SECTOR_SIZE |
ganlikun | 0:13413ea9a877 | 246 | |
ganlikun | 0:13413ea9a877 | 247 | /* Private macros ------------------------------------------------------------*/ |
ganlikun | 0:13413ea9a877 | 248 | /** |
ganlikun | 0:13413ea9a877 | 249 | * @} |
ganlikun | 0:13413ea9a877 | 250 | */ |
ganlikun | 0:13413ea9a877 | 251 | |
ganlikun | 0:13413ea9a877 | 252 | #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx ||\ |
ganlikun | 0:13413ea9a877 | 253 | STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */ |
ganlikun | 0:13413ea9a877 | 254 | |
ganlikun | 0:13413ea9a877 | 255 | |
ganlikun | 0:13413ea9a877 | 256 | /** |
ganlikun | 0:13413ea9a877 | 257 | * @} |
ganlikun | 0:13413ea9a877 | 258 | */ |
ganlikun | 0:13413ea9a877 | 259 | |
ganlikun | 0:13413ea9a877 | 260 | #ifdef __cplusplus |
ganlikun | 0:13413ea9a877 | 261 | } |
ganlikun | 0:13413ea9a877 | 262 | #endif |
ganlikun | 0:13413ea9a877 | 263 | |
ganlikun | 0:13413ea9a877 | 264 | #endif /* __STM32F4xx_HAL_PCCARD_H */ |
ganlikun | 0:13413ea9a877 | 265 | |
ganlikun | 0:13413ea9a877 | 266 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
ganlikun | 0:13413ea9a877 | 267 |