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