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.
stm32h7xx_hal_conf.h@0:e7352f4f3dcb, 2020-06-18 (annotated)
- Committer:
- thomashaine
- Date:
- Thu Jun 18 12:36:05 2020 +0000
- Revision:
- 0:e7352f4f3dcb
- Child:
- 8:66caa906d24c
rev1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomashaine | 0:e7352f4f3dcb | 1 | /** |
thomashaine | 0:e7352f4f3dcb | 2 | ****************************************************************************** |
thomashaine | 0:e7352f4f3dcb | 3 | * @file stm32h7xx_hal_conf.h |
thomashaine | 0:e7352f4f3dcb | 4 | * @author MCD Application Team |
thomashaine | 0:e7352f4f3dcb | 5 | * @brief HAL configuration file. |
thomashaine | 0:e7352f4f3dcb | 6 | ****************************************************************************** |
thomashaine | 0:e7352f4f3dcb | 7 | * @attention |
thomashaine | 0:e7352f4f3dcb | 8 | * |
thomashaine | 0:e7352f4f3dcb | 9 | * <h2><center>© Copyright (c) 2017 STMicroelectronics. |
thomashaine | 0:e7352f4f3dcb | 10 | * All rights reserved.</center></h2> |
thomashaine | 0:e7352f4f3dcb | 11 | * |
thomashaine | 0:e7352f4f3dcb | 12 | * This software component is licensed by ST under BSD 3-Clause license, |
thomashaine | 0:e7352f4f3dcb | 13 | * the "License"; You may not use this file except in compliance with the |
thomashaine | 0:e7352f4f3dcb | 14 | * License. You may obtain a copy of the License at: |
thomashaine | 0:e7352f4f3dcb | 15 | * opensource.org/licenses/BSD-3-Clause |
thomashaine | 0:e7352f4f3dcb | 16 | * |
thomashaine | 0:e7352f4f3dcb | 17 | ****************************************************************************** |
thomashaine | 0:e7352f4f3dcb | 18 | */ |
thomashaine | 0:e7352f4f3dcb | 19 | |
thomashaine | 0:e7352f4f3dcb | 20 | /* Define to prevent recursive inclusion -------------------------------------*/ |
thomashaine | 0:e7352f4f3dcb | 21 | #ifndef __STM32H7xx_HAL_CONF_H |
thomashaine | 0:e7352f4f3dcb | 22 | #define __STM32H7xx_HAL_CONF_H |
thomashaine | 0:e7352f4f3dcb | 23 | |
thomashaine | 0:e7352f4f3dcb | 24 | #ifdef __cplusplus |
thomashaine | 0:e7352f4f3dcb | 25 | extern "C" { |
thomashaine | 0:e7352f4f3dcb | 26 | #endif |
thomashaine | 0:e7352f4f3dcb | 27 | |
thomashaine | 0:e7352f4f3dcb | 28 | /* Exported types ------------------------------------------------------------*/ |
thomashaine | 0:e7352f4f3dcb | 29 | /* Exported constants --------------------------------------------------------*/ |
thomashaine | 0:e7352f4f3dcb | 30 | |
thomashaine | 0:e7352f4f3dcb | 31 | /* ########################## Module Selection ############################## */ |
thomashaine | 0:e7352f4f3dcb | 32 | /** |
thomashaine | 0:e7352f4f3dcb | 33 | * @brief This is the list of modules to be used in the HAL driver |
thomashaine | 0:e7352f4f3dcb | 34 | */ |
thomashaine | 0:e7352f4f3dcb | 35 | #define HAL_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 36 | |
thomashaine | 0:e7352f4f3dcb | 37 | /* #define HAL_ADC_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 38 | /* #define HAL_FDCAN_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 39 | /* #define HAL_CEC_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 40 | /* #define HAL_COMP_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 41 | /* #define HAL_CRC_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 42 | /* #define HAL_CRYP_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 43 | /* #define HAL_DAC_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 44 | #define HAL_DCMI_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 45 | #define HAL_DMA2D_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 46 | /* #define HAL_ETH_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 47 | /* #define HAL_NAND_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 48 | /* #define HAL_NOR_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 49 | /* #define HAL_OTFDEC_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 50 | /* #define HAL_SRAM_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 51 | /* #define HAL_SDRAM_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 52 | /* #define HAL_HASH_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 53 | /* #define HAL_HRTIM_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 54 | /* #define HAL_HSEM_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 55 | /* #define HAL_GFXMMU_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 56 | /* #define HAL_JPEG_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 57 | /* #define HAL_OPAMP_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 58 | /* #define HAL_OSPI_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 59 | /* #define HAL_OSPI_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 60 | /* #define HAL_I2S_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 61 | /* #define HAL_SMBUS_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 62 | /* #define HAL_IWDG_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 63 | /* #define HAL_LPTIM_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 64 | /* #define HAL_LTDC_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 65 | /* #define HAL_QSPI_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 66 | /* #define HAL_RNG_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 67 | /* #define HAL_RTC_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 68 | /* #define HAL_SAI_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 69 | /* #define HAL_SD_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 70 | /* #define HAL_MMC_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 71 | /* #define HAL_SPDIFRX_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 72 | /* #define HAL_SPI_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 73 | /* #define HAL_SWPMI_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 74 | /* #define HAL_TIM_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 75 | /* #define HAL_UART_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 76 | /* #define HAL_USART_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 77 | /* #define HAL_IRDA_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 78 | /* #define HAL_SMARTCARD_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 79 | /* #define HAL_WWDG_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 80 | /* #define HAL_PCD_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 81 | /* #define HAL_HCD_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 82 | /* #define HAL_DFSDM_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 83 | /* #define HAL_DSI_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 84 | /* #define HAL_JPEG_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 85 | /* #define HAL_MDIOS_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 86 | /* #define HAL_PSSI_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 87 | /* #define HAL_DTS_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 88 | #define HAL_GPIO_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 89 | #define HAL_DMA_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 90 | #define HAL_MDMA_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 91 | #define HAL_RCC_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 92 | #define HAL_FLASH_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 93 | #define HAL_EXTI_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 94 | #define HAL_PWR_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 95 | #define HAL_I2C_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 96 | #define HAL_CORTEX_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 97 | #define HAL_HSEM_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 98 | |
thomashaine | 0:e7352f4f3dcb | 99 | /* ########################## Oscillator Values adaptation ####################*/ |
thomashaine | 0:e7352f4f3dcb | 100 | /** |
thomashaine | 0:e7352f4f3dcb | 101 | * @brief Adjust the value of External High Speed oscillator (HSE) used in your application. |
thomashaine | 0:e7352f4f3dcb | 102 | * This value is used by the RCC HAL module to compute the system frequency |
thomashaine | 0:e7352f4f3dcb | 103 | * (when HSE is used as system clock source, directly or through the PLL). |
thomashaine | 0:e7352f4f3dcb | 104 | */ |
thomashaine | 0:e7352f4f3dcb | 105 | #if !defined (HSE_VALUE) |
thomashaine | 0:e7352f4f3dcb | 106 | #define HSE_VALUE ((uint32_t)8000000) /*!< Value of the External oscillator in Hz : FPGA case fixed to 60MHZ */ |
thomashaine | 0:e7352f4f3dcb | 107 | #endif /* HSE_VALUE */ |
thomashaine | 0:e7352f4f3dcb | 108 | |
thomashaine | 0:e7352f4f3dcb | 109 | #if !defined (HSE_STARTUP_TIMEOUT) |
thomashaine | 0:e7352f4f3dcb | 110 | #define HSE_STARTUP_TIMEOUT ((uint32_t)100U) /*!< Time out for HSE start up, in ms */ |
thomashaine | 0:e7352f4f3dcb | 111 | #endif /* HSE_STARTUP_TIMEOUT */ |
thomashaine | 0:e7352f4f3dcb | 112 | |
thomashaine | 0:e7352f4f3dcb | 113 | /** |
thomashaine | 0:e7352f4f3dcb | 114 | * @brief Internal oscillator (CSI) default value. |
thomashaine | 0:e7352f4f3dcb | 115 | * This value is the default CSI value after Reset. |
thomashaine | 0:e7352f4f3dcb | 116 | */ |
thomashaine | 0:e7352f4f3dcb | 117 | #if !defined (CSI_VALUE) |
thomashaine | 0:e7352f4f3dcb | 118 | #define CSI_VALUE ((uint32_t)4000000) /*!< Value of the Internal oscillator in Hz*/ |
thomashaine | 0:e7352f4f3dcb | 119 | #endif /* CSI_VALUE */ |
thomashaine | 0:e7352f4f3dcb | 120 | |
thomashaine | 0:e7352f4f3dcb | 121 | /** |
thomashaine | 0:e7352f4f3dcb | 122 | * @brief Internal High Speed oscillator (HSI) value. |
thomashaine | 0:e7352f4f3dcb | 123 | * This value is used by the RCC HAL module to compute the system frequency |
thomashaine | 0:e7352f4f3dcb | 124 | * (when HSI is used as system clock source, directly or through the PLL). |
thomashaine | 0:e7352f4f3dcb | 125 | */ |
thomashaine | 0:e7352f4f3dcb | 126 | #if !defined (HSI_VALUE) |
thomashaine | 0:e7352f4f3dcb | 127 | #define HSI_VALUE ((uint32_t)64000000) /*!< Value of the Internal oscillator in Hz*/ |
thomashaine | 0:e7352f4f3dcb | 128 | #endif /* HSI_VALUE */ |
thomashaine | 0:e7352f4f3dcb | 129 | |
thomashaine | 0:e7352f4f3dcb | 130 | /** |
thomashaine | 0:e7352f4f3dcb | 131 | * @brief External Low Speed oscillator (LSE) value. |
thomashaine | 0:e7352f4f3dcb | 132 | * This value is used by the UART, RTC HAL module to compute the system frequency |
thomashaine | 0:e7352f4f3dcb | 133 | */ |
thomashaine | 0:e7352f4f3dcb | 134 | #if !defined (LSE_VALUE) |
thomashaine | 0:e7352f4f3dcb | 135 | #define LSE_VALUE ((uint32_t)32768U) /*!< Value of the External oscillator in Hz*/ |
thomashaine | 0:e7352f4f3dcb | 136 | #endif /* LSE_VALUE */ |
thomashaine | 0:e7352f4f3dcb | 137 | |
thomashaine | 0:e7352f4f3dcb | 138 | #if !defined (LSE_STARTUP_TIMEOUT) |
thomashaine | 0:e7352f4f3dcb | 139 | #define LSE_STARTUP_TIMEOUT ((uint32_t)5000U) /*!< Time out for LSE start up, in ms */ |
thomashaine | 0:e7352f4f3dcb | 140 | #endif /* LSE_STARTUP_TIMEOUT */ |
thomashaine | 0:e7352f4f3dcb | 141 | |
thomashaine | 0:e7352f4f3dcb | 142 | /** |
thomashaine | 0:e7352f4f3dcb | 143 | * @brief External clock source for I2S peripheral |
thomashaine | 0:e7352f4f3dcb | 144 | * This value is used by the I2S HAL module to compute the I2S clock source |
thomashaine | 0:e7352f4f3dcb | 145 | * frequency, this source is inserted directly through I2S_CKIN pad. |
thomashaine | 0:e7352f4f3dcb | 146 | */ |
thomashaine | 0:e7352f4f3dcb | 147 | #if !defined (EXTERNAL_CLOCK_VALUE) |
thomashaine | 0:e7352f4f3dcb | 148 | #define EXTERNAL_CLOCK_VALUE 12288000U /*!< Value of the External clock in Hz*/ |
thomashaine | 0:e7352f4f3dcb | 149 | #endif /* EXTERNAL_CLOCK_VALUE */ |
thomashaine | 0:e7352f4f3dcb | 150 | |
thomashaine | 0:e7352f4f3dcb | 151 | /* Tip: To avoid modifying this file each time you need to use different HSE, |
thomashaine | 0:e7352f4f3dcb | 152 | === you can define the HSE value in your toolchain compiler preprocessor. */ |
thomashaine | 0:e7352f4f3dcb | 153 | |
thomashaine | 0:e7352f4f3dcb | 154 | /* ########################### System Configuration ######################### */ |
thomashaine | 0:e7352f4f3dcb | 155 | /** |
thomashaine | 0:e7352f4f3dcb | 156 | * @brief This is the HAL system configuration section |
thomashaine | 0:e7352f4f3dcb | 157 | */ |
thomashaine | 0:e7352f4f3dcb | 158 | #define VDD_VALUE ((uint32_t)3300U) /*!< Value of VDD in mv */ |
thomashaine | 0:e7352f4f3dcb | 159 | #define TICK_INT_PRIORITY ((uint32_t)0U) /*!< tick interrupt priority */ |
thomashaine | 0:e7352f4f3dcb | 160 | #define USE_RTOS 0U |
thomashaine | 0:e7352f4f3dcb | 161 | #define USE_SD_TRANSCEIVER 0U /*!< use uSD Transceiver */ |
thomashaine | 0:e7352f4f3dcb | 162 | |
thomashaine | 0:e7352f4f3dcb | 163 | #define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 164 | #define USE_HAL_CEC_REGISTER_CALLBACKS 0U /* CEC register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 165 | #define USE_HAL_COMP_REGISTER_CALLBACKS 0U /* COMP register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 166 | #define USE_HAL_CRYP_REGISTER_CALLBACKS 0U /* CRYP register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 167 | #define USE_HAL_DAC_REGISTER_CALLBACKS 0U /* DAC register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 168 | #define USE_HAL_DCMI_REGISTER_CALLBACKS 0U /* DCMI register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 169 | #define USE_HAL_DFSDM_REGISTER_CALLBACKS 0U /* DFSDM register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 170 | #define USE_HAL_DMA2D_REGISTER_CALLBACKS 0U /* DMA2D register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 171 | #define USE_HAL_DSI_REGISTER_CALLBACKS 0U /* DSI register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 172 | #define USE_HAL_DTS_REGISTER_CALLBACKS 0U /* DTS register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 173 | #define USE_HAL_ETH_REGISTER_CALLBACKS 0U /* ETH register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 174 | #define USE_HAL_FDCAN_REGISTER_CALLBACKS 0U /* FDCAN register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 175 | #define USE_HAL_NAND_REGISTER_CALLBACKS 0U /* NAND register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 176 | #define USE_HAL_NOR_REGISTER_CALLBACKS 0U /* NOR register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 177 | #define USE_HAL_SDRAM_REGISTER_CALLBACKS 0U /* SDRAM register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 178 | #define USE_HAL_SRAM_REGISTER_CALLBACKS 0U /* SRAM register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 179 | #define USE_HAL_HASH_REGISTER_CALLBACKS 0U /* HASH register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 180 | #define USE_HAL_HCD_REGISTER_CALLBACKS 0U /* HCD register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 181 | #define USE_HAL_GFXMMU_REGISTER_CALLBACKS 0U /* GFXMMU register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 182 | #define USE_HAL_HRTIM_REGISTER_CALLBACKS 0U /* HRTIM register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 183 | #define USE_HAL_I2C_REGISTER_CALLBACKS 0U /* I2C register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 184 | #define USE_HAL_I2S_REGISTER_CALLBACKS 0U /* I2S register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 185 | #define USE_HAL_IRDA_REGISTER_CALLBACKS 0U /* IRDA register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 186 | #define USE_HAL_JPEG_REGISTER_CALLBACKS 0U /* JPEG register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 187 | #define USE_HAL_LPTIM_REGISTER_CALLBACKS 0U /* LPTIM register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 188 | #define USE_HAL_LTDC_REGISTER_CALLBACKS 0U /* LTDC register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 189 | #define USE_HAL_MDIOS_REGISTER_CALLBACKS 0U /* MDIO register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 190 | #define USE_HAL_MMC_REGISTER_CALLBACKS 0U /* MMC register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 191 | #define USE_HAL_OPAMP_REGISTER_CALLBACKS 0U /* MDIO register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 192 | #define USE_HAL_OSPI_REGISTER_CALLBACKS 0U /* OSPI register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 193 | #define USE_HAL_OTFDEC_REGISTER_CALLBACKS 0U /* OTFDEC register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 194 | #define USE_HAL_PCD_REGISTER_CALLBACKS 0U /* PCD register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 195 | #define USE_HAL_QSPI_REGISTER_CALLBACKS 0U /* QSPI register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 196 | #define USE_HAL_RNG_REGISTER_CALLBACKS 0U /* RNG register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 197 | #define USE_HAL_RTC_REGISTER_CALLBACKS 0U /* RTC register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 198 | #define USE_HAL_SAI_REGISTER_CALLBACKS 0U /* SAI register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 199 | #define USE_HAL_SD_REGISTER_CALLBACKS 0U /* SD register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 200 | #define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U /* SMARTCARD register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 201 | #define USE_HAL_SPDIFRX_REGISTER_CALLBACKS 0U /* SPDIFRX register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 202 | #define USE_HAL_SMBUS_REGISTER_CALLBACKS 0U /* SMBUS register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 203 | #define USE_HAL_SPI_REGISTER_CALLBACKS 0U /* SPI register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 204 | #define USE_HAL_SWPMI_REGISTER_CALLBACKS 0U /* SWPMI register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 205 | #define USE_HAL_TIM_REGISTER_CALLBACKS 0U /* TIM register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 206 | #define USE_HAL_UART_REGISTER_CALLBACKS 0U /* UART register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 207 | #define USE_HAL_USART_REGISTER_CALLBACKS 0U /* USART register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 208 | #define USE_HAL_WWDG_REGISTER_CALLBACKS 0U /* WWDG register callback disabled */ |
thomashaine | 0:e7352f4f3dcb | 209 | |
thomashaine | 0:e7352f4f3dcb | 210 | /* ########################### Ethernet Configuration ######################### */ |
thomashaine | 0:e7352f4f3dcb | 211 | #define ETH_TX_DESC_CNT 4 /* number of Ethernet Tx DMA descriptors */ |
thomashaine | 0:e7352f4f3dcb | 212 | #define ETH_RX_DESC_CNT 4 /* number of Ethernet Rx DMA descriptors */ |
thomashaine | 0:e7352f4f3dcb | 213 | |
thomashaine | 0:e7352f4f3dcb | 214 | #define ETH_MAC_ADDR0 ((uint8_t)0x02) |
thomashaine | 0:e7352f4f3dcb | 215 | #define ETH_MAC_ADDR1 ((uint8_t)0x00) |
thomashaine | 0:e7352f4f3dcb | 216 | #define ETH_MAC_ADDR2 ((uint8_t)0x00) |
thomashaine | 0:e7352f4f3dcb | 217 | #define ETH_MAC_ADDR3 ((uint8_t)0x00) |
thomashaine | 0:e7352f4f3dcb | 218 | #define ETH_MAC_ADDR4 ((uint8_t)0x00) |
thomashaine | 0:e7352f4f3dcb | 219 | #define ETH_MAC_ADDR5 ((uint8_t)0x00) |
thomashaine | 0:e7352f4f3dcb | 220 | |
thomashaine | 0:e7352f4f3dcb | 221 | /* ########################## Assert Selection ############################## */ |
thomashaine | 0:e7352f4f3dcb | 222 | /** |
thomashaine | 0:e7352f4f3dcb | 223 | * @brief Uncomment the line below to expanse the "assert_param" macro in the |
thomashaine | 0:e7352f4f3dcb | 224 | * HAL drivers code |
thomashaine | 0:e7352f4f3dcb | 225 | */ |
thomashaine | 0:e7352f4f3dcb | 226 | /* #define USE_FULL_ASSERT 1U */ |
thomashaine | 0:e7352f4f3dcb | 227 | |
thomashaine | 0:e7352f4f3dcb | 228 | /* Includes ------------------------------------------------------------------*/ |
thomashaine | 0:e7352f4f3dcb | 229 | /** |
thomashaine | 0:e7352f4f3dcb | 230 | * @brief Include module's header file |
thomashaine | 0:e7352f4f3dcb | 231 | */ |
thomashaine | 0:e7352f4f3dcb | 232 | |
thomashaine | 0:e7352f4f3dcb | 233 | #ifdef HAL_RCC_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 234 | #include "stm32h7xx_hal_rcc.h" |
thomashaine | 0:e7352f4f3dcb | 235 | #endif /* HAL_RCC_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 236 | |
thomashaine | 0:e7352f4f3dcb | 237 | #ifdef HAL_GPIO_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 238 | #include "stm32h7xx_hal_gpio.h" |
thomashaine | 0:e7352f4f3dcb | 239 | #endif /* HAL_GPIO_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 240 | |
thomashaine | 0:e7352f4f3dcb | 241 | #ifdef HAL_DMA_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 242 | #include "stm32h7xx_hal_dma.h" |
thomashaine | 0:e7352f4f3dcb | 243 | #endif /* HAL_DMA_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 244 | |
thomashaine | 0:e7352f4f3dcb | 245 | #ifdef HAL_MDMA_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 246 | #include "stm32h7xx_hal_mdma.h" |
thomashaine | 0:e7352f4f3dcb | 247 | #endif /* HAL_MDMA_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 248 | |
thomashaine | 0:e7352f4f3dcb | 249 | #ifdef HAL_HASH_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 250 | #include "stm32h7xx_hal_hash.h" |
thomashaine | 0:e7352f4f3dcb | 251 | #endif /* HAL_HASH_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 252 | |
thomashaine | 0:e7352f4f3dcb | 253 | #ifdef HAL_DCMI_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 254 | #include "stm32h7xx_hal_dcmi.h" |
thomashaine | 0:e7352f4f3dcb | 255 | #endif /* HAL_DCMI_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 256 | |
thomashaine | 0:e7352f4f3dcb | 257 | #ifdef HAL_DMA2D_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 258 | #include "stm32h7xx_hal_dma2d.h" |
thomashaine | 0:e7352f4f3dcb | 259 | #endif /* HAL_DMA2D_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 260 | |
thomashaine | 0:e7352f4f3dcb | 261 | #ifdef HAL_DSI_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 262 | #include "stm32h7xx_hal_dsi.h" |
thomashaine | 0:e7352f4f3dcb | 263 | #endif /* HAL_DSI_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 264 | |
thomashaine | 0:e7352f4f3dcb | 265 | #ifdef HAL_DFSDM_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 266 | #include "stm32h7xx_hal_dfsdm.h" |
thomashaine | 0:e7352f4f3dcb | 267 | #endif /* HAL_DFSDM_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 268 | |
thomashaine | 0:e7352f4f3dcb | 269 | #ifdef HAL_ETH_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 270 | #include "stm32h7xx_hal_eth.h" |
thomashaine | 0:e7352f4f3dcb | 271 | #endif /* HAL_ETH_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 272 | |
thomashaine | 0:e7352f4f3dcb | 273 | #ifdef HAL_EXTI_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 274 | #include "stm32h7xx_hal_exti.h" |
thomashaine | 0:e7352f4f3dcb | 275 | #endif /* HAL_EXTI_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 276 | |
thomashaine | 0:e7352f4f3dcb | 277 | #ifdef HAL_CORTEX_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 278 | #include "stm32h7xx_hal_cortex.h" |
thomashaine | 0:e7352f4f3dcb | 279 | #endif /* HAL_CORTEX_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 280 | |
thomashaine | 0:e7352f4f3dcb | 281 | #ifdef HAL_ADC_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 282 | #include "stm32h7xx_hal_adc.h" |
thomashaine | 0:e7352f4f3dcb | 283 | #endif /* HAL_ADC_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 284 | |
thomashaine | 0:e7352f4f3dcb | 285 | #ifdef HAL_FDCAN_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 286 | #include "stm32h7xx_hal_fdcan.h" |
thomashaine | 0:e7352f4f3dcb | 287 | #endif /* HAL_FDCAN_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 288 | |
thomashaine | 0:e7352f4f3dcb | 289 | #ifdef HAL_CEC_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 290 | #include "stm32h7xx_hal_cec.h" |
thomashaine | 0:e7352f4f3dcb | 291 | #endif /* HAL_CEC_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 292 | |
thomashaine | 0:e7352f4f3dcb | 293 | #ifdef HAL_COMP_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 294 | #include "stm32h7xx_hal_comp.h" |
thomashaine | 0:e7352f4f3dcb | 295 | #endif /* HAL_COMP_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 296 | |
thomashaine | 0:e7352f4f3dcb | 297 | #ifdef HAL_CRC_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 298 | #include "stm32h7xx_hal_crc.h" |
thomashaine | 0:e7352f4f3dcb | 299 | #endif /* HAL_CRC_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 300 | |
thomashaine | 0:e7352f4f3dcb | 301 | #ifdef HAL_CRYP_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 302 | #include "stm32h7xx_hal_cryp.h" |
thomashaine | 0:e7352f4f3dcb | 303 | #endif /* HAL_CRYP_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 304 | |
thomashaine | 0:e7352f4f3dcb | 305 | #ifdef HAL_DAC_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 306 | #include "stm32h7xx_hal_dac.h" |
thomashaine | 0:e7352f4f3dcb | 307 | #endif /* HAL_DAC_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 308 | |
thomashaine | 0:e7352f4f3dcb | 309 | #ifdef HAL_FLASH_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 310 | #include "stm32h7xx_hal_flash.h" |
thomashaine | 0:e7352f4f3dcb | 311 | #endif /* HAL_FLASH_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 312 | |
thomashaine | 0:e7352f4f3dcb | 313 | #ifdef HAL_GFXMMU_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 314 | #include "stm32h7xx_hal_gfxmmu.h" |
thomashaine | 0:e7352f4f3dcb | 315 | #endif /* HAL_GFXMMU_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 316 | |
thomashaine | 0:e7352f4f3dcb | 317 | #ifdef HAL_HRTIM_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 318 | #include "stm32h7xx_hal_hrtim.h" |
thomashaine | 0:e7352f4f3dcb | 319 | #endif /* HAL_HRTIM_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 320 | |
thomashaine | 0:e7352f4f3dcb | 321 | #ifdef HAL_HSEM_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 322 | #include "stm32h7xx_hal_hsem.h" |
thomashaine | 0:e7352f4f3dcb | 323 | #endif /* HAL_HSEM_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 324 | |
thomashaine | 0:e7352f4f3dcb | 325 | #ifdef HAL_SRAM_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 326 | #include "stm32h7xx_hal_sram.h" |
thomashaine | 0:e7352f4f3dcb | 327 | #endif /* HAL_SRAM_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 328 | |
thomashaine | 0:e7352f4f3dcb | 329 | #ifdef HAL_NOR_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 330 | #include "stm32h7xx_hal_nor.h" |
thomashaine | 0:e7352f4f3dcb | 331 | #endif /* HAL_NOR_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 332 | |
thomashaine | 0:e7352f4f3dcb | 333 | #ifdef HAL_NAND_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 334 | #include "stm32h7xx_hal_nand.h" |
thomashaine | 0:e7352f4f3dcb | 335 | #endif /* HAL_NAND_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 336 | |
thomashaine | 0:e7352f4f3dcb | 337 | #ifdef HAL_I2C_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 338 | #include "stm32h7xx_hal_i2c.h" |
thomashaine | 0:e7352f4f3dcb | 339 | #endif /* HAL_I2C_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 340 | |
thomashaine | 0:e7352f4f3dcb | 341 | #ifdef HAL_I2S_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 342 | #include "stm32h7xx_hal_i2s.h" |
thomashaine | 0:e7352f4f3dcb | 343 | #endif /* HAL_I2S_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 344 | |
thomashaine | 0:e7352f4f3dcb | 345 | #ifdef HAL_IWDG_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 346 | #include "stm32h7xx_hal_iwdg.h" |
thomashaine | 0:e7352f4f3dcb | 347 | #endif /* HAL_IWDG_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 348 | |
thomashaine | 0:e7352f4f3dcb | 349 | #ifdef HAL_JPEG_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 350 | #include "stm32h7xx_hal_jpeg.h" |
thomashaine | 0:e7352f4f3dcb | 351 | #endif /* HAL_JPEG_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 352 | |
thomashaine | 0:e7352f4f3dcb | 353 | #ifdef HAL_MDIOS_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 354 | #include "stm32h7xx_hal_mdios.h" |
thomashaine | 0:e7352f4f3dcb | 355 | #endif /* HAL_MDIOS_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 356 | |
thomashaine | 0:e7352f4f3dcb | 357 | #ifdef HAL_MMC_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 358 | #include "stm32h7xx_hal_mmc.h" |
thomashaine | 0:e7352f4f3dcb | 359 | #endif /* HAL_MMC_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 360 | |
thomashaine | 0:e7352f4f3dcb | 361 | #ifdef HAL_LPTIM_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 362 | #include "stm32h7xx_hal_lptim.h" |
thomashaine | 0:e7352f4f3dcb | 363 | #endif /* HAL_LPTIM_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 364 | |
thomashaine | 0:e7352f4f3dcb | 365 | #ifdef HAL_LTDC_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 366 | #include "stm32h7xx_hal_ltdc.h" |
thomashaine | 0:e7352f4f3dcb | 367 | #endif /* HAL_LTDC_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 368 | |
thomashaine | 0:e7352f4f3dcb | 369 | #ifdef HAL_OPAMP_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 370 | #include "stm32h7xx_hal_opamp.h" |
thomashaine | 0:e7352f4f3dcb | 371 | #endif /* HAL_OPAMP_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 372 | |
thomashaine | 0:e7352f4f3dcb | 373 | #ifdef HAL_OSPI_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 374 | #include "stm32h7xx_hal_ospi.h" |
thomashaine | 0:e7352f4f3dcb | 375 | #endif /* HAL_OSPI_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 376 | |
thomashaine | 0:e7352f4f3dcb | 377 | #ifdef HAL_OTFDEC_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 378 | #include "stm32h7xx_hal_otfdec.h" |
thomashaine | 0:e7352f4f3dcb | 379 | #endif /* HAL_OTFDEC_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 380 | |
thomashaine | 0:e7352f4f3dcb | 381 | #ifdef HAL_PWR_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 382 | #include "stm32h7xx_hal_pwr.h" |
thomashaine | 0:e7352f4f3dcb | 383 | #endif /* HAL_PWR_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 384 | |
thomashaine | 0:e7352f4f3dcb | 385 | #ifdef HAL_QSPI_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 386 | #include "stm32h7xx_hal_qspi.h" |
thomashaine | 0:e7352f4f3dcb | 387 | #endif /* HAL_QSPI_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 388 | |
thomashaine | 0:e7352f4f3dcb | 389 | #ifdef HAL_RAMECC_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 390 | #include "stm32h7xx_hal_ramecc.h" |
thomashaine | 0:e7352f4f3dcb | 391 | #endif /* HAL_HCD_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 392 | |
thomashaine | 0:e7352f4f3dcb | 393 | #ifdef HAL_RNG_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 394 | #include "stm32h7xx_hal_rng.h" |
thomashaine | 0:e7352f4f3dcb | 395 | #endif /* HAL_RNG_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 396 | |
thomashaine | 0:e7352f4f3dcb | 397 | #ifdef HAL_RTC_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 398 | #include "stm32h7xx_hal_rtc.h" |
thomashaine | 0:e7352f4f3dcb | 399 | #endif /* HAL_RTC_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 400 | |
thomashaine | 0:e7352f4f3dcb | 401 | #ifdef HAL_SAI_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 402 | #include "stm32h7xx_hal_sai.h" |
thomashaine | 0:e7352f4f3dcb | 403 | #endif /* HAL_SAI_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 404 | |
thomashaine | 0:e7352f4f3dcb | 405 | #ifdef HAL_SD_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 406 | #include "stm32h7xx_hal_sd.h" |
thomashaine | 0:e7352f4f3dcb | 407 | #endif /* HAL_SD_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 408 | |
thomashaine | 0:e7352f4f3dcb | 409 | #ifdef HAL_SDRAM_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 410 | #include "stm32h7xx_hal_sdram.h" |
thomashaine | 0:e7352f4f3dcb | 411 | #endif /* HAL_SDRAM_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 412 | |
thomashaine | 0:e7352f4f3dcb | 413 | #ifdef HAL_SPI_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 414 | #include "stm32h7xx_hal_spi.h" |
thomashaine | 0:e7352f4f3dcb | 415 | #endif /* HAL_SPI_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 416 | |
thomashaine | 0:e7352f4f3dcb | 417 | #ifdef HAL_SPDIFRX_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 418 | #include "stm32h7xx_hal_spdifrx.h" |
thomashaine | 0:e7352f4f3dcb | 419 | #endif /* HAL_SPDIFRX_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 420 | |
thomashaine | 0:e7352f4f3dcb | 421 | #ifdef HAL_SWPMI_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 422 | #include "stm32h7xx_hal_swpmi.h" |
thomashaine | 0:e7352f4f3dcb | 423 | #endif /* HAL_SWPMI_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 424 | |
thomashaine | 0:e7352f4f3dcb | 425 | #ifdef HAL_TIM_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 426 | #include "stm32h7xx_hal_tim.h" |
thomashaine | 0:e7352f4f3dcb | 427 | #endif /* HAL_TIM_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 428 | |
thomashaine | 0:e7352f4f3dcb | 429 | #ifdef HAL_UART_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 430 | #include "stm32h7xx_hal_uart.h" |
thomashaine | 0:e7352f4f3dcb | 431 | #endif /* HAL_UART_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 432 | |
thomashaine | 0:e7352f4f3dcb | 433 | #ifdef HAL_USART_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 434 | #include "stm32h7xx_hal_usart.h" |
thomashaine | 0:e7352f4f3dcb | 435 | #endif /* HAL_USART_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 436 | |
thomashaine | 0:e7352f4f3dcb | 437 | #ifdef HAL_IRDA_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 438 | #include "stm32h7xx_hal_irda.h" |
thomashaine | 0:e7352f4f3dcb | 439 | #endif /* HAL_IRDA_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 440 | |
thomashaine | 0:e7352f4f3dcb | 441 | #ifdef HAL_SMARTCARD_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 442 | #include "stm32h7xx_hal_smartcard.h" |
thomashaine | 0:e7352f4f3dcb | 443 | #endif /* HAL_SMARTCARD_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 444 | |
thomashaine | 0:e7352f4f3dcb | 445 | #ifdef HAL_SMBUS_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 446 | #include "stm32h7xx_hal_smbus.h" |
thomashaine | 0:e7352f4f3dcb | 447 | #endif /* HAL_SMBUS_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 448 | |
thomashaine | 0:e7352f4f3dcb | 449 | #ifdef HAL_WWDG_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 450 | #include "stm32h7xx_hal_wwdg.h" |
thomashaine | 0:e7352f4f3dcb | 451 | #endif /* HAL_WWDG_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 452 | |
thomashaine | 0:e7352f4f3dcb | 453 | #ifdef HAL_PCD_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 454 | #include "stm32h7xx_hal_pcd.h" |
thomashaine | 0:e7352f4f3dcb | 455 | #endif /* HAL_PCD_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 456 | |
thomashaine | 0:e7352f4f3dcb | 457 | #ifdef HAL_HCD_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 458 | #include "stm32h7xx_hal_hcd.h" |
thomashaine | 0:e7352f4f3dcb | 459 | #endif /* HAL_HCD_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 460 | |
thomashaine | 0:e7352f4f3dcb | 461 | #ifdef HAL_PSSI_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 462 | #include "stm32h7xx_hal_pssi.h" |
thomashaine | 0:e7352f4f3dcb | 463 | #endif /* HAL_PSSI_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 464 | |
thomashaine | 0:e7352f4f3dcb | 465 | #ifdef HAL_DTS_MODULE_ENABLED |
thomashaine | 0:e7352f4f3dcb | 466 | #include "stm32h7xx_hal_dts.h" |
thomashaine | 0:e7352f4f3dcb | 467 | #endif /* HAL_DTS_MODULE_ENABLED */ |
thomashaine | 0:e7352f4f3dcb | 468 | |
thomashaine | 0:e7352f4f3dcb | 469 | /* Exported macro ------------------------------------------------------------*/ |
thomashaine | 0:e7352f4f3dcb | 470 | #ifdef USE_FULL_ASSERT |
thomashaine | 0:e7352f4f3dcb | 471 | /** |
thomashaine | 0:e7352f4f3dcb | 472 | * @brief The assert_param macro is used for function's parameters check. |
thomashaine | 0:e7352f4f3dcb | 473 | * @param expr: If expr is false, it calls assert_failed function |
thomashaine | 0:e7352f4f3dcb | 474 | * which reports the name of the source file and the source |
thomashaine | 0:e7352f4f3dcb | 475 | * line number of the call that failed. |
thomashaine | 0:e7352f4f3dcb | 476 | * If expr is true, it returns no value. |
thomashaine | 0:e7352f4f3dcb | 477 | * @retval None |
thomashaine | 0:e7352f4f3dcb | 478 | */ |
thomashaine | 0:e7352f4f3dcb | 479 | #define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__)) |
thomashaine | 0:e7352f4f3dcb | 480 | /* Exported functions ------------------------------------------------------- */ |
thomashaine | 0:e7352f4f3dcb | 481 | void assert_failed(uint8_t* file, uint32_t line); |
thomashaine | 0:e7352f4f3dcb | 482 | #else |
thomashaine | 0:e7352f4f3dcb | 483 | #define assert_param(expr) ((void)0U) |
thomashaine | 0:e7352f4f3dcb | 484 | #endif /* USE_FULL_ASSERT */ |
thomashaine | 0:e7352f4f3dcb | 485 | |
thomashaine | 0:e7352f4f3dcb | 486 | #ifdef __cplusplus |
thomashaine | 0:e7352f4f3dcb | 487 | } |
thomashaine | 0:e7352f4f3dcb | 488 | #endif |
thomashaine | 0:e7352f4f3dcb | 489 | |
thomashaine | 0:e7352f4f3dcb | 490 | #endif /* __STM32H7xx_HAL_CONF_H */ |
thomashaine | 0:e7352f4f3dcb | 491 | |
thomashaine | 0:e7352f4f3dcb | 492 | |
thomashaine | 0:e7352f4f3dcb | 493 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
thomashaine | 0:e7352f4f3dcb | 494 |