Mouse code for the MacroRat

Dependencies:   ITG3200 QEI

Committer:
sahilmgandhi
Date:
Sat Jun 03 00:22:44 2017 +0000
Revision:
46:b156ef445742
Parent:
18:6a4db94011d3
Final code for internal battlebot competition.

Who changed what in which revision?

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