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