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 stm32f4xx_hal_pccard.h
sahilmgandhi 18:6a4db94011d3 4 * @author MCD Application Team
sahilmgandhi 18:6a4db94011d3 5 * @version V1.5.0
sahilmgandhi 18:6a4db94011d3 6 * @date 06-May-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 __STM32F4xx_HAL_PCCARD_H
sahilmgandhi 18:6a4db94011d3 40 #define __STM32F4xx_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 #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx)
sahilmgandhi 18:6a4db94011d3 48 #include "stm32f4xx_ll_fsmc.h"
sahilmgandhi 18:6a4db94011d3 49 #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx */
sahilmgandhi 18:6a4db94011d3 50
sahilmgandhi 18:6a4db94011d3 51 #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx)
sahilmgandhi 18:6a4db94011d3 52 #include "stm32f4xx_ll_fmc.h"
sahilmgandhi 18:6a4db94011d3 53 #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */
sahilmgandhi 18:6a4db94011d3 54
sahilmgandhi 18:6a4db94011d3 55 /** @addtogroup STM32F4xx_HAL_Driver
sahilmgandhi 18:6a4db94011d3 56 * @{
sahilmgandhi 18:6a4db94011d3 57 */
sahilmgandhi 18:6a4db94011d3 58
sahilmgandhi 18:6a4db94011d3 59 #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) ||\
sahilmgandhi 18:6a4db94011d3 60 defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx)
sahilmgandhi 18:6a4db94011d3 61
sahilmgandhi 18:6a4db94011d3 62 /** @addtogroup PCCARD
sahilmgandhi 18:6a4db94011d3 63 * @{
sahilmgandhi 18:6a4db94011d3 64 */
sahilmgandhi 18:6a4db94011d3 65
sahilmgandhi 18:6a4db94011d3 66 /* Exported typedef ----------------------------------------------------------*/
sahilmgandhi 18:6a4db94011d3 67 /** @defgroup PCCARD_Exported_Types PCCARD Exported Types
sahilmgandhi 18:6a4db94011d3 68 * @{
sahilmgandhi 18:6a4db94011d3 69 */
sahilmgandhi 18:6a4db94011d3 70
sahilmgandhi 18:6a4db94011d3 71 /**
sahilmgandhi 18:6a4db94011d3 72 * @brief HAL PCCARD State structures definition
sahilmgandhi 18:6a4db94011d3 73 */
sahilmgandhi 18:6a4db94011d3 74 typedef enum
sahilmgandhi 18:6a4db94011d3 75 {
sahilmgandhi 18:6a4db94011d3 76 HAL_PCCARD_STATE_RESET = 0x00U, /*!< PCCARD peripheral not yet initialized or disabled */
sahilmgandhi 18:6a4db94011d3 77 HAL_PCCARD_STATE_READY = 0x01U, /*!< PCCARD peripheral ready */
sahilmgandhi 18:6a4db94011d3 78 HAL_PCCARD_STATE_BUSY = 0x02U, /*!< PCCARD peripheral busy */
sahilmgandhi 18:6a4db94011d3 79 HAL_PCCARD_STATE_ERROR = 0x04U /*!< PCCARD peripheral error */
sahilmgandhi 18:6a4db94011d3 80 }HAL_PCCARD_StateTypeDef;
sahilmgandhi 18:6a4db94011d3 81
sahilmgandhi 18:6a4db94011d3 82 typedef enum
sahilmgandhi 18:6a4db94011d3 83 {
sahilmgandhi 18:6a4db94011d3 84 HAL_PCCARD_STATUS_SUCCESS = 0U,
sahilmgandhi 18:6a4db94011d3 85 HAL_PCCARD_STATUS_ONGOING,
sahilmgandhi 18:6a4db94011d3 86 HAL_PCCARD_STATUS_ERROR,
sahilmgandhi 18:6a4db94011d3 87 HAL_PCCARD_STATUS_TIMEOUT
sahilmgandhi 18:6a4db94011d3 88 }HAL_PCCARD_StatusTypeDef;
sahilmgandhi 18:6a4db94011d3 89
sahilmgandhi 18:6a4db94011d3 90 /**
sahilmgandhi 18:6a4db94011d3 91 * @brief FMC_PCCARD handle Structure definition
sahilmgandhi 18:6a4db94011d3 92 */
sahilmgandhi 18:6a4db94011d3 93 typedef struct
sahilmgandhi 18:6a4db94011d3 94 {
sahilmgandhi 18:6a4db94011d3 95 FMC_PCCARD_TypeDef *Instance; /*!< Register base address for PCCARD device */
sahilmgandhi 18:6a4db94011d3 96
sahilmgandhi 18:6a4db94011d3 97 FMC_PCCARD_InitTypeDef Init; /*!< PCCARD device control configuration parameters */
sahilmgandhi 18:6a4db94011d3 98
sahilmgandhi 18:6a4db94011d3 99 __IO HAL_PCCARD_StateTypeDef State; /*!< PCCARD device access state */
sahilmgandhi 18:6a4db94011d3 100
sahilmgandhi 18:6a4db94011d3 101 HAL_LockTypeDef Lock; /*!< PCCARD Lock */
sahilmgandhi 18:6a4db94011d3 102
sahilmgandhi 18:6a4db94011d3 103 }PCCARD_HandleTypeDef;
sahilmgandhi 18:6a4db94011d3 104 /**
sahilmgandhi 18:6a4db94011d3 105 * @}
sahilmgandhi 18:6a4db94011d3 106 */
sahilmgandhi 18:6a4db94011d3 107
sahilmgandhi 18:6a4db94011d3 108 /* Exported constants --------------------------------------------------------*/
sahilmgandhi 18:6a4db94011d3 109 /* Exported macro ------------------------------------------------------------*/
sahilmgandhi 18:6a4db94011d3 110 /** @defgroup PCCARD_Exported_Macros PCCARD Exported Macros
sahilmgandhi 18:6a4db94011d3 111 * @{
sahilmgandhi 18:6a4db94011d3 112 */
sahilmgandhi 18:6a4db94011d3 113 /** @brief Reset PCCARD handle state
sahilmgandhi 18:6a4db94011d3 114 * @param __HANDLE__: specifies the PCCARD handle.
sahilmgandhi 18:6a4db94011d3 115 * @retval None
sahilmgandhi 18:6a4db94011d3 116 */
sahilmgandhi 18:6a4db94011d3 117 #define __HAL_PCCARD_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_PCCARD_STATE_RESET)
sahilmgandhi 18:6a4db94011d3 118 /**
sahilmgandhi 18:6a4db94011d3 119 * @}
sahilmgandhi 18:6a4db94011d3 120 */
sahilmgandhi 18:6a4db94011d3 121
sahilmgandhi 18:6a4db94011d3 122 /* Exported functions --------------------------------------------------------*/
sahilmgandhi 18:6a4db94011d3 123 /** @addtogroup PCCARD_Exported_Functions
sahilmgandhi 18:6a4db94011d3 124 * @{
sahilmgandhi 18:6a4db94011d3 125 */
sahilmgandhi 18:6a4db94011d3 126
sahilmgandhi 18:6a4db94011d3 127 /** @addtogroup PCCARD_Exported_Functions_Group1
sahilmgandhi 18:6a4db94011d3 128 * @{
sahilmgandhi 18:6a4db94011d3 129 */
sahilmgandhi 18:6a4db94011d3 130 /* Initialization/de-initialization functions **********************************/
sahilmgandhi 18:6a4db94011d3 131 HAL_StatusTypeDef HAL_PCCARD_Init(PCCARD_HandleTypeDef *hpccard, FMC_NAND_PCC_TimingTypeDef *ComSpaceTiming, FMC_NAND_PCC_TimingTypeDef *AttSpaceTiming, FMC_NAND_PCC_TimingTypeDef *IOSpaceTiming);
sahilmgandhi 18:6a4db94011d3 132 HAL_StatusTypeDef HAL_PCCARD_DeInit(PCCARD_HandleTypeDef *hpccard);
sahilmgandhi 18:6a4db94011d3 133 void HAL_PCCARD_MspInit(PCCARD_HandleTypeDef *hpccard);
sahilmgandhi 18:6a4db94011d3 134 void HAL_PCCARD_MspDeInit(PCCARD_HandleTypeDef *hpccard);
sahilmgandhi 18:6a4db94011d3 135 /**
sahilmgandhi 18:6a4db94011d3 136 * @}
sahilmgandhi 18:6a4db94011d3 137 */
sahilmgandhi 18:6a4db94011d3 138
sahilmgandhi 18:6a4db94011d3 139 /** @addtogroup PCCARD_Exported_Functions_Group2
sahilmgandhi 18:6a4db94011d3 140 * @{
sahilmgandhi 18:6a4db94011d3 141 */
sahilmgandhi 18:6a4db94011d3 142 /* IO operation functions *****************************************************/
sahilmgandhi 18:6a4db94011d3 143 HAL_StatusTypeDef HAL_PCCARD_Read_ID(PCCARD_HandleTypeDef *hpccard, uint8_t CompactFlash_ID[], uint8_t *pStatus);
sahilmgandhi 18:6a4db94011d3 144 HAL_StatusTypeDef HAL_PCCARD_Write_Sector(PCCARD_HandleTypeDef *hpccard, uint16_t *pBuffer, uint16_t SectorAddress, uint8_t *pStatus);
sahilmgandhi 18:6a4db94011d3 145 HAL_StatusTypeDef HAL_PCCARD_Read_Sector(PCCARD_HandleTypeDef *hpccard, uint16_t *pBuffer, uint16_t SectorAddress, uint8_t *pStatus);
sahilmgandhi 18:6a4db94011d3 146 HAL_StatusTypeDef HAL_PCCARD_Erase_Sector(PCCARD_HandleTypeDef *hpccard, uint16_t SectorAddress, uint8_t *pStatus);
sahilmgandhi 18:6a4db94011d3 147 HAL_StatusTypeDef HAL_PCCARD_Reset(PCCARD_HandleTypeDef *hpccard);
sahilmgandhi 18:6a4db94011d3 148 void HAL_PCCARD_IRQHandler(PCCARD_HandleTypeDef *hpccard);
sahilmgandhi 18:6a4db94011d3 149 void HAL_PCCARD_ITCallback(PCCARD_HandleTypeDef *hpccard);
sahilmgandhi 18:6a4db94011d3 150
sahilmgandhi 18:6a4db94011d3 151 /**
sahilmgandhi 18:6a4db94011d3 152 * @}
sahilmgandhi 18:6a4db94011d3 153 */
sahilmgandhi 18:6a4db94011d3 154
sahilmgandhi 18:6a4db94011d3 155 /** @addtogroup PCCARD_Exported_Functions_Group3
sahilmgandhi 18:6a4db94011d3 156 * @{
sahilmgandhi 18:6a4db94011d3 157 */
sahilmgandhi 18:6a4db94011d3 158 /* PCCARD State functions *******************************************************/
sahilmgandhi 18:6a4db94011d3 159 HAL_PCCARD_StateTypeDef HAL_PCCARD_GetState(PCCARD_HandleTypeDef *hpccard);
sahilmgandhi 18:6a4db94011d3 160 HAL_PCCARD_StatusTypeDef HAL_PCCARD_GetStatus(PCCARD_HandleTypeDef *hpccard);
sahilmgandhi 18:6a4db94011d3 161 HAL_PCCARD_StatusTypeDef HAL_PCCARD_ReadStatus(PCCARD_HandleTypeDef *hpccard);
sahilmgandhi 18:6a4db94011d3 162 /**
sahilmgandhi 18:6a4db94011d3 163 * @}
sahilmgandhi 18:6a4db94011d3 164 */
sahilmgandhi 18:6a4db94011d3 165
sahilmgandhi 18:6a4db94011d3 166 /**
sahilmgandhi 18:6a4db94011d3 167 * @}
sahilmgandhi 18:6a4db94011d3 168 */
sahilmgandhi 18:6a4db94011d3 169 /* Private types -------------------------------------------------------------*/
sahilmgandhi 18:6a4db94011d3 170 /* Private variables ---------------------------------------------------------*/
sahilmgandhi 18:6a4db94011d3 171 /* Private constants ---------------------------------------------------------*/
sahilmgandhi 18:6a4db94011d3 172 /** @defgroup PCCARD_Private_Constants PCCARD Private Constants
sahilmgandhi 18:6a4db94011d3 173 * @{
sahilmgandhi 18:6a4db94011d3 174 */
sahilmgandhi 18:6a4db94011d3 175 #define PCCARD_DEVICE_ADDRESS ((uint32_t)0x90000000U)
sahilmgandhi 18:6a4db94011d3 176 #define PCCARD_ATTRIBUTE_SPACE_ADDRESS ((uint32_t)0x98000000U) /* Attribute space size to @0x9BFF FFFF */
sahilmgandhi 18:6a4db94011d3 177 #define PCCARD_COMMON_SPACE_ADDRESS PCCARD_DEVICE_ADDRESS /* Common space size to @0x93FF FFFF */
sahilmgandhi 18:6a4db94011d3 178 #define PCCARD_IO_SPACE_ADDRESS ((uint32_t)0x9C000000U) /* IO space size to @0x9FFF FFFF */
sahilmgandhi 18:6a4db94011d3 179 #define PCCARD_IO_SPACE_PRIMARY_ADDR ((uint32_t)0x9C0001F0U) /* IO space size to @0x9FFF FFFF */
sahilmgandhi 18:6a4db94011d3 180
sahilmgandhi 18:6a4db94011d3 181 /* Flash-ATA registers description */
sahilmgandhi 18:6a4db94011d3 182 #define ATA_DATA ((uint8_t)0x00U) /* Data register */
sahilmgandhi 18:6a4db94011d3 183 #define ATA_SECTOR_COUNT ((uint8_t)0x02U) /* Sector Count register */
sahilmgandhi 18:6a4db94011d3 184 #define ATA_SECTOR_NUMBER ((uint8_t)0x03U) /* Sector Number register */
sahilmgandhi 18:6a4db94011d3 185 #define ATA_CYLINDER_LOW ((uint8_t)0x04U) /* Cylinder low register */
sahilmgandhi 18:6a4db94011d3 186 #define ATA_CYLINDER_HIGH ((uint8_t)0x05U) /* Cylinder high register */
sahilmgandhi 18:6a4db94011d3 187 #define ATA_CARD_HEAD ((uint8_t)0x06U) /* Card/Head register */
sahilmgandhi 18:6a4db94011d3 188 #define ATA_STATUS_CMD ((uint8_t)0x07U) /* Status(read)/Command(write) register */
sahilmgandhi 18:6a4db94011d3 189 #define ATA_STATUS_CMD_ALTERNATE ((uint8_t)0x0EU) /* Alternate Status(read)/Command(write) register */
sahilmgandhi 18:6a4db94011d3 190 #define ATA_COMMON_DATA_AREA ((uint16_t)0x0400U) /* Start of data area (for Common access only!) */
sahilmgandhi 18:6a4db94011d3 191 #define ATA_CARD_CONFIGURATION ((uint16_t)0x0202U) /* Card Configuration and Status Register */
sahilmgandhi 18:6a4db94011d3 192
sahilmgandhi 18:6a4db94011d3 193 /* Flash-ATA commands */
sahilmgandhi 18:6a4db94011d3 194 #define ATA_READ_SECTOR_CMD ((uint8_t)0x20U)
sahilmgandhi 18:6a4db94011d3 195 #define ATA_WRITE_SECTOR_CMD ((uint8_t)0x30U)
sahilmgandhi 18:6a4db94011d3 196 #define ATA_ERASE_SECTOR_CMD ((uint8_t)0xC0)
sahilmgandhi 18:6a4db94011d3 197 #define ATA_IDENTIFY_CMD ((uint8_t)0xEC)
sahilmgandhi 18:6a4db94011d3 198
sahilmgandhi 18:6a4db94011d3 199 /* PC Card/Compact Flash status */
sahilmgandhi 18:6a4db94011d3 200 #define PCCARD_TIMEOUT_ERROR ((uint8_t)0x60U)
sahilmgandhi 18:6a4db94011d3 201 #define PCCARD_BUSY ((uint8_t)0x80U)
sahilmgandhi 18:6a4db94011d3 202 #define PCCARD_PROGR ((uint8_t)0x01U)
sahilmgandhi 18:6a4db94011d3 203 #define PCCARD_READY ((uint8_t)0x40U)
sahilmgandhi 18:6a4db94011d3 204
sahilmgandhi 18:6a4db94011d3 205 #define PCCARD_SECTOR_SIZE ((uint32_t)255U) /* In half words */
sahilmgandhi 18:6a4db94011d3 206
sahilmgandhi 18:6a4db94011d3 207 /**
sahilmgandhi 18:6a4db94011d3 208 * @}
sahilmgandhi 18:6a4db94011d3 209 */
sahilmgandhi 18:6a4db94011d3 210 /* Compact Flash redefinition */
sahilmgandhi 18:6a4db94011d3 211 #define HAL_CF_Init HAL_PCCARD_Init
sahilmgandhi 18:6a4db94011d3 212 #define HAL_CF_DeInit HAL_PCCARD_DeInit
sahilmgandhi 18:6a4db94011d3 213 #define HAL_CF_MspInit HAL_PCCARD_MspInit
sahilmgandhi 18:6a4db94011d3 214 #define HAL_CF_MspDeInit HAL_PCCARD_MspDeInit
sahilmgandhi 18:6a4db94011d3 215
sahilmgandhi 18:6a4db94011d3 216 #define HAL_CF_Read_ID HAL_PCCARD_Read_ID
sahilmgandhi 18:6a4db94011d3 217 #define HAL_CF_Write_Sector HAL_PCCARD_Write_Sector
sahilmgandhi 18:6a4db94011d3 218 #define HAL_CF_Read_Sector HAL_PCCARD_Read_Sector
sahilmgandhi 18:6a4db94011d3 219 #define HAL_CF_Erase_Sector HAL_PCCARD_Erase_Sector
sahilmgandhi 18:6a4db94011d3 220 #define HAL_CF_Reset HAL_PCCARD_Reset
sahilmgandhi 18:6a4db94011d3 221 #define HAL_CF_IRQHandler HAL_PCCARD_IRQHandler
sahilmgandhi 18:6a4db94011d3 222 #define HAL_CF_ITCallback HAL_PCCARD_ITCallback
sahilmgandhi 18:6a4db94011d3 223
sahilmgandhi 18:6a4db94011d3 224 #define HAL_CF_GetState HAL_PCCARD_GetState
sahilmgandhi 18:6a4db94011d3 225 #define HAL_CF_GetStatus HAL_PCCARD_GetStatus
sahilmgandhi 18:6a4db94011d3 226 #define HAL_CF_ReadStatus HAL_PCCARD_ReadStatus
sahilmgandhi 18:6a4db94011d3 227
sahilmgandhi 18:6a4db94011d3 228 #define HAL_CF_STATUS_SUCCESS HAL_PCCARD_STATUS_SUCCESS
sahilmgandhi 18:6a4db94011d3 229 #define HAL_CF_STATUS_ONGOING HAL_PCCARD_STATUS_ONGOING
sahilmgandhi 18:6a4db94011d3 230 #define HAL_CF_STATUS_ERROR HAL_PCCARD_STATUS_ERROR
sahilmgandhi 18:6a4db94011d3 231 #define HAL_CF_STATUS_TIMEOUT HAL_PCCARD_STATUS_TIMEOUT
sahilmgandhi 18:6a4db94011d3 232 #define HAL_CF_StatusTypeDef HAL_PCCARD_StatusTypeDef
sahilmgandhi 18:6a4db94011d3 233
sahilmgandhi 18:6a4db94011d3 234 #define CF_DEVICE_ADDRESS PCCARD_DEVICE_ADDRESS
sahilmgandhi 18:6a4db94011d3 235 #define CF_ATTRIBUTE_SPACE_ADDRESS PCCARD_ATTRIBUTE_SPACE_ADDRESS
sahilmgandhi 18:6a4db94011d3 236 #define CF_COMMON_SPACE_ADDRESS PCCARD_COMMON_SPACE_ADDRESS
sahilmgandhi 18:6a4db94011d3 237 #define CF_IO_SPACE_ADDRESS PCCARD_IO_SPACE_ADDRESS
sahilmgandhi 18:6a4db94011d3 238 #define CF_IO_SPACE_PRIMARY_ADDR PCCARD_IO_SPACE_PRIMARY_ADDR
sahilmgandhi 18:6a4db94011d3 239
sahilmgandhi 18:6a4db94011d3 240 #define CF_TIMEOUT_ERROR PCCARD_TIMEOUT_ERROR
sahilmgandhi 18:6a4db94011d3 241 #define CF_BUSY PCCARD_BUSY
sahilmgandhi 18:6a4db94011d3 242 #define CF_PROGR PCCARD_PROGR
sahilmgandhi 18:6a4db94011d3 243 #define CF_READY PCCARD_READY
sahilmgandhi 18:6a4db94011d3 244
sahilmgandhi 18:6a4db94011d3 245 #define CF_SECTOR_SIZE PCCARD_SECTOR_SIZE
sahilmgandhi 18:6a4db94011d3 246
sahilmgandhi 18:6a4db94011d3 247 /* Private macros ------------------------------------------------------------*/
sahilmgandhi 18:6a4db94011d3 248 /**
sahilmgandhi 18:6a4db94011d3 249 * @}
sahilmgandhi 18:6a4db94011d3 250 */
sahilmgandhi 18:6a4db94011d3 251
sahilmgandhi 18:6a4db94011d3 252 #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx ||\
sahilmgandhi 18:6a4db94011d3 253 STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */
sahilmgandhi 18:6a4db94011d3 254
sahilmgandhi 18:6a4db94011d3 255
sahilmgandhi 18:6a4db94011d3 256 /**
sahilmgandhi 18:6a4db94011d3 257 * @}
sahilmgandhi 18:6a4db94011d3 258 */
sahilmgandhi 18:6a4db94011d3 259
sahilmgandhi 18:6a4db94011d3 260 #ifdef __cplusplus
sahilmgandhi 18:6a4db94011d3 261 }
sahilmgandhi 18:6a4db94011d3 262 #endif
sahilmgandhi 18:6a4db94011d3 263
sahilmgandhi 18:6a4db94011d3 264 #endif /* __STM32F4xx_HAL_PCCARD_H */
sahilmgandhi 18:6a4db94011d3 265
sahilmgandhi 18:6a4db94011d3 266 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/