Mouse code for the MacroRat
mbed-dev/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_conf.h@18:6a4db94011d3, 2017-05-14 (annotated)
- Committer:
- sahilmgandhi
- Date:
- Sun May 14 23:18:57 2017 +0000
- Revision:
- 18:6a4db94011d3
Publishing again
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sahilmgandhi | 18:6a4db94011d3 | 1 | /** |
sahilmgandhi | 18:6a4db94011d3 | 2 | ****************************************************************************** |
sahilmgandhi | 18:6a4db94011d3 | 3 | * @file stm32f4xx_hal_conf.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 HAL configuration file. |
sahilmgandhi | 18:6a4db94011d3 | 8 | ****************************************************************************** |
sahilmgandhi | 18:6a4db94011d3 | 9 | * @attention |
sahilmgandhi | 18:6a4db94011d3 | 10 | * |
sahilmgandhi | 18:6a4db94011d3 | 11 | * <h2><center>© 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_CONF_H |
sahilmgandhi | 18:6a4db94011d3 | 40 | #define __STM32F4xx_HAL_CONF_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 | /* Exported types ------------------------------------------------------------*/ |
sahilmgandhi | 18:6a4db94011d3 | 47 | /* Exported constants --------------------------------------------------------*/ |
sahilmgandhi | 18:6a4db94011d3 | 48 | |
sahilmgandhi | 18:6a4db94011d3 | 49 | /* ########################## Module Selection ############################## */ |
sahilmgandhi | 18:6a4db94011d3 | 50 | /** |
sahilmgandhi | 18:6a4db94011d3 | 51 | * @brief This is the list of modules to be used in the HAL driver |
sahilmgandhi | 18:6a4db94011d3 | 52 | */ |
sahilmgandhi | 18:6a4db94011d3 | 53 | #define HAL_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 54 | #define HAL_ADC_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 55 | #define HAL_CAN_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 56 | #define HAL_CRC_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 57 | #define HAL_CEC_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 58 | #define HAL_CRYP_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 59 | #define HAL_DAC_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 60 | #define HAL_DCMI_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 61 | #define HAL_DMA_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 62 | #define HAL_DMA2D_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 63 | #define HAL_ETH_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 64 | #define HAL_FLASH_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 65 | #define HAL_NAND_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 66 | #define HAL_NOR_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 67 | #define HAL_PCCARD_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 68 | #define HAL_SRAM_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 69 | #define HAL_SDRAM_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 70 | #define HAL_HASH_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 71 | #define HAL_GPIO_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 72 | #define HAL_I2C_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 73 | #define HAL_I2S_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 74 | #define HAL_IWDG_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 75 | #define HAL_LTDC_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 76 | #define HAL_DSI_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 77 | #define HAL_PWR_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 78 | #define HAL_QSPI_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 79 | #define HAL_RCC_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 80 | #define HAL_RNG_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 81 | #define HAL_RTC_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 82 | #define HAL_SAI_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 83 | #define HAL_SD_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 84 | #define HAL_SPI_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 85 | #define HAL_TIM_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 86 | #define HAL_UART_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 87 | #define HAL_USART_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 88 | #define HAL_IRDA_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 89 | #define HAL_SMARTCARD_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 90 | #define HAL_WWDG_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 91 | #define HAL_CORTEX_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 92 | #define HAL_PCD_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 93 | #define HAL_HCD_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 94 | #define HAL_FMPI2C_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 95 | #define HAL_SPDIFRX_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 96 | #define HAL_DFSDM_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 97 | #define HAL_LPTIM_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 98 | |
sahilmgandhi | 18:6a4db94011d3 | 99 | /* ########################## HSE/HSI Values adaptation ##################### */ |
sahilmgandhi | 18:6a4db94011d3 | 100 | /** |
sahilmgandhi | 18:6a4db94011d3 | 101 | * @brief Adjust the value of External High Speed oscillator (HSE) used in your application. |
sahilmgandhi | 18:6a4db94011d3 | 102 | * This value is used by the RCC HAL module to compute the system frequency |
sahilmgandhi | 18:6a4db94011d3 | 103 | * (when HSE is used as system clock source, directly or through the PLL). |
sahilmgandhi | 18:6a4db94011d3 | 104 | */ |
sahilmgandhi | 18:6a4db94011d3 | 105 | #if !defined (HSE_VALUE) |
sahilmgandhi | 18:6a4db94011d3 | 106 | #define HSE_VALUE ((uint32_t)8000000U) /*!< Value of the External oscillator in Hz */ |
sahilmgandhi | 18:6a4db94011d3 | 107 | #endif /* HSE_VALUE */ |
sahilmgandhi | 18:6a4db94011d3 | 108 | |
sahilmgandhi | 18:6a4db94011d3 | 109 | #if !defined (HSE_STARTUP_TIMEOUT) |
sahilmgandhi | 18:6a4db94011d3 | 110 | #define HSE_STARTUP_TIMEOUT ((uint32_t)5000U) /*!< Time out for HSE start up, in ms */ |
sahilmgandhi | 18:6a4db94011d3 | 111 | #endif /* HSE_STARTUP_TIMEOUT */ |
sahilmgandhi | 18:6a4db94011d3 | 112 | |
sahilmgandhi | 18:6a4db94011d3 | 113 | /** |
sahilmgandhi | 18:6a4db94011d3 | 114 | * @brief Internal High Speed oscillator (HSI) value. |
sahilmgandhi | 18:6a4db94011d3 | 115 | * This value is used by the RCC HAL module to compute the system frequency |
sahilmgandhi | 18:6a4db94011d3 | 116 | * (when HSI is used as system clock source, directly or through the PLL). |
sahilmgandhi | 18:6a4db94011d3 | 117 | */ |
sahilmgandhi | 18:6a4db94011d3 | 118 | #if !defined (HSI_VALUE) |
sahilmgandhi | 18:6a4db94011d3 | 119 | #define HSI_VALUE ((uint32_t)16000000U) /*!< Value of the Internal oscillator in Hz*/ |
sahilmgandhi | 18:6a4db94011d3 | 120 | #endif /* HSI_VALUE */ |
sahilmgandhi | 18:6a4db94011d3 | 121 | |
sahilmgandhi | 18:6a4db94011d3 | 122 | /** |
sahilmgandhi | 18:6a4db94011d3 | 123 | * @brief Internal Low Speed oscillator (LSI) value. |
sahilmgandhi | 18:6a4db94011d3 | 124 | */ |
sahilmgandhi | 18:6a4db94011d3 | 125 | #if !defined (LSI_VALUE) |
sahilmgandhi | 18:6a4db94011d3 | 126 | #define LSI_VALUE ((uint32_t)32000U) /*!< LSI Typical Value in Hz*/ |
sahilmgandhi | 18:6a4db94011d3 | 127 | #endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz |
sahilmgandhi | 18:6a4db94011d3 | 128 | The real value may vary depending on the variations |
sahilmgandhi | 18:6a4db94011d3 | 129 | in voltage and temperature.*/ |
sahilmgandhi | 18:6a4db94011d3 | 130 | /** |
sahilmgandhi | 18:6a4db94011d3 | 131 | * @brief External Low Speed oscillator (LSE) value. |
sahilmgandhi | 18:6a4db94011d3 | 132 | */ |
sahilmgandhi | 18:6a4db94011d3 | 133 | #if !defined (LSE_VALUE) |
sahilmgandhi | 18:6a4db94011d3 | 134 | #define LSE_VALUE ((uint32_t)32768U) /*!< Value of the External Low Speed oscillator in Hz */ |
sahilmgandhi | 18:6a4db94011d3 | 135 | #endif /* LSE_VALUE */ |
sahilmgandhi | 18:6a4db94011d3 | 136 | |
sahilmgandhi | 18:6a4db94011d3 | 137 | #if !defined (LSE_STARTUP_TIMEOUT) |
sahilmgandhi | 18:6a4db94011d3 | 138 | #define LSE_STARTUP_TIMEOUT ((uint32_t)5000U) /*!< Time out for LSE start up, in ms */ |
sahilmgandhi | 18:6a4db94011d3 | 139 | #endif /* LSE_STARTUP_TIMEOUT */ |
sahilmgandhi | 18:6a4db94011d3 | 140 | |
sahilmgandhi | 18:6a4db94011d3 | 141 | /** |
sahilmgandhi | 18:6a4db94011d3 | 142 | * @brief External clock source for I2S peripheral |
sahilmgandhi | 18:6a4db94011d3 | 143 | * This value is used by the I2S HAL module to compute the I2S clock source |
sahilmgandhi | 18:6a4db94011d3 | 144 | * frequency, this source is inserted directly through I2S_CKIN pad. |
sahilmgandhi | 18:6a4db94011d3 | 145 | */ |
sahilmgandhi | 18:6a4db94011d3 | 146 | #if !defined (EXTERNAL_CLOCK_VALUE) |
sahilmgandhi | 18:6a4db94011d3 | 147 | #define EXTERNAL_CLOCK_VALUE ((uint32_t)12288000U) /*!< Value of the Internal oscillator in Hz*/ |
sahilmgandhi | 18:6a4db94011d3 | 148 | #endif /* EXTERNAL_CLOCK_VALUE */ |
sahilmgandhi | 18:6a4db94011d3 | 149 | |
sahilmgandhi | 18:6a4db94011d3 | 150 | /* Tip: To avoid modifying this file each time you need to use different HSE, |
sahilmgandhi | 18:6a4db94011d3 | 151 | === you can define the HSE value in your toolchain compiler preprocessor. */ |
sahilmgandhi | 18:6a4db94011d3 | 152 | |
sahilmgandhi | 18:6a4db94011d3 | 153 | /* ########################### System Configuration ######################### */ |
sahilmgandhi | 18:6a4db94011d3 | 154 | /** |
sahilmgandhi | 18:6a4db94011d3 | 155 | * @brief This is the HAL system configuration section |
sahilmgandhi | 18:6a4db94011d3 | 156 | */ |
sahilmgandhi | 18:6a4db94011d3 | 157 | #define VDD_VALUE ((uint32_t)3300U) /*!< Value of VDD in mv */ |
sahilmgandhi | 18:6a4db94011d3 | 158 | #define TICK_INT_PRIORITY ((uint32_t)0x0FU) /*!< tick interrupt priority */ |
sahilmgandhi | 18:6a4db94011d3 | 159 | #define USE_RTOS 0U |
sahilmgandhi | 18:6a4db94011d3 | 160 | #define PREFETCH_ENABLE 1U |
sahilmgandhi | 18:6a4db94011d3 | 161 | #define INSTRUCTION_CACHE_ENABLE 1U |
sahilmgandhi | 18:6a4db94011d3 | 162 | #define DATA_CACHE_ENABLE 1U |
sahilmgandhi | 18:6a4db94011d3 | 163 | |
sahilmgandhi | 18:6a4db94011d3 | 164 | /* ########################## Assert Selection ############################## */ |
sahilmgandhi | 18:6a4db94011d3 | 165 | /** |
sahilmgandhi | 18:6a4db94011d3 | 166 | * @brief Uncomment the line below to expanse the "assert_param" macro in the |
sahilmgandhi | 18:6a4db94011d3 | 167 | * HAL drivers code |
sahilmgandhi | 18:6a4db94011d3 | 168 | */ |
sahilmgandhi | 18:6a4db94011d3 | 169 | /* #define USE_FULL_ASSERT 1U */ |
sahilmgandhi | 18:6a4db94011d3 | 170 | |
sahilmgandhi | 18:6a4db94011d3 | 171 | /* ################## Ethernet peripheral configuration ##################### */ |
sahilmgandhi | 18:6a4db94011d3 | 172 | |
sahilmgandhi | 18:6a4db94011d3 | 173 | /* Section 1 : Ethernet peripheral configuration */ |
sahilmgandhi | 18:6a4db94011d3 | 174 | |
sahilmgandhi | 18:6a4db94011d3 | 175 | /* MAC ADDRESS: MAC_ADDR0:MAC_ADDR1:MAC_ADDR2:MAC_ADDR3:MAC_ADDR4:MAC_ADDR5 */ |
sahilmgandhi | 18:6a4db94011d3 | 176 | #define MAC_ADDR0 2U |
sahilmgandhi | 18:6a4db94011d3 | 177 | #define MAC_ADDR1 0U |
sahilmgandhi | 18:6a4db94011d3 | 178 | #define MAC_ADDR2 0U |
sahilmgandhi | 18:6a4db94011d3 | 179 | #define MAC_ADDR3 0U |
sahilmgandhi | 18:6a4db94011d3 | 180 | #define MAC_ADDR4 0U |
sahilmgandhi | 18:6a4db94011d3 | 181 | #define MAC_ADDR5 0U |
sahilmgandhi | 18:6a4db94011d3 | 182 | |
sahilmgandhi | 18:6a4db94011d3 | 183 | /* Definition of the Ethernet driver buffers size and count */ |
sahilmgandhi | 18:6a4db94011d3 | 184 | #define ETH_RX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for receive */ |
sahilmgandhi | 18:6a4db94011d3 | 185 | #define ETH_TX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for transmit */ |
sahilmgandhi | 18:6a4db94011d3 | 186 | #define ETH_RXBUFNB ((uint32_t)4U) /* 4 Rx buffers of size ETH_RX_BUF_SIZE */ |
sahilmgandhi | 18:6a4db94011d3 | 187 | #define ETH_TXBUFNB ((uint32_t)4U) /* 4 Tx buffers of size ETH_TX_BUF_SIZE */ |
sahilmgandhi | 18:6a4db94011d3 | 188 | |
sahilmgandhi | 18:6a4db94011d3 | 189 | /* Section 2: PHY configuration section */ |
sahilmgandhi | 18:6a4db94011d3 | 190 | |
sahilmgandhi | 18:6a4db94011d3 | 191 | /* DP83848 PHY Address*/ |
sahilmgandhi | 18:6a4db94011d3 | 192 | #define DP83848_PHY_ADDRESS 0x01U |
sahilmgandhi | 18:6a4db94011d3 | 193 | /* PHY Reset delay these values are based on a 1 ms Systick interrupt*/ |
sahilmgandhi | 18:6a4db94011d3 | 194 | #define PHY_RESET_DELAY ((uint32_t)0x000000FFU) |
sahilmgandhi | 18:6a4db94011d3 | 195 | /* PHY Configuration delay */ |
sahilmgandhi | 18:6a4db94011d3 | 196 | #define PHY_CONFIG_DELAY ((uint32_t)0x00000FFFU) |
sahilmgandhi | 18:6a4db94011d3 | 197 | |
sahilmgandhi | 18:6a4db94011d3 | 198 | #define PHY_READ_TO ((uint32_t)0x0000FFFFU) |
sahilmgandhi | 18:6a4db94011d3 | 199 | #define PHY_WRITE_TO ((uint32_t)0x0000FFFFU) |
sahilmgandhi | 18:6a4db94011d3 | 200 | |
sahilmgandhi | 18:6a4db94011d3 | 201 | /* Section 3: Common PHY Registers */ |
sahilmgandhi | 18:6a4db94011d3 | 202 | |
sahilmgandhi | 18:6a4db94011d3 | 203 | #define PHY_BCR ((uint16_t)0x0000U) /*!< Transceiver Basic Control Register */ |
sahilmgandhi | 18:6a4db94011d3 | 204 | #define PHY_BSR ((uint16_t)0x0001U) /*!< Transceiver Basic Status Register */ |
sahilmgandhi | 18:6a4db94011d3 | 205 | |
sahilmgandhi | 18:6a4db94011d3 | 206 | #define PHY_RESET ((uint16_t)0x8000U) /*!< PHY Reset */ |
sahilmgandhi | 18:6a4db94011d3 | 207 | #define PHY_LOOPBACK ((uint16_t)0x4000U) /*!< Select loop-back mode */ |
sahilmgandhi | 18:6a4db94011d3 | 208 | #define PHY_FULLDUPLEX_100M ((uint16_t)0x2100U) /*!< Set the full-duplex mode at 100 Mb/s */ |
sahilmgandhi | 18:6a4db94011d3 | 209 | #define PHY_HALFDUPLEX_100M ((uint16_t)0x2000U) /*!< Set the half-duplex mode at 100 Mb/s */ |
sahilmgandhi | 18:6a4db94011d3 | 210 | #define PHY_FULLDUPLEX_10M ((uint16_t)0x0100U) /*!< Set the full-duplex mode at 10 Mb/s */ |
sahilmgandhi | 18:6a4db94011d3 | 211 | #define PHY_HALFDUPLEX_10M ((uint16_t)0x0000U) /*!< Set the half-duplex mode at 10 Mb/s */ |
sahilmgandhi | 18:6a4db94011d3 | 212 | #define PHY_AUTONEGOTIATION ((uint16_t)0x1000U) /*!< Enable auto-negotiation function */ |
sahilmgandhi | 18:6a4db94011d3 | 213 | #define PHY_RESTART_AUTONEGOTIATION ((uint16_t)0x0200U) /*!< Restart auto-negotiation function */ |
sahilmgandhi | 18:6a4db94011d3 | 214 | #define PHY_POWERDOWN ((uint16_t)0x0800U) /*!< Select the power down mode */ |
sahilmgandhi | 18:6a4db94011d3 | 215 | #define PHY_ISOLATE ((uint16_t)0x0400U) /*!< Isolate PHY from MII */ |
sahilmgandhi | 18:6a4db94011d3 | 216 | |
sahilmgandhi | 18:6a4db94011d3 | 217 | #define PHY_AUTONEGO_COMPLETE ((uint16_t)0x0020U) /*!< Auto-Negotiation process completed */ |
sahilmgandhi | 18:6a4db94011d3 | 218 | #define PHY_LINKED_STATUS ((uint16_t)0x0004U) /*!< Valid link established */ |
sahilmgandhi | 18:6a4db94011d3 | 219 | #define PHY_JABBER_DETECTION ((uint16_t)0x0002U) /*!< Jabber condition detected */ |
sahilmgandhi | 18:6a4db94011d3 | 220 | |
sahilmgandhi | 18:6a4db94011d3 | 221 | /* Section 4: Extended PHY Registers */ |
sahilmgandhi | 18:6a4db94011d3 | 222 | |
sahilmgandhi | 18:6a4db94011d3 | 223 | #define PHY_SR ((uint16_t)0x0010U) /*!< PHY status register Offset */ |
sahilmgandhi | 18:6a4db94011d3 | 224 | #define PHY_MICR ((uint16_t)0x0011U) /*!< MII Interrupt Control Register */ |
sahilmgandhi | 18:6a4db94011d3 | 225 | #define PHY_MISR ((uint16_t)0x0012U) /*!< MII Interrupt Status and Misc. Control Register */ |
sahilmgandhi | 18:6a4db94011d3 | 226 | |
sahilmgandhi | 18:6a4db94011d3 | 227 | #define PHY_LINK_STATUS ((uint16_t)0x0001U) /*!< PHY Link mask */ |
sahilmgandhi | 18:6a4db94011d3 | 228 | #define PHY_SPEED_STATUS ((uint16_t)0x0002U) /*!< PHY Speed mask */ |
sahilmgandhi | 18:6a4db94011d3 | 229 | #define PHY_DUPLEX_STATUS ((uint16_t)0x0004U) /*!< PHY Duplex mask */ |
sahilmgandhi | 18:6a4db94011d3 | 230 | |
sahilmgandhi | 18:6a4db94011d3 | 231 | #define PHY_MICR_INT_EN ((uint16_t)0x0002U) /*!< PHY Enable interrupts */ |
sahilmgandhi | 18:6a4db94011d3 | 232 | #define PHY_MICR_INT_OE ((uint16_t)0x0001U) /*!< PHY Enable output interrupt events */ |
sahilmgandhi | 18:6a4db94011d3 | 233 | |
sahilmgandhi | 18:6a4db94011d3 | 234 | #define PHY_MISR_LINK_INT_EN ((uint16_t)0x0020U) /*!< Enable Interrupt on change of link status */ |
sahilmgandhi | 18:6a4db94011d3 | 235 | #define PHY_LINK_INTERRUPT ((uint16_t)0x2000U) /*!< PHY link status interrupt mask */ |
sahilmgandhi | 18:6a4db94011d3 | 236 | |
sahilmgandhi | 18:6a4db94011d3 | 237 | /* ################## SPI peripheral configuration ########################## */ |
sahilmgandhi | 18:6a4db94011d3 | 238 | |
sahilmgandhi | 18:6a4db94011d3 | 239 | /* CRC FEATURE: Use to activate CRC feature inside HAL SPI Driver |
sahilmgandhi | 18:6a4db94011d3 | 240 | * Activated: CRC code is present inside driver |
sahilmgandhi | 18:6a4db94011d3 | 241 | * Deactivated: CRC code cleaned from driver |
sahilmgandhi | 18:6a4db94011d3 | 242 | */ |
sahilmgandhi | 18:6a4db94011d3 | 243 | |
sahilmgandhi | 18:6a4db94011d3 | 244 | #define USE_SPI_CRC 1U |
sahilmgandhi | 18:6a4db94011d3 | 245 | |
sahilmgandhi | 18:6a4db94011d3 | 246 | /* Includes ------------------------------------------------------------------*/ |
sahilmgandhi | 18:6a4db94011d3 | 247 | /** |
sahilmgandhi | 18:6a4db94011d3 | 248 | * @brief Include module's header file |
sahilmgandhi | 18:6a4db94011d3 | 249 | */ |
sahilmgandhi | 18:6a4db94011d3 | 250 | |
sahilmgandhi | 18:6a4db94011d3 | 251 | #ifdef HAL_RCC_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 252 | #include "stm32f4xx_hal_rcc.h" |
sahilmgandhi | 18:6a4db94011d3 | 253 | #endif /* HAL_RCC_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 254 | |
sahilmgandhi | 18:6a4db94011d3 | 255 | #ifdef HAL_GPIO_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 256 | #include "stm32f4xx_hal_gpio.h" |
sahilmgandhi | 18:6a4db94011d3 | 257 | #endif /* HAL_GPIO_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 258 | |
sahilmgandhi | 18:6a4db94011d3 | 259 | #ifdef HAL_DMA_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 260 | #include "stm32f4xx_hal_dma.h" |
sahilmgandhi | 18:6a4db94011d3 | 261 | #endif /* HAL_DMA_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 262 | |
sahilmgandhi | 18:6a4db94011d3 | 263 | #ifdef HAL_CORTEX_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 264 | #include "stm32f4xx_hal_cortex.h" |
sahilmgandhi | 18:6a4db94011d3 | 265 | #endif /* HAL_CORTEX_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 266 | |
sahilmgandhi | 18:6a4db94011d3 | 267 | #ifdef HAL_ADC_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 268 | #include "stm32f4xx_hal_adc.h" |
sahilmgandhi | 18:6a4db94011d3 | 269 | #endif /* HAL_ADC_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 270 | |
sahilmgandhi | 18:6a4db94011d3 | 271 | #ifdef HAL_CAN_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 272 | #include "stm32f4xx_hal_can.h" |
sahilmgandhi | 18:6a4db94011d3 | 273 | #endif /* HAL_CAN_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 274 | |
sahilmgandhi | 18:6a4db94011d3 | 275 | #ifdef HAL_CRC_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 276 | #include "stm32f4xx_hal_crc.h" |
sahilmgandhi | 18:6a4db94011d3 | 277 | #endif /* HAL_CRC_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 278 | |
sahilmgandhi | 18:6a4db94011d3 | 279 | #ifdef HAL_CRYP_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 280 | #include "stm32f4xx_hal_cryp.h" |
sahilmgandhi | 18:6a4db94011d3 | 281 | #endif /* HAL_CRYP_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 282 | |
sahilmgandhi | 18:6a4db94011d3 | 283 | #ifdef HAL_DMA2D_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 284 | #include "stm32f4xx_hal_dma2d.h" |
sahilmgandhi | 18:6a4db94011d3 | 285 | #endif /* HAL_DMA2D_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 286 | |
sahilmgandhi | 18:6a4db94011d3 | 287 | #ifdef HAL_DAC_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 288 | #include "stm32f4xx_hal_dac.h" |
sahilmgandhi | 18:6a4db94011d3 | 289 | #endif /* HAL_DAC_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 290 | |
sahilmgandhi | 18:6a4db94011d3 | 291 | #ifdef HAL_DCMI_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 292 | #include "stm32f4xx_hal_dcmi.h" |
sahilmgandhi | 18:6a4db94011d3 | 293 | #endif /* HAL_DCMI_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 294 | |
sahilmgandhi | 18:6a4db94011d3 | 295 | #ifdef HAL_ETH_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 296 | #include "stm32f4xx_hal_eth.h" |
sahilmgandhi | 18:6a4db94011d3 | 297 | #endif /* HAL_ETH_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 298 | |
sahilmgandhi | 18:6a4db94011d3 | 299 | #ifdef HAL_FLASH_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 300 | #include "stm32f4xx_hal_flash.h" |
sahilmgandhi | 18:6a4db94011d3 | 301 | #endif /* HAL_FLASH_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 302 | |
sahilmgandhi | 18:6a4db94011d3 | 303 | #ifdef HAL_SRAM_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 304 | #include "stm32f4xx_hal_sram.h" |
sahilmgandhi | 18:6a4db94011d3 | 305 | #endif /* HAL_SRAM_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 306 | |
sahilmgandhi | 18:6a4db94011d3 | 307 | #ifdef HAL_NOR_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 308 | #include "stm32f4xx_hal_nor.h" |
sahilmgandhi | 18:6a4db94011d3 | 309 | #endif /* HAL_NOR_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 310 | |
sahilmgandhi | 18:6a4db94011d3 | 311 | #ifdef HAL_NAND_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 312 | #include "stm32f4xx_hal_nand.h" |
sahilmgandhi | 18:6a4db94011d3 | 313 | #endif /* HAL_NAND_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 314 | |
sahilmgandhi | 18:6a4db94011d3 | 315 | #ifdef HAL_PCCARD_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 316 | #include "stm32f4xx_hal_pccard.h" |
sahilmgandhi | 18:6a4db94011d3 | 317 | #endif /* HAL_PCCARD_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 318 | |
sahilmgandhi | 18:6a4db94011d3 | 319 | #ifdef HAL_SDRAM_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 320 | #include "stm32f4xx_hal_sdram.h" |
sahilmgandhi | 18:6a4db94011d3 | 321 | #endif /* HAL_SDRAM_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 322 | |
sahilmgandhi | 18:6a4db94011d3 | 323 | #ifdef HAL_HASH_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 324 | #include "stm32f4xx_hal_hash.h" |
sahilmgandhi | 18:6a4db94011d3 | 325 | #endif /* HAL_HASH_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 326 | |
sahilmgandhi | 18:6a4db94011d3 | 327 | #ifdef HAL_I2C_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 328 | #include "stm32f4xx_hal_i2c.h" |
sahilmgandhi | 18:6a4db94011d3 | 329 | #endif /* HAL_I2C_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 330 | |
sahilmgandhi | 18:6a4db94011d3 | 331 | #ifdef HAL_I2S_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 332 | #include "stm32f4xx_hal_i2s.h" |
sahilmgandhi | 18:6a4db94011d3 | 333 | #endif /* HAL_I2S_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 334 | |
sahilmgandhi | 18:6a4db94011d3 | 335 | #ifdef HAL_IWDG_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 336 | #include "stm32f4xx_hal_iwdg.h" |
sahilmgandhi | 18:6a4db94011d3 | 337 | #endif /* HAL_IWDG_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 338 | |
sahilmgandhi | 18:6a4db94011d3 | 339 | #ifdef HAL_LTDC_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 340 | #include "stm32f4xx_hal_ltdc.h" |
sahilmgandhi | 18:6a4db94011d3 | 341 | #endif /* HAL_LTDC_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 342 | |
sahilmgandhi | 18:6a4db94011d3 | 343 | #ifdef HAL_PWR_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 344 | #include "stm32f4xx_hal_pwr.h" |
sahilmgandhi | 18:6a4db94011d3 | 345 | #endif /* HAL_PWR_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 346 | |
sahilmgandhi | 18:6a4db94011d3 | 347 | #ifdef HAL_RNG_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 348 | #include "stm32f4xx_hal_rng.h" |
sahilmgandhi | 18:6a4db94011d3 | 349 | #endif /* HAL_RNG_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 350 | |
sahilmgandhi | 18:6a4db94011d3 | 351 | #ifdef HAL_RTC_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 352 | #include "stm32f4xx_hal_rtc.h" |
sahilmgandhi | 18:6a4db94011d3 | 353 | #endif /* HAL_RTC_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 354 | |
sahilmgandhi | 18:6a4db94011d3 | 355 | #ifdef HAL_SAI_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 356 | #include "stm32f4xx_hal_sai.h" |
sahilmgandhi | 18:6a4db94011d3 | 357 | #endif /* HAL_SAI_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 358 | |
sahilmgandhi | 18:6a4db94011d3 | 359 | #ifdef HAL_SD_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 360 | #include "stm32f4xx_hal_sd.h" |
sahilmgandhi | 18:6a4db94011d3 | 361 | #endif /* HAL_SD_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 362 | |
sahilmgandhi | 18:6a4db94011d3 | 363 | #ifdef HAL_SPI_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 364 | #include "stm32f4xx_hal_spi.h" |
sahilmgandhi | 18:6a4db94011d3 | 365 | #endif /* HAL_SPI_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 366 | |
sahilmgandhi | 18:6a4db94011d3 | 367 | #ifdef HAL_TIM_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 368 | #include "stm32f4xx_hal_tim.h" |
sahilmgandhi | 18:6a4db94011d3 | 369 | #endif /* HAL_TIM_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 370 | |
sahilmgandhi | 18:6a4db94011d3 | 371 | #ifdef HAL_UART_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 372 | #include "stm32f4xx_hal_uart.h" |
sahilmgandhi | 18:6a4db94011d3 | 373 | #endif /* HAL_UART_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 374 | |
sahilmgandhi | 18:6a4db94011d3 | 375 | #ifdef HAL_USART_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 376 | #include "stm32f4xx_hal_usart.h" |
sahilmgandhi | 18:6a4db94011d3 | 377 | #endif /* HAL_USART_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 378 | |
sahilmgandhi | 18:6a4db94011d3 | 379 | #ifdef HAL_IRDA_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 380 | #include "stm32f4xx_hal_irda.h" |
sahilmgandhi | 18:6a4db94011d3 | 381 | #endif /* HAL_IRDA_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 382 | |
sahilmgandhi | 18:6a4db94011d3 | 383 | #ifdef HAL_SMARTCARD_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 384 | #include "stm32f4xx_hal_smartcard.h" |
sahilmgandhi | 18:6a4db94011d3 | 385 | #endif /* HAL_SMARTCARD_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 386 | |
sahilmgandhi | 18:6a4db94011d3 | 387 | #ifdef HAL_WWDG_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 388 | #include "stm32f4xx_hal_wwdg.h" |
sahilmgandhi | 18:6a4db94011d3 | 389 | #endif /* HAL_WWDG_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 390 | |
sahilmgandhi | 18:6a4db94011d3 | 391 | #ifdef HAL_PCD_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 392 | #include "stm32f4xx_hal_pcd.h" |
sahilmgandhi | 18:6a4db94011d3 | 393 | #endif /* HAL_PCD_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 394 | |
sahilmgandhi | 18:6a4db94011d3 | 395 | #ifdef HAL_HCD_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 396 | #include "stm32f4xx_hal_hcd.h" |
sahilmgandhi | 18:6a4db94011d3 | 397 | #endif /* HAL_HCD_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 398 | |
sahilmgandhi | 18:6a4db94011d3 | 399 | #ifdef HAL_DSI_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 400 | #include "stm32f4xx_hal_dsi.h" |
sahilmgandhi | 18:6a4db94011d3 | 401 | #endif /* HAL_DSI_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 402 | |
sahilmgandhi | 18:6a4db94011d3 | 403 | #ifdef HAL_QSPI_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 404 | #include "stm32f4xx_hal_qspi.h" |
sahilmgandhi | 18:6a4db94011d3 | 405 | #endif /* HAL_QSPI_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 406 | |
sahilmgandhi | 18:6a4db94011d3 | 407 | #ifdef HAL_CEC_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 408 | #include "stm32f4xx_hal_cec.h" |
sahilmgandhi | 18:6a4db94011d3 | 409 | #endif /* HAL_CEC_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 410 | |
sahilmgandhi | 18:6a4db94011d3 | 411 | #ifdef HAL_FMPI2C_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 412 | #include "stm32f4xx_hal_fmpi2c.h" |
sahilmgandhi | 18:6a4db94011d3 | 413 | #endif /* HAL_FMPI2C_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 414 | |
sahilmgandhi | 18:6a4db94011d3 | 415 | #ifdef HAL_SPDIFRX_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 416 | #include "stm32f4xx_hal_spdifrx.h" |
sahilmgandhi | 18:6a4db94011d3 | 417 | #endif /* HAL_SPDIFRX_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 418 | |
sahilmgandhi | 18:6a4db94011d3 | 419 | #ifdef HAL_DFSDM_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 420 | #include "stm32f4xx_hal_dfsdm.h" |
sahilmgandhi | 18:6a4db94011d3 | 421 | #endif /* HAL_DFSDM_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 422 | |
sahilmgandhi | 18:6a4db94011d3 | 423 | #ifdef HAL_LPTIM_MODULE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 424 | #include "stm32f4xx_hal_lptim.h" |
sahilmgandhi | 18:6a4db94011d3 | 425 | #endif /* HAL_LPTIM_MODULE_ENABLED */ |
sahilmgandhi | 18:6a4db94011d3 | 426 | |
sahilmgandhi | 18:6a4db94011d3 | 427 | /* Exported macro ------------------------------------------------------------*/ |
sahilmgandhi | 18:6a4db94011d3 | 428 | #ifdef USE_FULL_ASSERT |
sahilmgandhi | 18:6a4db94011d3 | 429 | /** |
sahilmgandhi | 18:6a4db94011d3 | 430 | * @brief The assert_param macro is used for function's parameters check. |
sahilmgandhi | 18:6a4db94011d3 | 431 | * @param expr: If expr is false, it calls assert_failed function |
sahilmgandhi | 18:6a4db94011d3 | 432 | * which reports the name of the source file and the source |
sahilmgandhi | 18:6a4db94011d3 | 433 | * line number of the call that failed. |
sahilmgandhi | 18:6a4db94011d3 | 434 | * If expr is true, it returns no value. |
sahilmgandhi | 18:6a4db94011d3 | 435 | * @retval None |
sahilmgandhi | 18:6a4db94011d3 | 436 | */ |
sahilmgandhi | 18:6a4db94011d3 | 437 | #include "mbed_assert.h" |
sahilmgandhi | 18:6a4db94011d3 | 438 | #define assert_param(expr) MBED_ASSERT(expr) |
sahilmgandhi | 18:6a4db94011d3 | 439 | #else |
sahilmgandhi | 18:6a4db94011d3 | 440 | #define assert_param(expr) ((void)0) |
sahilmgandhi | 18:6a4db94011d3 | 441 | #endif /* USE_FULL_ASSERT */ |
sahilmgandhi | 18:6a4db94011d3 | 442 | |
sahilmgandhi | 18:6a4db94011d3 | 443 | |
sahilmgandhi | 18:6a4db94011d3 | 444 | #ifdef __cplusplus |
sahilmgandhi | 18:6a4db94011d3 | 445 | } |
sahilmgandhi | 18:6a4db94011d3 | 446 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 447 | |
sahilmgandhi | 18:6a4db94011d3 | 448 | #endif /* __STM32F4xx_HAL_CONF_H */ |
sahilmgandhi | 18:6a4db94011d3 | 449 | |
sahilmgandhi | 18:6a4db94011d3 | 450 | |
sahilmgandhi | 18:6a4db94011d3 | 451 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |