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