X-CUBE-SPN7 for X-NUCLEO-IHM07M1: C:/Users/giuseppe scuderi-sl/Desktop/MOTOR CONTROL/Peppe/trunk/Firmware/X-CUBE-SPN7-MC-6STEP/Projects/Multi/Examples/MotorControl/Inc/stm32f1xx_hal_conf.h Source File
From X-NUCLEO-IHM07M1 X-CUBE-SPN7
|
X-CUBE-SPN7 for X-NUCLEO-IHM07M1
|
Go to the documentation of this file.
36 #ifndef __STM32F1xx_HAL_CONF_H
37 #define __STM32F1xx_HAL_CONF_H
50 #define HAL_MODULE_ENABLED
51 #define HAL_ADC_MODULE_ENABLED
60 #define HAL_GPIO_MODULE_ENABLED
78 #define HAL_TIM_MODULE_ENABLED
79 #define HAL_UART_MODULE_ENABLED
83 #define HAL_CORTEX_MODULE_ENABLED
84 #define HAL_DMA_MODULE_ENABLED
85 #define HAL_FLASH_MODULE_ENABLED
86 #define HAL_GPIO_MODULE_ENABLED
87 #define HAL_PWR_MODULE_ENABLED
88 #define HAL_RCC_MODULE_ENABLED
96 #if !defined (HSE_VALUE)
97 #define HSE_VALUE ((uint32_t)8000000)
100 #if !defined (HSE_STARTUP_TIMEOUT)
101 #define HSE_STARTUP_TIMEOUT ((uint32_t)5000)
109 #if !defined (HSI_VALUE)
110 #define HSI_VALUE ((uint32_t)8000000)
117 #if !defined (LSE_VALUE)
118 #define LSE_VALUE ((uint32_t)32768)
121 #if !defined (LSE_STARTUP_TIMEOUT)
122 #define LSE_STARTUP_TIMEOUT ((uint32_t)5000)
132 #define VDD_VALUE ((uint32_t)3300))
133 #define TICK_INT_PRIORITY ((uint32_t)2)
135 #define PREFETCH_ENABLE 1
157 #define ETH_RX_BUF_SIZE ETH_MAX_PACKET_SIZE
158 #define ETH_TX_BUF_SIZE ETH_MAX_PACKET_SIZE
159 #define ETH_RXBUFNB ((uint32_t)8)
160 #define ETH_TXBUFNB ((uint32_t)4)
165 #define DP83848_PHY_ADDRESS 0x01
167 #define PHY_RESET_DELAY ((uint32_t)0x000000FF)
169 #define PHY_CONFIG_DELAY ((uint32_t)0x00000FFF)
171 #define PHY_READ_TO ((uint32_t)0x0000FFFF)
172 #define PHY_WRITE_TO ((uint32_t)0x0000FFFF)
176 #define PHY_BCR ((uint16_t)0x00)
177 #define PHY_BSR ((uint16_t)0x01)
179 #define PHY_RESET ((uint16_t)0x8000)
180 #define PHY_LOOPBACK ((uint16_t)0x4000)
181 #define PHY_FULLDUPLEX_100M ((uint16_t)0x2100)
182 #define PHY_HALFDUPLEX_100M ((uint16_t)0x2000)
183 #define PHY_FULLDUPLEX_10M ((uint16_t)0x0100)
184 #define PHY_HALFDUPLEX_10M ((uint16_t)0x0000)
185 #define PHY_AUTONEGOTIATION ((uint16_t)0x1000)
186 #define PHY_RESTART_AUTONEGOTIATION ((uint16_t)0x0200)
187 #define PHY_POWERDOWN ((uint16_t)0x0800)
188 #define PHY_ISOLATE ((uint16_t)0x0400)
190 #define PHY_AUTONEGO_COMPLETE ((uint16_t)0x0020)
191 #define PHY_LINKED_STATUS ((uint16_t)0x0004)
192 #define PHY_JABBER_DETECTION ((uint16_t)0x0002)
196 #define PHY_SR ((uint16_t)0x10)
197 #define PHY_MICR ((uint16_t)0x11)
198 #define PHY_MISR ((uint16_t)0x12)
200 #define PHY_LINK_STATUS ((uint16_t)0x0001)
201 #define PHY_SPEED_STATUS ((uint16_t)0x0002)
202 #define PHY_DUPLEX_STATUS ((uint16_t)0x0004)
204 #define PHY_MICR_INT_EN ((uint16_t)0x0002)
205 #define PHY_MICR_INT_OE ((uint16_t)0x0001)
207 #define PHY_MISR_LINK_INT_EN ((uint16_t)0x0020)
208 #define PHY_LINK_INTERRUPT ((uint16_t)0x2000)
215 #ifdef HAL_RCC_MODULE_ENABLED
216 #include "stm32f1xx_hal_rcc.h"
219 #ifdef HAL_GPIO_MODULE_ENABLED
220 #include "stm32f1xx_hal_gpio.h"
223 #ifdef HAL_DMA_MODULE_ENABLED
224 #include "stm32f1xx_hal_dma.h"
227 #ifdef HAL_ETH_MODULE_ENABLED
228 #include "stm32f1xx_hal_eth.h"
231 #ifdef HAL_CAN_MODULE_ENABLED
232 #include "stm32f1xx_hal_can.h"
235 #ifdef HAL_CEC_MODULE_ENABLED
236 #include "stm32f1xx_hal_cec.h"
239 #ifdef HAL_CORTEX_MODULE_ENABLED
240 #include "stm32f1xx_hal_cortex.h"
243 #ifdef HAL_ADC_MODULE_ENABLED
244 #include "stm32f1xx_hal_adc.h"
247 #ifdef HAL_CRC_MODULE_ENABLED
248 #include "stm32f1xx_hal_crc.h"
251 #ifdef HAL_DAC_MODULE_ENABLED
252 #include "stm32f1xx_hal_dac.h"
255 #ifdef HAL_FLASH_MODULE_ENABLED
256 #include "stm32f1xx_hal_flash.h"
259 #ifdef HAL_SRAM_MODULE_ENABLED
260 #include "stm32f1xx_hal_sram.h"
263 #ifdef HAL_NOR_MODULE_ENABLED
264 #include "stm32f1xx_hal_nor.h"
267 #ifdef HAL_I2C_MODULE_ENABLED
268 #include "stm32f1xx_hal_i2c.h"
271 #ifdef HAL_I2S_MODULE_ENABLED
272 #include "stm32f1xx_hal_i2s.h"
275 #ifdef HAL_IWDG_MODULE_ENABLED
276 #include "stm32f1xx_hal_iwdg.h"
279 #ifdef HAL_PWR_MODULE_ENABLED
280 #include "stm32f1xx_hal_pwr.h"
283 #ifdef HAL_RTC_MODULE_ENABLED
284 #include "stm32f1xx_hal_rtc.h"
287 #ifdef HAL_PCCARD_MODULE_ENABLED
288 #include "stm32f1xx_hal_pccard.h"
291 #ifdef HAL_SD_MODULE_ENABLED
292 #include "stm32f1xx_hal_sd.h"
295 #ifdef HAL_NAND_MODULE_ENABLED
296 #include "stm32f1xx_hal_nand.h"
299 #ifdef HAL_SPI_MODULE_ENABLED
300 #include "stm32f1xx_hal_spi.h"
303 #ifdef HAL_TIM_MODULE_ENABLED
304 #include "stm32f1xx_hal_tim.h"
307 #ifdef HAL_UART_MODULE_ENABLED
308 #include "stm32f1xx_hal_uart.h"
311 #ifdef HAL_USART_MODULE_ENABLED
312 #include "stm32f1xx_hal_usart.h"
315 #ifdef HAL_IRDA_MODULE_ENABLED
316 #include "stm32f1xx_hal_irda.h"
319 #ifdef HAL_SMARTCARD_MODULE_ENABLED
320 #include "stm32f1xx_hal_smartcard.h"
323 #ifdef HAL_WWDG_MODULE_ENABLED
324 #include "stm32f1xx_hal_wwdg.h"
327 #ifdef HAL_PCD_MODULE_ENABLED
328 #include "stm32f1xx_hal_pcd.h"
331 #ifdef HAL_HCD_MODULE_ENABLED
332 #include "stm32f1xx_hal_hcd.h"
337 #ifdef USE_FULL_ASSERT
346 #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
348 void assert_failed(uint8_t* file, uint32_t line);
350 #define assert_param(expr) ((void)0)