fatih
Dependencies: mbed-rtos mbed ros_lib_indigo
stm32f7xx_hal_conf.h@1:0f99619433e0, 2017-03-04 (annotated)
- Committer:
- randalthor
- Date:
- Sat Mar 04 14:08:19 2017 +0000
- Revision:
- 1:0f99619433e0
- Parent:
- 0:4d2d2219c8e4
fatihh
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
randalthor | 0:4d2d2219c8e4 | 1 | /** |
randalthor | 0:4d2d2219c8e4 | 2 | ****************************************************************************** |
randalthor | 0:4d2d2219c8e4 | 3 | * @file stm32f7xx_hal_conf.h |
randalthor | 0:4d2d2219c8e4 | 4 | * @brief HAL configuration file. |
randalthor | 0:4d2d2219c8e4 | 5 | ****************************************************************************** |
randalthor | 0:4d2d2219c8e4 | 6 | * @attention |
randalthor | 0:4d2d2219c8e4 | 7 | * |
randalthor | 0:4d2d2219c8e4 | 8 | * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2> |
randalthor | 0:4d2d2219c8e4 | 9 | * |
randalthor | 0:4d2d2219c8e4 | 10 | * Redistribution and use in source and binary forms, with or without modification, |
randalthor | 0:4d2d2219c8e4 | 11 | * are permitted provided that the following conditions are met: |
randalthor | 0:4d2d2219c8e4 | 12 | * 1. Redistributions of source code must retain the above copyright notice, |
randalthor | 0:4d2d2219c8e4 | 13 | * this list of conditions and the following disclaimer. |
randalthor | 0:4d2d2219c8e4 | 14 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
randalthor | 0:4d2d2219c8e4 | 15 | * this list of conditions and the following disclaimer in the documentation |
randalthor | 0:4d2d2219c8e4 | 16 | * and/or other materials provided with the distribution. |
randalthor | 0:4d2d2219c8e4 | 17 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
randalthor | 0:4d2d2219c8e4 | 18 | * may be used to endorse or promote products derived from this software |
randalthor | 0:4d2d2219c8e4 | 19 | * without specific prior written permission. |
randalthor | 0:4d2d2219c8e4 | 20 | * |
randalthor | 0:4d2d2219c8e4 | 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
randalthor | 0:4d2d2219c8e4 | 22 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
randalthor | 0:4d2d2219c8e4 | 23 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
randalthor | 0:4d2d2219c8e4 | 24 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
randalthor | 0:4d2d2219c8e4 | 25 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
randalthor | 0:4d2d2219c8e4 | 26 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
randalthor | 0:4d2d2219c8e4 | 27 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
randalthor | 0:4d2d2219c8e4 | 28 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
randalthor | 0:4d2d2219c8e4 | 29 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
randalthor | 0:4d2d2219c8e4 | 30 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
randalthor | 0:4d2d2219c8e4 | 31 | * |
randalthor | 0:4d2d2219c8e4 | 32 | ****************************************************************************** |
randalthor | 0:4d2d2219c8e4 | 33 | */ |
randalthor | 0:4d2d2219c8e4 | 34 | |
randalthor | 0:4d2d2219c8e4 | 35 | /* Define to prevent recursive inclusion -------------------------------------*/ |
randalthor | 0:4d2d2219c8e4 | 36 | #ifndef __STM32F7xx_HAL_CONF_H |
randalthor | 0:4d2d2219c8e4 | 37 | #define __STM32F7xx_HAL_CONF_H |
randalthor | 0:4d2d2219c8e4 | 38 | |
randalthor | 0:4d2d2219c8e4 | 39 | #ifdef __cplusplus |
randalthor | 0:4d2d2219c8e4 | 40 | extern "C" { |
randalthor | 0:4d2d2219c8e4 | 41 | #endif |
randalthor | 0:4d2d2219c8e4 | 42 | |
randalthor | 0:4d2d2219c8e4 | 43 | #include "main.h" |
randalthor | 0:4d2d2219c8e4 | 44 | /* Exported types ------------------------------------------------------------*/ |
randalthor | 0:4d2d2219c8e4 | 45 | /* Exported constants --------------------------------------------------------*/ |
randalthor | 0:4d2d2219c8e4 | 46 | |
randalthor | 0:4d2d2219c8e4 | 47 | /* ########################## Module Selection ############################## */ |
randalthor | 0:4d2d2219c8e4 | 48 | /** |
randalthor | 0:4d2d2219c8e4 | 49 | * @brief This is the list of modules to be used in the HAL driver |
randalthor | 0:4d2d2219c8e4 | 50 | */ |
randalthor | 0:4d2d2219c8e4 | 51 | #define HAL_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 52 | |
randalthor | 0:4d2d2219c8e4 | 53 | #define HAL_ADC_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 54 | /* #define HAL_CAN_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 55 | /* #define HAL_CEC_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 56 | /* #define HAL_CRC_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 57 | /* #define HAL_CRYP_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 58 | /* #define HAL_DAC_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 59 | /* #define HAL_DCMI_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 60 | /* #define HAL_DMA2D_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 61 | /* #define HAL_ETH_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 62 | /* #define HAL_NAND_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 63 | /* #define HAL_NOR_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 64 | /* #define HAL_SRAM_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 65 | /* #define HAL_SDRAM_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 66 | /* #define HAL_HASH_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 67 | /* #define HAL_I2S_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 68 | /* #define HAL_IWDG_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 69 | /* #define HAL_LPTIM_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 70 | /* #define HAL_LTDC_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 71 | /* #define HAL_QSPI_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 72 | /* #define HAL_RNG_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 73 | /* #define HAL_RTC_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 74 | /* #define HAL_SAI_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 75 | /* #define HAL_SD_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 76 | /* #define HAL_SPDIFRX_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 77 | /* #define HAL_SPI_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 78 | #define HAL_TIM_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 79 | /* #define HAL_UART_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 80 | /* #define HAL_USART_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 81 | /* #define HAL_IRDA_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 82 | /* #define HAL_SMARTCARD_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 83 | /* #define HAL_WWDG_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 84 | /* #define HAL_PCD_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 85 | /* #define HAL_HCD_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 86 | /* #define HAL_DFSDM_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 87 | /* #define HAL_DSI_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 88 | /* #define HAL_JPEG_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 89 | /* #define HAL_MDIOS_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 90 | #define HAL_GPIO_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 91 | #define HAL_DMA_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 92 | #define HAL_RCC_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 93 | #define HAL_FLASH_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 94 | #define HAL_PWR_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 95 | #define HAL_I2C_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 96 | #define HAL_CORTEX_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 97 | |
randalthor | 0:4d2d2219c8e4 | 98 | /* ########################## HSE/HSI Values adaptation ##################### */ |
randalthor | 0:4d2d2219c8e4 | 99 | /** |
randalthor | 0:4d2d2219c8e4 | 100 | * @brief Adjust the value of External High Speed oscillator (HSE) used in your application. |
randalthor | 0:4d2d2219c8e4 | 101 | * This value is used by the RCC HAL module to compute the system frequency |
randalthor | 0:4d2d2219c8e4 | 102 | * (when HSE is used as system clock source, directly or through the PLL). |
randalthor | 0:4d2d2219c8e4 | 103 | */ |
randalthor | 0:4d2d2219c8e4 | 104 | #if !defined (HSE_VALUE) |
randalthor | 0:4d2d2219c8e4 | 105 | #define HSE_VALUE ((uint32_t)16000000U) /*!< Value of the External oscillator in Hz */ |
randalthor | 0:4d2d2219c8e4 | 106 | #endif /* HSE_VALUE */ |
randalthor | 0:4d2d2219c8e4 | 107 | |
randalthor | 0:4d2d2219c8e4 | 108 | #if !defined (HSE_STARTUP_TIMEOUT) |
randalthor | 0:4d2d2219c8e4 | 109 | #define HSE_STARTUP_TIMEOUT ((uint32_t)100U) /*!< Time out for HSE start up, in ms */ |
randalthor | 0:4d2d2219c8e4 | 110 | #endif /* HSE_STARTUP_TIMEOUT */ |
randalthor | 0:4d2d2219c8e4 | 111 | |
randalthor | 0:4d2d2219c8e4 | 112 | /** |
randalthor | 0:4d2d2219c8e4 | 113 | * @brief Internal High Speed oscillator (HSI) value. |
randalthor | 0:4d2d2219c8e4 | 114 | * This value is used by the RCC HAL module to compute the system frequency |
randalthor | 0:4d2d2219c8e4 | 115 | * (when HSI is used as system clock source, directly or through the PLL). |
randalthor | 0:4d2d2219c8e4 | 116 | */ |
randalthor | 0:4d2d2219c8e4 | 117 | #if !defined (HSI_VALUE) |
randalthor | 0:4d2d2219c8e4 | 118 | #define HSI_VALUE ((uint32_t)16000000U) /*!< Value of the Internal oscillator in Hz*/ |
randalthor | 0:4d2d2219c8e4 | 119 | #endif /* HSI_VALUE */ |
randalthor | 0:4d2d2219c8e4 | 120 | |
randalthor | 0:4d2d2219c8e4 | 121 | /** |
randalthor | 0:4d2d2219c8e4 | 122 | * @brief Internal Low Speed oscillator (LSI) value. |
randalthor | 0:4d2d2219c8e4 | 123 | */ |
randalthor | 0:4d2d2219c8e4 | 124 | #if !defined (LSI_VALUE) |
randalthor | 0:4d2d2219c8e4 | 125 | #define LSI_VALUE ((uint32_t)32000U) /*!< LSI Typical Value in Hz*/ |
randalthor | 0:4d2d2219c8e4 | 126 | #endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz |
randalthor | 0:4d2d2219c8e4 | 127 | The real value may vary depending on the variations |
randalthor | 0:4d2d2219c8e4 | 128 | in voltage and temperature. */ |
randalthor | 0:4d2d2219c8e4 | 129 | /** |
randalthor | 0:4d2d2219c8e4 | 130 | * @brief External Low Speed oscillator (LSE) value. |
randalthor | 0:4d2d2219c8e4 | 131 | */ |
randalthor | 0:4d2d2219c8e4 | 132 | #if !defined (LSE_VALUE) |
randalthor | 0:4d2d2219c8e4 | 133 | #define LSE_VALUE ((uint32_t)32768U) /*!< Value of the External Low Speed oscillator in Hz */ |
randalthor | 0:4d2d2219c8e4 | 134 | #endif /* LSE_VALUE */ |
randalthor | 0:4d2d2219c8e4 | 135 | |
randalthor | 0:4d2d2219c8e4 | 136 | #if !defined (LSE_STARTUP_TIMEOUT) |
randalthor | 0:4d2d2219c8e4 | 137 | #define LSE_STARTUP_TIMEOUT ((uint32_t)5000U) /*!< Time out for LSE start up, in ms */ |
randalthor | 0:4d2d2219c8e4 | 138 | #endif /* LSE_STARTUP_TIMEOUT */ |
randalthor | 0:4d2d2219c8e4 | 139 | |
randalthor | 0:4d2d2219c8e4 | 140 | /** |
randalthor | 0:4d2d2219c8e4 | 141 | * @brief External clock source for I2S peripheral |
randalthor | 0:4d2d2219c8e4 | 142 | * This value is used by the I2S HAL module to compute the I2S clock source |
randalthor | 0:4d2d2219c8e4 | 143 | * frequency, this source is inserted directly through I2S_CKIN pad. |
randalthor | 0:4d2d2219c8e4 | 144 | */ |
randalthor | 0:4d2d2219c8e4 | 145 | #if !defined (EXTERNAL_CLOCK_VALUE) |
randalthor | 0:4d2d2219c8e4 | 146 | #define EXTERNAL_CLOCK_VALUE ((uint32_t)12288000U) /*!< Value of the Internal oscillator in Hz*/ |
randalthor | 0:4d2d2219c8e4 | 147 | #endif /* EXTERNAL_CLOCK_VALUE */ |
randalthor | 0:4d2d2219c8e4 | 148 | |
randalthor | 0:4d2d2219c8e4 | 149 | /* Tip: To avoid modifying this file each time you need to use different HSE, |
randalthor | 0:4d2d2219c8e4 | 150 | === you can define the HSE value in your toolchain compiler preprocessor. */ |
randalthor | 0:4d2d2219c8e4 | 151 | |
randalthor | 0:4d2d2219c8e4 | 152 | /* ########################### System Configuration ######################### */ |
randalthor | 0:4d2d2219c8e4 | 153 | /** |
randalthor | 0:4d2d2219c8e4 | 154 | * @brief This is the HAL system configuration section |
randalthor | 0:4d2d2219c8e4 | 155 | */ |
randalthor | 0:4d2d2219c8e4 | 156 | #define VDD_VALUE ((uint32_t)3300U) /*!< Value of VDD in mv */ |
randalthor | 0:4d2d2219c8e4 | 157 | #define TICK_INT_PRIORITY ((uint32_t)0U) /*!< tick interrupt priority */ |
randalthor | 0:4d2d2219c8e4 | 158 | #define USE_RTOS 0U |
randalthor | 0:4d2d2219c8e4 | 159 | #define PREFETCH_ENABLE 0U |
randalthor | 0:4d2d2219c8e4 | 160 | #define ART_ACCLERATOR_ENABLE 0U /* To enable instruction cache and prefetch */ |
randalthor | 0:4d2d2219c8e4 | 161 | |
randalthor | 0:4d2d2219c8e4 | 162 | /* ########################## Assert Selection ############################## */ |
randalthor | 0:4d2d2219c8e4 | 163 | /** |
randalthor | 0:4d2d2219c8e4 | 164 | * @brief Uncomment the line below to expanse the "assert_param" macro in the |
randalthor | 0:4d2d2219c8e4 | 165 | * HAL drivers code |
randalthor | 0:4d2d2219c8e4 | 166 | */ |
randalthor | 0:4d2d2219c8e4 | 167 | /* #define USE_FULL_ASSERT 1 */ |
randalthor | 0:4d2d2219c8e4 | 168 | |
randalthor | 0:4d2d2219c8e4 | 169 | /* ################## Ethernet peripheral configuration ##################### */ |
randalthor | 0:4d2d2219c8e4 | 170 | |
randalthor | 0:4d2d2219c8e4 | 171 | /* Section 1 : Ethernet peripheral configuration */ |
randalthor | 0:4d2d2219c8e4 | 172 | |
randalthor | 0:4d2d2219c8e4 | 173 | /* MAC ADDRESS: MAC_ADDR0:MAC_ADDR1:MAC_ADDR2:MAC_ADDR3:MAC_ADDR4:MAC_ADDR5 */ |
randalthor | 0:4d2d2219c8e4 | 174 | #define MAC_ADDR0 2U |
randalthor | 0:4d2d2219c8e4 | 175 | #define MAC_ADDR1 0U |
randalthor | 0:4d2d2219c8e4 | 176 | #define MAC_ADDR2 0U |
randalthor | 0:4d2d2219c8e4 | 177 | #define MAC_ADDR3 0U |
randalthor | 0:4d2d2219c8e4 | 178 | #define MAC_ADDR4 0U |
randalthor | 0:4d2d2219c8e4 | 179 | #define MAC_ADDR5 0U |
randalthor | 0:4d2d2219c8e4 | 180 | |
randalthor | 0:4d2d2219c8e4 | 181 | /* Definition of the Ethernet driver buffers size and count */ |
randalthor | 0:4d2d2219c8e4 | 182 | #define ETH_RX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for receive */ |
randalthor | 0:4d2d2219c8e4 | 183 | #define ETH_TX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for transmit */ |
randalthor | 0:4d2d2219c8e4 | 184 | #define ETH_RXBUFNB ((uint32_t)4U) /* 4 Rx buffers of size ETH_RX_BUF_SIZE */ |
randalthor | 0:4d2d2219c8e4 | 185 | #define ETH_TXBUFNB ((uint32_t)4U) /* 4 Tx buffers of size ETH_TX_BUF_SIZE */ |
randalthor | 0:4d2d2219c8e4 | 186 | |
randalthor | 0:4d2d2219c8e4 | 187 | /* Section 2: PHY configuration section */ |
randalthor | 0:4d2d2219c8e4 | 188 | |
randalthor | 0:4d2d2219c8e4 | 189 | /* DP83848_PHY_ADDRESS Address*/ |
randalthor | 0:4d2d2219c8e4 | 190 | #define DP83848_PHY_ADDRESS 0x01U |
randalthor | 0:4d2d2219c8e4 | 191 | /* PHY Reset delay these values are based on a 1 ms Systick interrupt*/ |
randalthor | 0:4d2d2219c8e4 | 192 | #define PHY_RESET_DELAY ((uint32_t)0x000000FFU) |
randalthor | 0:4d2d2219c8e4 | 193 | /* PHY Configuration delay */ |
randalthor | 0:4d2d2219c8e4 | 194 | #define PHY_CONFIG_DELAY ((uint32_t)0x00000FFFU) |
randalthor | 0:4d2d2219c8e4 | 195 | |
randalthor | 0:4d2d2219c8e4 | 196 | #define PHY_READ_TO ((uint32_t)0x0000FFFFU) |
randalthor | 0:4d2d2219c8e4 | 197 | #define PHY_WRITE_TO ((uint32_t)0x0000FFFFU) |
randalthor | 0:4d2d2219c8e4 | 198 | |
randalthor | 0:4d2d2219c8e4 | 199 | /* Section 3: Common PHY Registers */ |
randalthor | 0:4d2d2219c8e4 | 200 | |
randalthor | 0:4d2d2219c8e4 | 201 | #define PHY_BCR ((uint16_t)0x0000U) /*!< Transceiver Basic Control Register */ |
randalthor | 0:4d2d2219c8e4 | 202 | #define PHY_BSR ((uint16_t)0x0001U) /*!< Transceiver Basic Status Register */ |
randalthor | 0:4d2d2219c8e4 | 203 | |
randalthor | 0:4d2d2219c8e4 | 204 | #define PHY_RESET ((uint16_t)0x8000U) /*!< PHY Reset */ |
randalthor | 0:4d2d2219c8e4 | 205 | #define PHY_LOOPBACK ((uint16_t)0x4000U) /*!< Select loop-back mode */ |
randalthor | 0:4d2d2219c8e4 | 206 | #define PHY_FULLDUPLEX_100M ((uint16_t)0x2100U) /*!< Set the full-duplex mode at 100 Mb/s */ |
randalthor | 0:4d2d2219c8e4 | 207 | #define PHY_HALFDUPLEX_100M ((uint16_t)0x2000U) /*!< Set the half-duplex mode at 100 Mb/s */ |
randalthor | 0:4d2d2219c8e4 | 208 | #define PHY_FULLDUPLEX_10M ((uint16_t)0x0100U) /*!< Set the full-duplex mode at 10 Mb/s */ |
randalthor | 0:4d2d2219c8e4 | 209 | #define PHY_HALFDUPLEX_10M ((uint16_t)0x0000U) /*!< Set the half-duplex mode at 10 Mb/s */ |
randalthor | 0:4d2d2219c8e4 | 210 | #define PHY_AUTONEGOTIATION ((uint16_t)0x1000U) /*!< Enable auto-negotiation function */ |
randalthor | 0:4d2d2219c8e4 | 211 | #define PHY_RESTART_AUTONEGOTIATION ((uint16_t)0x0200U) /*!< Restart auto-negotiation function */ |
randalthor | 0:4d2d2219c8e4 | 212 | #define PHY_POWERDOWN ((uint16_t)0x0800U) /*!< Select the power down mode */ |
randalthor | 0:4d2d2219c8e4 | 213 | #define PHY_ISOLATE ((uint16_t)0x0400U) /*!< Isolate PHY from MII */ |
randalthor | 0:4d2d2219c8e4 | 214 | |
randalthor | 0:4d2d2219c8e4 | 215 | #define PHY_AUTONEGO_COMPLETE ((uint16_t)0x0020U) /*!< Auto-Negotiation process completed */ |
randalthor | 0:4d2d2219c8e4 | 216 | #define PHY_LINKED_STATUS ((uint16_t)0x0004U) /*!< Valid link established */ |
randalthor | 0:4d2d2219c8e4 | 217 | #define PHY_JABBER_DETECTION ((uint16_t)0x0002U) /*!< Jabber condition detected */ |
randalthor | 0:4d2d2219c8e4 | 218 | |
randalthor | 0:4d2d2219c8e4 | 219 | /* Section 4: Extended PHY Registers */ |
randalthor | 0:4d2d2219c8e4 | 220 | #define PHY_SR ((uint16_t)0x10U) /*!< PHY status register Offset */ |
randalthor | 0:4d2d2219c8e4 | 221 | |
randalthor | 0:4d2d2219c8e4 | 222 | #define PHY_SPEED_STATUS ((uint16_t)0x0002U) /*!< PHY Speed mask */ |
randalthor | 0:4d2d2219c8e4 | 223 | #define PHY_DUPLEX_STATUS ((uint16_t)0x0004U) /*!< PHY Duplex mask */ |
randalthor | 0:4d2d2219c8e4 | 224 | |
randalthor | 0:4d2d2219c8e4 | 225 | /* ################## SPI peripheral configuration ########################## */ |
randalthor | 0:4d2d2219c8e4 | 226 | |
randalthor | 0:4d2d2219c8e4 | 227 | /* CRC FEATURE: Use to activate CRC feature inside HAL SPI Driver |
randalthor | 0:4d2d2219c8e4 | 228 | * Activated: CRC code is present inside driver |
randalthor | 0:4d2d2219c8e4 | 229 | * Deactivated: CRC code cleaned from driver |
randalthor | 0:4d2d2219c8e4 | 230 | */ |
randalthor | 0:4d2d2219c8e4 | 231 | |
randalthor | 0:4d2d2219c8e4 | 232 | #define USE_SPI_CRC 0U |
randalthor | 0:4d2d2219c8e4 | 233 | |
randalthor | 0:4d2d2219c8e4 | 234 | /* Includes ------------------------------------------------------------------*/ |
randalthor | 0:4d2d2219c8e4 | 235 | /** |
randalthor | 0:4d2d2219c8e4 | 236 | * @brief Include module's header file |
randalthor | 0:4d2d2219c8e4 | 237 | */ |
randalthor | 0:4d2d2219c8e4 | 238 | |
randalthor | 0:4d2d2219c8e4 | 239 | #ifdef HAL_RCC_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 240 | #include "stm32f7xx_hal_rcc.h" |
randalthor | 0:4d2d2219c8e4 | 241 | #endif /* HAL_RCC_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 242 | |
randalthor | 0:4d2d2219c8e4 | 243 | #ifdef HAL_GPIO_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 244 | #include "stm32f7xx_hal_gpio.h" |
randalthor | 0:4d2d2219c8e4 | 245 | #endif /* HAL_GPIO_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 246 | |
randalthor | 0:4d2d2219c8e4 | 247 | #ifdef HAL_DMA_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 248 | #include "stm32f7xx_hal_dma.h" |
randalthor | 0:4d2d2219c8e4 | 249 | #endif /* HAL_DMA_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 250 | |
randalthor | 0:4d2d2219c8e4 | 251 | #ifdef HAL_CORTEX_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 252 | #include "stm32f7xx_hal_cortex.h" |
randalthor | 0:4d2d2219c8e4 | 253 | #endif /* HAL_CORTEX_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 254 | |
randalthor | 0:4d2d2219c8e4 | 255 | #ifdef HAL_ADC_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 256 | #include "stm32f7xx_hal_adc.h" |
randalthor | 0:4d2d2219c8e4 | 257 | #endif /* HAL_ADC_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 258 | |
randalthor | 0:4d2d2219c8e4 | 259 | #ifdef HAL_CAN_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 260 | #include "stm32f7xx_hal_can.h" |
randalthor | 0:4d2d2219c8e4 | 261 | #endif /* HAL_CAN_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 262 | |
randalthor | 0:4d2d2219c8e4 | 263 | #ifdef HAL_CEC_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 264 | #include "stm32f7xx_hal_cec.h" |
randalthor | 0:4d2d2219c8e4 | 265 | #endif /* HAL_CEC_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 266 | |
randalthor | 0:4d2d2219c8e4 | 267 | #ifdef HAL_CRC_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 268 | #include "stm32f7xx_hal_crc.h" |
randalthor | 0:4d2d2219c8e4 | 269 | #endif /* HAL_CRC_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 270 | |
randalthor | 0:4d2d2219c8e4 | 271 | #ifdef HAL_CRYP_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 272 | #include "stm32f7xx_hal_cryp.h" |
randalthor | 0:4d2d2219c8e4 | 273 | #endif /* HAL_CRYP_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 274 | |
randalthor | 0:4d2d2219c8e4 | 275 | #ifdef HAL_DMA2D_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 276 | #include "stm32f7xx_hal_dma2d.h" |
randalthor | 0:4d2d2219c8e4 | 277 | #endif /* HAL_DMA2D_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 278 | |
randalthor | 0:4d2d2219c8e4 | 279 | #ifdef HAL_DAC_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 280 | #include "stm32f7xx_hal_dac.h" |
randalthor | 0:4d2d2219c8e4 | 281 | #endif /* HAL_DAC_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 282 | |
randalthor | 0:4d2d2219c8e4 | 283 | #ifdef HAL_DCMI_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 284 | #include "stm32f7xx_hal_dcmi.h" |
randalthor | 0:4d2d2219c8e4 | 285 | #endif /* HAL_DCMI_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 286 | |
randalthor | 0:4d2d2219c8e4 | 287 | #ifdef HAL_ETH_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 288 | #include "stm32f7xx_hal_eth.h" |
randalthor | 0:4d2d2219c8e4 | 289 | #endif /* HAL_ETH_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 290 | |
randalthor | 0:4d2d2219c8e4 | 291 | #ifdef HAL_FLASH_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 292 | #include "stm32f7xx_hal_flash.h" |
randalthor | 0:4d2d2219c8e4 | 293 | #endif /* HAL_FLASH_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 294 | |
randalthor | 0:4d2d2219c8e4 | 295 | #ifdef HAL_SRAM_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 296 | #include "stm32f7xx_hal_sram.h" |
randalthor | 0:4d2d2219c8e4 | 297 | #endif /* HAL_SRAM_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 298 | |
randalthor | 0:4d2d2219c8e4 | 299 | #ifdef HAL_NOR_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 300 | #include "stm32f7xx_hal_nor.h" |
randalthor | 0:4d2d2219c8e4 | 301 | #endif /* HAL_NOR_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 302 | |
randalthor | 0:4d2d2219c8e4 | 303 | #ifdef HAL_NAND_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 304 | #include "stm32f7xx_hal_nand.h" |
randalthor | 0:4d2d2219c8e4 | 305 | #endif /* HAL_NAND_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 306 | |
randalthor | 0:4d2d2219c8e4 | 307 | #ifdef HAL_SDRAM_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 308 | #include "stm32f7xx_hal_sdram.h" |
randalthor | 0:4d2d2219c8e4 | 309 | #endif /* HAL_SDRAM_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 310 | |
randalthor | 0:4d2d2219c8e4 | 311 | #ifdef HAL_HASH_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 312 | #include "stm32f7xx_hal_hash.h" |
randalthor | 0:4d2d2219c8e4 | 313 | #endif /* HAL_HASH_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 314 | |
randalthor | 0:4d2d2219c8e4 | 315 | #ifdef HAL_I2C_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 316 | #include "stm32f7xx_hal_i2c.h" |
randalthor | 0:4d2d2219c8e4 | 317 | #endif /* HAL_I2C_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 318 | |
randalthor | 0:4d2d2219c8e4 | 319 | #ifdef HAL_I2S_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 320 | #include "stm32f7xx_hal_i2s.h" |
randalthor | 0:4d2d2219c8e4 | 321 | #endif /* HAL_I2S_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 322 | |
randalthor | 0:4d2d2219c8e4 | 323 | #ifdef HAL_IWDG_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 324 | #include "stm32f7xx_hal_iwdg.h" |
randalthor | 0:4d2d2219c8e4 | 325 | #endif /* HAL_IWDG_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 326 | |
randalthor | 0:4d2d2219c8e4 | 327 | #ifdef HAL_LPTIM_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 328 | #include "stm32f7xx_hal_lptim.h" |
randalthor | 0:4d2d2219c8e4 | 329 | #endif /* HAL_LPTIM_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 330 | |
randalthor | 0:4d2d2219c8e4 | 331 | #ifdef HAL_LTDC_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 332 | #include "stm32f7xx_hal_ltdc.h" |
randalthor | 0:4d2d2219c8e4 | 333 | #endif /* HAL_LTDC_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 334 | |
randalthor | 0:4d2d2219c8e4 | 335 | #ifdef HAL_PWR_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 336 | #include "stm32f7xx_hal_pwr.h" |
randalthor | 0:4d2d2219c8e4 | 337 | #endif /* HAL_PWR_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 338 | |
randalthor | 0:4d2d2219c8e4 | 339 | #ifdef HAL_QSPI_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 340 | #include "stm32f7xx_hal_qspi.h" |
randalthor | 0:4d2d2219c8e4 | 341 | #endif /* HAL_QSPI_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 342 | |
randalthor | 0:4d2d2219c8e4 | 343 | #ifdef HAL_RNG_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 344 | #include "stm32f7xx_hal_rng.h" |
randalthor | 0:4d2d2219c8e4 | 345 | #endif /* HAL_RNG_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 346 | |
randalthor | 0:4d2d2219c8e4 | 347 | #ifdef HAL_RTC_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 348 | #include "stm32f7xx_hal_rtc.h" |
randalthor | 0:4d2d2219c8e4 | 349 | #endif /* HAL_RTC_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 350 | |
randalthor | 0:4d2d2219c8e4 | 351 | #ifdef HAL_SAI_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 352 | #include "stm32f7xx_hal_sai.h" |
randalthor | 0:4d2d2219c8e4 | 353 | #endif /* HAL_SAI_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 354 | |
randalthor | 0:4d2d2219c8e4 | 355 | #ifdef HAL_SD_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 356 | #include "stm32f7xx_hal_sd.h" |
randalthor | 0:4d2d2219c8e4 | 357 | #endif /* HAL_SD_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 358 | |
randalthor | 0:4d2d2219c8e4 | 359 | #ifdef HAL_SPDIFRX_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 360 | #include "stm32f7xx_hal_spdifrx.h" |
randalthor | 0:4d2d2219c8e4 | 361 | #endif /* HAL_SPDIFRX_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 362 | |
randalthor | 0:4d2d2219c8e4 | 363 | #ifdef HAL_SPI_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 364 | #include "stm32f7xx_hal_spi.h" |
randalthor | 0:4d2d2219c8e4 | 365 | #endif /* HAL_SPI_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 366 | |
randalthor | 0:4d2d2219c8e4 | 367 | #ifdef HAL_TIM_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 368 | #include "stm32f7xx_hal_tim.h" |
randalthor | 0:4d2d2219c8e4 | 369 | #endif /* HAL_TIM_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 370 | |
randalthor | 0:4d2d2219c8e4 | 371 | #ifdef HAL_UART_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 372 | #include "stm32f7xx_hal_uart.h" |
randalthor | 0:4d2d2219c8e4 | 373 | #endif /* HAL_UART_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 374 | |
randalthor | 0:4d2d2219c8e4 | 375 | #ifdef HAL_USART_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 376 | #include "stm32f7xx_hal_usart.h" |
randalthor | 0:4d2d2219c8e4 | 377 | #endif /* HAL_USART_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 378 | |
randalthor | 0:4d2d2219c8e4 | 379 | #ifdef HAL_IRDA_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 380 | #include "stm32f7xx_hal_irda.h" |
randalthor | 0:4d2d2219c8e4 | 381 | #endif /* HAL_IRDA_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 382 | |
randalthor | 0:4d2d2219c8e4 | 383 | #ifdef HAL_SMARTCARD_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 384 | #include "stm32f7xx_hal_smartcard.h" |
randalthor | 0:4d2d2219c8e4 | 385 | #endif /* HAL_SMARTCARD_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 386 | |
randalthor | 0:4d2d2219c8e4 | 387 | #ifdef HAL_WWDG_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 388 | #include "stm32f7xx_hal_wwdg.h" |
randalthor | 0:4d2d2219c8e4 | 389 | #endif /* HAL_WWDG_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 390 | |
randalthor | 0:4d2d2219c8e4 | 391 | #ifdef HAL_PCD_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 392 | #include "stm32f7xx_hal_pcd.h" |
randalthor | 0:4d2d2219c8e4 | 393 | #endif /* HAL_PCD_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 394 | |
randalthor | 0:4d2d2219c8e4 | 395 | #ifdef HAL_HCD_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 396 | #include "stm32f7xx_hal_hcd.h" |
randalthor | 0:4d2d2219c8e4 | 397 | #endif /* HAL_HCD_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 398 | |
randalthor | 0:4d2d2219c8e4 | 399 | #ifdef HAL_DFSDM_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 400 | #include "stm32f7xx_hal_dfsdm.h" |
randalthor | 0:4d2d2219c8e4 | 401 | #endif /* HAL_DFSDM_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 402 | |
randalthor | 0:4d2d2219c8e4 | 403 | #ifdef HAL_DSI_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 404 | #include "stm32f7xx_hal_dsi.h" |
randalthor | 0:4d2d2219c8e4 | 405 | #endif /* HAL_DSI_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 406 | |
randalthor | 0:4d2d2219c8e4 | 407 | #ifdef HAL_JPEG_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 408 | #include "stm32f7xx_hal_jpeg.h" |
randalthor | 0:4d2d2219c8e4 | 409 | #endif /* HAL_JPEG_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 410 | |
randalthor | 0:4d2d2219c8e4 | 411 | #ifdef HAL_MDIOS_MODULE_ENABLED |
randalthor | 0:4d2d2219c8e4 | 412 | #include "stm32f7xx_hal_mdios.h" |
randalthor | 0:4d2d2219c8e4 | 413 | #endif /* HAL_MDIOS_MODULE_ENABLED */ |
randalthor | 0:4d2d2219c8e4 | 414 | /* Exported macro ------------------------------------------------------------*/ |
randalthor | 0:4d2d2219c8e4 | 415 | #ifdef USE_FULL_ASSERT |
randalthor | 0:4d2d2219c8e4 | 416 | /** |
randalthor | 0:4d2d2219c8e4 | 417 | * @brief The assert_param macro is used for function's parameters check. |
randalthor | 0:4d2d2219c8e4 | 418 | * @param expr: If expr is false, it calls assert_failed function |
randalthor | 0:4d2d2219c8e4 | 419 | * which reports the name of the source file and the source |
randalthor | 0:4d2d2219c8e4 | 420 | * line number of the call that failed. |
randalthor | 0:4d2d2219c8e4 | 421 | * If expr is true, it returns no value. |
randalthor | 0:4d2d2219c8e4 | 422 | * @retval None |
randalthor | 0:4d2d2219c8e4 | 423 | */ |
randalthor | 0:4d2d2219c8e4 | 424 | #define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__)) |
randalthor | 0:4d2d2219c8e4 | 425 | /* Exported functions ------------------------------------------------------- */ |
randalthor | 0:4d2d2219c8e4 | 426 | void assert_failed(uint8_t* file, uint32_t line); |
randalthor | 0:4d2d2219c8e4 | 427 | #else |
randalthor | 0:4d2d2219c8e4 | 428 | #define assert_param(expr) ((void)0U) |
randalthor | 0:4d2d2219c8e4 | 429 | #endif /* USE_FULL_ASSERT */ |
randalthor | 0:4d2d2219c8e4 | 430 | |
randalthor | 0:4d2d2219c8e4 | 431 | #ifdef __cplusplus |
randalthor | 0:4d2d2219c8e4 | 432 | } |
randalthor | 0:4d2d2219c8e4 | 433 | #endif |
randalthor | 0:4d2d2219c8e4 | 434 | |
randalthor | 0:4d2d2219c8e4 | 435 | #endif /* __STM32F7xx_HAL_CONF_H */ |
randalthor | 0:4d2d2219c8e4 | 436 | |
randalthor | 0:4d2d2219c8e4 | 437 | |
randalthor | 0:4d2d2219c8e4 | 438 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
randalthor | 0:4d2d2219c8e4 | 439 |