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