Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
TARGET_NUCLEO_F446RE/stm32f4xx_hal_pccard.h@122:f9eeca106725, 2016-07-07 (annotated)
- Committer:
- Kojto
- Date:
- Thu Jul 07 14:34:11 2016 +0100
- Revision:
- 122:f9eeca106725
- Parent:
- 110:165afa46840b
Release 122 of the mbed library
Changes:
- new targets - Nucleo L432KC, Beetle, Nucleo F446ZE, Nucleo L011K4
- Thread safety addition - mbed API should contain a statement about thread safety
- critical section API addition
- CAS API (core_util_atomic_incr/decr)
- DEVICE_ are generated from targets.json file, device.h deprecated
- Callback replaces FunctionPointer to provide std like interface
- mbed HAL API docs improvements
- toolchain - prexif attributes with MBED_
- add new attributes - packed, weak, forcedinline, align
- target.json - contains targets definitions
- ST - L1XX - Cube update to 1.5
- SPI clock selection fix (clock from APB domain)
- F7 - Cube update v1.4.0
- L0 - baudrate init fix
- L1 - Cube update v1.5
- F3 - baudrate init fix, 3 targets CAN support
- F4 - Cube update v1.12.0, 3 targets CAN support
- L4XX - Cube update v1.5.1
- F0 - update Cube to v1.5.0
- L4 - 2 targets (L476RG/VG) CAN support
- NXP - pwm clock fix for KSDK2 MCU
- LPC2368 - remove ARM toolchain support - due to regression
- KSDK2 - fix SPI , I2C address and repeat start
- Silabs - some fixes backported from mbed 3
- Renesas - RZ_A1H - SystemCoreClockUpdate addition
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 106:ba1f97679dad | 1 | /** |
Kojto | 106:ba1f97679dad | 2 | ****************************************************************************** |
Kojto | 106:ba1f97679dad | 3 | * @file stm32f4xx_hal_pccard.h |
Kojto | 106:ba1f97679dad | 4 | * @author MCD Application Team |
Kojto | 122:f9eeca106725 | 5 | * @version V1.5.0 |
Kojto | 122:f9eeca106725 | 6 | * @date 06-May-2016 |
Kojto | 106:ba1f97679dad | 7 | * @brief Header file of PCCARD HAL module. |
Kojto | 106:ba1f97679dad | 8 | ****************************************************************************** |
Kojto | 106:ba1f97679dad | 9 | * @attention |
Kojto | 106:ba1f97679dad | 10 | * |
Kojto | 122:f9eeca106725 | 11 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
Kojto | 106:ba1f97679dad | 12 | * |
Kojto | 106:ba1f97679dad | 13 | * Redistribution and use in source and binary forms, with or without modification, |
Kojto | 106:ba1f97679dad | 14 | * are permitted provided that the following conditions are met: |
Kojto | 106:ba1f97679dad | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
Kojto | 106:ba1f97679dad | 16 | * this list of conditions and the following disclaimer. |
Kojto | 106:ba1f97679dad | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
Kojto | 106:ba1f97679dad | 18 | * this list of conditions and the following disclaimer in the documentation |
Kojto | 106:ba1f97679dad | 19 | * and/or other materials provided with the distribution. |
Kojto | 106:ba1f97679dad | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
Kojto | 106:ba1f97679dad | 21 | * may be used to endorse or promote products derived from this software |
Kojto | 106:ba1f97679dad | 22 | * without specific prior written permission. |
Kojto | 106:ba1f97679dad | 23 | * |
Kojto | 106:ba1f97679dad | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
Kojto | 106:ba1f97679dad | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
Kojto | 106:ba1f97679dad | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
Kojto | 106:ba1f97679dad | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
Kojto | 106:ba1f97679dad | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
Kojto | 106:ba1f97679dad | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
Kojto | 106:ba1f97679dad | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
Kojto | 106:ba1f97679dad | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
Kojto | 106:ba1f97679dad | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
Kojto | 106:ba1f97679dad | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Kojto | 106:ba1f97679dad | 34 | * |
Kojto | 106:ba1f97679dad | 35 | ****************************************************************************** |
Kojto | 106:ba1f97679dad | 36 | */ |
Kojto | 106:ba1f97679dad | 37 | |
Kojto | 106:ba1f97679dad | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
Kojto | 106:ba1f97679dad | 39 | #ifndef __STM32F4xx_HAL_PCCARD_H |
Kojto | 106:ba1f97679dad | 40 | #define __STM32F4xx_HAL_PCCARD_H |
Kojto | 106:ba1f97679dad | 41 | |
Kojto | 106:ba1f97679dad | 42 | #ifdef __cplusplus |
Kojto | 106:ba1f97679dad | 43 | extern "C" { |
Kojto | 106:ba1f97679dad | 44 | #endif |
Kojto | 106:ba1f97679dad | 45 | |
Kojto | 106:ba1f97679dad | 46 | /* Includes ------------------------------------------------------------------*/ |
Kojto | 106:ba1f97679dad | 47 | #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) |
Kojto | 106:ba1f97679dad | 48 | #include "stm32f4xx_ll_fsmc.h" |
Kojto | 106:ba1f97679dad | 49 | #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx */ |
Kojto | 106:ba1f97679dad | 50 | |
Kojto | 106:ba1f97679dad | 51 | #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) |
Kojto | 106:ba1f97679dad | 52 | #include "stm32f4xx_ll_fmc.h" |
Kojto | 106:ba1f97679dad | 53 | #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */ |
Kojto | 106:ba1f97679dad | 54 | |
Kojto | 106:ba1f97679dad | 55 | /** @addtogroup STM32F4xx_HAL_Driver |
Kojto | 106:ba1f97679dad | 56 | * @{ |
Kojto | 106:ba1f97679dad | 57 | */ |
Kojto | 106:ba1f97679dad | 58 | |
Kojto | 106:ba1f97679dad | 59 | #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) ||\ |
Kojto | 106:ba1f97679dad | 60 | defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) |
Kojto | 106:ba1f97679dad | 61 | |
Kojto | 106:ba1f97679dad | 62 | /** @addtogroup PCCARD |
Kojto | 106:ba1f97679dad | 63 | * @{ |
Kojto | 106:ba1f97679dad | 64 | */ |
Kojto | 106:ba1f97679dad | 65 | |
Kojto | 106:ba1f97679dad | 66 | /* Exported typedef ----------------------------------------------------------*/ |
Kojto | 106:ba1f97679dad | 67 | /** @defgroup PCCARD_Exported_Types PCCARD Exported Types |
Kojto | 106:ba1f97679dad | 68 | * @{ |
Kojto | 106:ba1f97679dad | 69 | */ |
Kojto | 106:ba1f97679dad | 70 | |
Kojto | 106:ba1f97679dad | 71 | /** |
Kojto | 106:ba1f97679dad | 72 | * @brief HAL PCCARD State structures definition |
Kojto | 106:ba1f97679dad | 73 | */ |
Kojto | 106:ba1f97679dad | 74 | typedef enum |
Kojto | 106:ba1f97679dad | 75 | { |
Kojto | 122:f9eeca106725 | 76 | HAL_PCCARD_STATE_RESET = 0x00U, /*!< PCCARD peripheral not yet initialized or disabled */ |
Kojto | 122:f9eeca106725 | 77 | HAL_PCCARD_STATE_READY = 0x01U, /*!< PCCARD peripheral ready */ |
Kojto | 122:f9eeca106725 | 78 | HAL_PCCARD_STATE_BUSY = 0x02U, /*!< PCCARD peripheral busy */ |
Kojto | 122:f9eeca106725 | 79 | HAL_PCCARD_STATE_ERROR = 0x04U /*!< PCCARD peripheral error */ |
Kojto | 106:ba1f97679dad | 80 | }HAL_PCCARD_StateTypeDef; |
Kojto | 106:ba1f97679dad | 81 | |
Kojto | 106:ba1f97679dad | 82 | typedef enum |
Kojto | 106:ba1f97679dad | 83 | { |
Kojto | 122:f9eeca106725 | 84 | HAL_PCCARD_STATUS_SUCCESS = 0U, |
Kojto | 106:ba1f97679dad | 85 | HAL_PCCARD_STATUS_ONGOING, |
Kojto | 106:ba1f97679dad | 86 | HAL_PCCARD_STATUS_ERROR, |
Kojto | 106:ba1f97679dad | 87 | HAL_PCCARD_STATUS_TIMEOUT |
Kojto | 106:ba1f97679dad | 88 | }HAL_PCCARD_StatusTypeDef; |
Kojto | 106:ba1f97679dad | 89 | |
Kojto | 106:ba1f97679dad | 90 | /** |
Kojto | 106:ba1f97679dad | 91 | * @brief FMC_PCCARD handle Structure definition |
Kojto | 106:ba1f97679dad | 92 | */ |
Kojto | 106:ba1f97679dad | 93 | typedef struct |
Kojto | 106:ba1f97679dad | 94 | { |
Kojto | 106:ba1f97679dad | 95 | FMC_PCCARD_TypeDef *Instance; /*!< Register base address for PCCARD device */ |
Kojto | 106:ba1f97679dad | 96 | |
Kojto | 106:ba1f97679dad | 97 | FMC_PCCARD_InitTypeDef Init; /*!< PCCARD device control configuration parameters */ |
Kojto | 106:ba1f97679dad | 98 | |
Kojto | 106:ba1f97679dad | 99 | __IO HAL_PCCARD_StateTypeDef State; /*!< PCCARD device access state */ |
Kojto | 106:ba1f97679dad | 100 | |
Kojto | 106:ba1f97679dad | 101 | HAL_LockTypeDef Lock; /*!< PCCARD Lock */ |
Kojto | 106:ba1f97679dad | 102 | |
Kojto | 106:ba1f97679dad | 103 | }PCCARD_HandleTypeDef; |
Kojto | 106:ba1f97679dad | 104 | /** |
Kojto | 106:ba1f97679dad | 105 | * @} |
Kojto | 106:ba1f97679dad | 106 | */ |
Kojto | 106:ba1f97679dad | 107 | |
Kojto | 106:ba1f97679dad | 108 | /* Exported constants --------------------------------------------------------*/ |
Kojto | 106:ba1f97679dad | 109 | /* Exported macro ------------------------------------------------------------*/ |
Kojto | 106:ba1f97679dad | 110 | /** @defgroup PCCARD_Exported_Macros PCCARD Exported Macros |
Kojto | 106:ba1f97679dad | 111 | * @{ |
Kojto | 106:ba1f97679dad | 112 | */ |
Kojto | 106:ba1f97679dad | 113 | /** @brief Reset PCCARD handle state |
Kojto | 106:ba1f97679dad | 114 | * @param __HANDLE__: specifies the PCCARD handle. |
Kojto | 106:ba1f97679dad | 115 | * @retval None |
Kojto | 106:ba1f97679dad | 116 | */ |
Kojto | 106:ba1f97679dad | 117 | #define __HAL_PCCARD_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_PCCARD_STATE_RESET) |
Kojto | 106:ba1f97679dad | 118 | /** |
Kojto | 106:ba1f97679dad | 119 | * @} |
Kojto | 106:ba1f97679dad | 120 | */ |
Kojto | 106:ba1f97679dad | 121 | |
Kojto | 106:ba1f97679dad | 122 | /* Exported functions --------------------------------------------------------*/ |
Kojto | 106:ba1f97679dad | 123 | /** @addtogroup PCCARD_Exported_Functions |
Kojto | 106:ba1f97679dad | 124 | * @{ |
Kojto | 106:ba1f97679dad | 125 | */ |
Kojto | 106:ba1f97679dad | 126 | |
Kojto | 106:ba1f97679dad | 127 | /** @addtogroup PCCARD_Exported_Functions_Group1 |
Kojto | 106:ba1f97679dad | 128 | * @{ |
Kojto | 106:ba1f97679dad | 129 | */ |
Kojto | 106:ba1f97679dad | 130 | /* Initialization/de-initialization functions **********************************/ |
Kojto | 106:ba1f97679dad | 131 | HAL_StatusTypeDef HAL_PCCARD_Init(PCCARD_HandleTypeDef *hpccard, FMC_NAND_PCC_TimingTypeDef *ComSpaceTiming, FMC_NAND_PCC_TimingTypeDef *AttSpaceTiming, FMC_NAND_PCC_TimingTypeDef *IOSpaceTiming); |
Kojto | 106:ba1f97679dad | 132 | HAL_StatusTypeDef HAL_PCCARD_DeInit(PCCARD_HandleTypeDef *hpccard); |
Kojto | 106:ba1f97679dad | 133 | void HAL_PCCARD_MspInit(PCCARD_HandleTypeDef *hpccard); |
Kojto | 106:ba1f97679dad | 134 | void HAL_PCCARD_MspDeInit(PCCARD_HandleTypeDef *hpccard); |
Kojto | 106:ba1f97679dad | 135 | /** |
Kojto | 106:ba1f97679dad | 136 | * @} |
Kojto | 106:ba1f97679dad | 137 | */ |
Kojto | 106:ba1f97679dad | 138 | |
Kojto | 106:ba1f97679dad | 139 | /** @addtogroup PCCARD_Exported_Functions_Group2 |
Kojto | 106:ba1f97679dad | 140 | * @{ |
Kojto | 106:ba1f97679dad | 141 | */ |
Kojto | 106:ba1f97679dad | 142 | /* IO operation functions *****************************************************/ |
Kojto | 106:ba1f97679dad | 143 | HAL_StatusTypeDef HAL_PCCARD_Read_ID(PCCARD_HandleTypeDef *hpccard, uint8_t CompactFlash_ID[], uint8_t *pStatus); |
Kojto | 106:ba1f97679dad | 144 | HAL_StatusTypeDef HAL_PCCARD_Write_Sector(PCCARD_HandleTypeDef *hpccard, uint16_t *pBuffer, uint16_t SectorAddress, uint8_t *pStatus); |
Kojto | 106:ba1f97679dad | 145 | HAL_StatusTypeDef HAL_PCCARD_Read_Sector(PCCARD_HandleTypeDef *hpccard, uint16_t *pBuffer, uint16_t SectorAddress, uint8_t *pStatus); |
Kojto | 106:ba1f97679dad | 146 | HAL_StatusTypeDef HAL_PCCARD_Erase_Sector(PCCARD_HandleTypeDef *hpccard, uint16_t SectorAddress, uint8_t *pStatus); |
Kojto | 106:ba1f97679dad | 147 | HAL_StatusTypeDef HAL_PCCARD_Reset(PCCARD_HandleTypeDef *hpccard); |
Kojto | 106:ba1f97679dad | 148 | void HAL_PCCARD_IRQHandler(PCCARD_HandleTypeDef *hpccard); |
Kojto | 106:ba1f97679dad | 149 | void HAL_PCCARD_ITCallback(PCCARD_HandleTypeDef *hpccard); |
Kojto | 106:ba1f97679dad | 150 | |
Kojto | 106:ba1f97679dad | 151 | /** |
Kojto | 106:ba1f97679dad | 152 | * @} |
Kojto | 106:ba1f97679dad | 153 | */ |
Kojto | 106:ba1f97679dad | 154 | |
Kojto | 106:ba1f97679dad | 155 | /** @addtogroup PCCARD_Exported_Functions_Group3 |
Kojto | 106:ba1f97679dad | 156 | * @{ |
Kojto | 106:ba1f97679dad | 157 | */ |
Kojto | 106:ba1f97679dad | 158 | /* PCCARD State functions *******************************************************/ |
Kojto | 106:ba1f97679dad | 159 | HAL_PCCARD_StateTypeDef HAL_PCCARD_GetState(PCCARD_HandleTypeDef *hpccard); |
Kojto | 106:ba1f97679dad | 160 | HAL_PCCARD_StatusTypeDef HAL_PCCARD_GetStatus(PCCARD_HandleTypeDef *hpccard); |
Kojto | 106:ba1f97679dad | 161 | HAL_PCCARD_StatusTypeDef HAL_PCCARD_ReadStatus(PCCARD_HandleTypeDef *hpccard); |
Kojto | 106:ba1f97679dad | 162 | /** |
Kojto | 106:ba1f97679dad | 163 | * @} |
Kojto | 106:ba1f97679dad | 164 | */ |
Kojto | 106:ba1f97679dad | 165 | |
Kojto | 106:ba1f97679dad | 166 | /** |
Kojto | 106:ba1f97679dad | 167 | * @} |
Kojto | 106:ba1f97679dad | 168 | */ |
Kojto | 106:ba1f97679dad | 169 | /* Private types -------------------------------------------------------------*/ |
Kojto | 106:ba1f97679dad | 170 | /* Private variables ---------------------------------------------------------*/ |
Kojto | 106:ba1f97679dad | 171 | /* Private constants ---------------------------------------------------------*/ |
Kojto | 106:ba1f97679dad | 172 | /** @defgroup PCCARD_Private_Constants PCCARD Private Constants |
Kojto | 106:ba1f97679dad | 173 | * @{ |
Kojto | 106:ba1f97679dad | 174 | */ |
Kojto | 122:f9eeca106725 | 175 | #define PCCARD_DEVICE_ADDRESS ((uint32_t)0x90000000U) |
Kojto | 122:f9eeca106725 | 176 | #define PCCARD_ATTRIBUTE_SPACE_ADDRESS ((uint32_t)0x98000000U) /* Attribute space size to @0x9BFF FFFF */ |
Kojto | 106:ba1f97679dad | 177 | #define PCCARD_COMMON_SPACE_ADDRESS PCCARD_DEVICE_ADDRESS /* Common space size to @0x93FF FFFF */ |
Kojto | 122:f9eeca106725 | 178 | #define PCCARD_IO_SPACE_ADDRESS ((uint32_t)0x9C000000U) /* IO space size to @0x9FFF FFFF */ |
Kojto | 122:f9eeca106725 | 179 | #define PCCARD_IO_SPACE_PRIMARY_ADDR ((uint32_t)0x9C0001F0U) /* IO space size to @0x9FFF FFFF */ |
Kojto | 106:ba1f97679dad | 180 | |
Kojto | 106:ba1f97679dad | 181 | /* Flash-ATA registers description */ |
Kojto | 122:f9eeca106725 | 182 | #define ATA_DATA ((uint8_t)0x00U) /* Data register */ |
Kojto | 122:f9eeca106725 | 183 | #define ATA_SECTOR_COUNT ((uint8_t)0x02U) /* Sector Count register */ |
Kojto | 122:f9eeca106725 | 184 | #define ATA_SECTOR_NUMBER ((uint8_t)0x03U) /* Sector Number register */ |
Kojto | 122:f9eeca106725 | 185 | #define ATA_CYLINDER_LOW ((uint8_t)0x04U) /* Cylinder low register */ |
Kojto | 122:f9eeca106725 | 186 | #define ATA_CYLINDER_HIGH ((uint8_t)0x05U) /* Cylinder high register */ |
Kojto | 122:f9eeca106725 | 187 | #define ATA_CARD_HEAD ((uint8_t)0x06U) /* Card/Head register */ |
Kojto | 122:f9eeca106725 | 188 | #define ATA_STATUS_CMD ((uint8_t)0x07U) /* Status(read)/Command(write) register */ |
Kojto | 122:f9eeca106725 | 189 | #define ATA_STATUS_CMD_ALTERNATE ((uint8_t)0x0EU) /* Alternate Status(read)/Command(write) register */ |
Kojto | 122:f9eeca106725 | 190 | #define ATA_COMMON_DATA_AREA ((uint16_t)0x0400U) /* Start of data area (for Common access only!) */ |
Kojto | 122:f9eeca106725 | 191 | #define ATA_CARD_CONFIGURATION ((uint16_t)0x0202U) /* Card Configuration and Status Register */ |
Kojto | 106:ba1f97679dad | 192 | |
Kojto | 106:ba1f97679dad | 193 | /* Flash-ATA commands */ |
Kojto | 122:f9eeca106725 | 194 | #define ATA_READ_SECTOR_CMD ((uint8_t)0x20U) |
Kojto | 122:f9eeca106725 | 195 | #define ATA_WRITE_SECTOR_CMD ((uint8_t)0x30U) |
Kojto | 106:ba1f97679dad | 196 | #define ATA_ERASE_SECTOR_CMD ((uint8_t)0xC0) |
Kojto | 106:ba1f97679dad | 197 | #define ATA_IDENTIFY_CMD ((uint8_t)0xEC) |
Kojto | 106:ba1f97679dad | 198 | |
Kojto | 106:ba1f97679dad | 199 | /* PC Card/Compact Flash status */ |
Kojto | 122:f9eeca106725 | 200 | #define PCCARD_TIMEOUT_ERROR ((uint8_t)0x60U) |
Kojto | 122:f9eeca106725 | 201 | #define PCCARD_BUSY ((uint8_t)0x80U) |
Kojto | 122:f9eeca106725 | 202 | #define PCCARD_PROGR ((uint8_t)0x01U) |
Kojto | 122:f9eeca106725 | 203 | #define PCCARD_READY ((uint8_t)0x40U) |
Kojto | 106:ba1f97679dad | 204 | |
Kojto | 122:f9eeca106725 | 205 | #define PCCARD_SECTOR_SIZE ((uint32_t)255U) /* In half words */ |
Kojto | 106:ba1f97679dad | 206 | |
Kojto | 106:ba1f97679dad | 207 | /** |
Kojto | 106:ba1f97679dad | 208 | * @} |
Kojto | 106:ba1f97679dad | 209 | */ |
Kojto | 106:ba1f97679dad | 210 | /* Compact Flash redefinition */ |
Kojto | 106:ba1f97679dad | 211 | #define HAL_CF_Init HAL_PCCARD_Init |
Kojto | 106:ba1f97679dad | 212 | #define HAL_CF_DeInit HAL_PCCARD_DeInit |
Kojto | 106:ba1f97679dad | 213 | #define HAL_CF_MspInit HAL_PCCARD_MspInit |
Kojto | 106:ba1f97679dad | 214 | #define HAL_CF_MspDeInit HAL_PCCARD_MspDeInit |
Kojto | 122:f9eeca106725 | 215 | |
Kojto | 106:ba1f97679dad | 216 | #define HAL_CF_Read_ID HAL_PCCARD_Read_ID |
Kojto | 106:ba1f97679dad | 217 | #define HAL_CF_Write_Sector HAL_PCCARD_Write_Sector |
Kojto | 106:ba1f97679dad | 218 | #define HAL_CF_Read_Sector HAL_PCCARD_Read_Sector |
Kojto | 106:ba1f97679dad | 219 | #define HAL_CF_Erase_Sector HAL_PCCARD_Erase_Sector |
Kojto | 106:ba1f97679dad | 220 | #define HAL_CF_Reset HAL_PCCARD_Reset |
Kojto | 106:ba1f97679dad | 221 | #define HAL_CF_IRQHandler HAL_PCCARD_IRQHandler |
Kojto | 106:ba1f97679dad | 222 | #define HAL_CF_ITCallback HAL_PCCARD_ITCallback |
Kojto | 122:f9eeca106725 | 223 | |
Kojto | 106:ba1f97679dad | 224 | #define HAL_CF_GetState HAL_PCCARD_GetState |
Kojto | 106:ba1f97679dad | 225 | #define HAL_CF_GetStatus HAL_PCCARD_GetStatus |
Kojto | 106:ba1f97679dad | 226 | #define HAL_CF_ReadStatus HAL_PCCARD_ReadStatus |
Kojto | 122:f9eeca106725 | 227 | |
Kojto | 106:ba1f97679dad | 228 | #define HAL_CF_STATUS_SUCCESS HAL_PCCARD_STATUS_SUCCESS |
Kojto | 106:ba1f97679dad | 229 | #define HAL_CF_STATUS_ONGOING HAL_PCCARD_STATUS_ONGOING |
Kojto | 106:ba1f97679dad | 230 | #define HAL_CF_STATUS_ERROR HAL_PCCARD_STATUS_ERROR |
Kojto | 106:ba1f97679dad | 231 | #define HAL_CF_STATUS_TIMEOUT HAL_PCCARD_STATUS_TIMEOUT |
Kojto | 106:ba1f97679dad | 232 | #define HAL_CF_StatusTypeDef HAL_PCCARD_StatusTypeDef |
Kojto | 106:ba1f97679dad | 233 | |
Kojto | 122:f9eeca106725 | 234 | #define CF_DEVICE_ADDRESS PCCARD_DEVICE_ADDRESS |
Kojto | 106:ba1f97679dad | 235 | #define CF_ATTRIBUTE_SPACE_ADDRESS PCCARD_ATTRIBUTE_SPACE_ADDRESS |
Kojto | 106:ba1f97679dad | 236 | #define CF_COMMON_SPACE_ADDRESS PCCARD_COMMON_SPACE_ADDRESS |
Kojto | 106:ba1f97679dad | 237 | #define CF_IO_SPACE_ADDRESS PCCARD_IO_SPACE_ADDRESS |
Kojto | 106:ba1f97679dad | 238 | #define CF_IO_SPACE_PRIMARY_ADDR PCCARD_IO_SPACE_PRIMARY_ADDR |
Kojto | 106:ba1f97679dad | 239 | |
Kojto | 106:ba1f97679dad | 240 | #define CF_TIMEOUT_ERROR PCCARD_TIMEOUT_ERROR |
Kojto | 106:ba1f97679dad | 241 | #define CF_BUSY PCCARD_BUSY |
Kojto | 106:ba1f97679dad | 242 | #define CF_PROGR PCCARD_PROGR |
Kojto | 106:ba1f97679dad | 243 | #define CF_READY PCCARD_READY |
Kojto | 106:ba1f97679dad | 244 | |
Kojto | 106:ba1f97679dad | 245 | #define CF_SECTOR_SIZE PCCARD_SECTOR_SIZE |
Kojto | 106:ba1f97679dad | 246 | |
Kojto | 106:ba1f97679dad | 247 | /* Private macros ------------------------------------------------------------*/ |
Kojto | 106:ba1f97679dad | 248 | /** |
Kojto | 106:ba1f97679dad | 249 | * @} |
Kojto | 106:ba1f97679dad | 250 | */ |
Kojto | 106:ba1f97679dad | 251 | |
Kojto | 106:ba1f97679dad | 252 | #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx ||\ |
Kojto | 106:ba1f97679dad | 253 | STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */ |
Kojto | 106:ba1f97679dad | 254 | |
Kojto | 106:ba1f97679dad | 255 | |
Kojto | 106:ba1f97679dad | 256 | /** |
Kojto | 106:ba1f97679dad | 257 | * @} |
Kojto | 106:ba1f97679dad | 258 | */ |
Kojto | 106:ba1f97679dad | 259 | |
Kojto | 106:ba1f97679dad | 260 | #ifdef __cplusplus |
Kojto | 106:ba1f97679dad | 261 | } |
Kojto | 106:ba1f97679dad | 262 | #endif |
Kojto | 106:ba1f97679dad | 263 | |
Kojto | 106:ba1f97679dad | 264 | #endif /* __STM32F4xx_HAL_PCCARD_H */ |
Kojto | 106:ba1f97679dad | 265 | |
Kojto | 106:ba1f97679dad | 266 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |