Prusa MINI Firmware overview
|
Go to the documentation of this file.
36 #ifndef __STM32F4xx_HAL_CONF_H
37 #define __STM32F4xx_HAL_CONF_H
50 #define HAL_MODULE_ENABLED
52 #define HAL_ADC_MODULE_ENABLED
60 #define HAL_ETH_MODULE_ENABLED
67 #define HAL_I2C_MODULE_ENABLED
69 #define HAL_IWDG_MODULE_ENABLED
76 #define HAL_SPI_MODULE_ENABLED
77 #define HAL_TIM_MODULE_ENABLED
78 #define HAL_UART_MODULE_ENABLED
83 #define HAL_PCD_MODULE_ENABLED
84 #define HAL_HCD_MODULE_ENABLED
94 #define HAL_GPIO_MODULE_ENABLED
95 #define HAL_DMA_MODULE_ENABLED
96 #define HAL_RCC_MODULE_ENABLED
97 #define HAL_FLASH_MODULE_ENABLED
98 #define HAL_PWR_MODULE_ENABLED
99 #define HAL_CORTEX_MODULE_ENABLED
107 #if !defined(HSE_VALUE)
108 #define HSE_VALUE ((uint32_t)12000000U)
111 #if !defined(HSE_STARTUP_TIMEOUT)
112 #define HSE_STARTUP_TIMEOUT ((uint32_t)100U)
120 #if !defined(HSI_VALUE)
121 #define HSI_VALUE ((uint32_t)16000000U)
127 #if !defined(LSI_VALUE)
128 #define LSI_VALUE ((uint32_t)32000U)
135 #if !defined(LSE_VALUE)
136 #define LSE_VALUE ((uint32_t)32768U)
139 #if !defined(LSE_STARTUP_TIMEOUT)
140 #define LSE_STARTUP_TIMEOUT ((uint32_t)5000U)
148 #if !defined(EXTERNAL_CLOCK_VALUE)
149 #define EXTERNAL_CLOCK_VALUE ((uint32_t)12288000U)
159 #define VDD_VALUE ((uint32_t)3300U)
160 #define TICK_INT_PRIORITY ((uint32_t)0U)
162 #define PREFETCH_ENABLE 1U
163 #define INSTRUCTION_CACHE_ENABLE 1U
164 #define DATA_CACHE_ENABLE 1U
186 #define ETH_RX_BUF_SIZE ETH_MAX_PACKET_SIZE
187 #define ETH_TX_BUF_SIZE ETH_MAX_PACKET_SIZE
188 #define ETH_RXBUFNB ((uint32_t)4U)
189 #define ETH_TXBUFNB ((uint32_t)4U)
194 #define LAN8742A_PHY_ADDRESS 0U
196 #define PHY_RESET_DELAY ((uint32_t)0x000000FFU)
198 #define PHY_CONFIG_DELAY ((uint32_t)0x00000FFFU)
200 #define PHY_READ_TO ((uint32_t)0x0000FFFFU)
201 #define PHY_WRITE_TO ((uint32_t)0x0000FFFFU)
205 #define PHY_BCR ((uint16_t)0x00U)
206 #define PHY_BSR ((uint16_t)0x01U)
208 #define PHY_RESET ((uint16_t)0x8000U)
209 #define PHY_LOOPBACK ((uint16_t)0x4000U)
210 #define PHY_FULLDUPLEX_100M ((uint16_t)0x2100U)
211 #define PHY_HALFDUPLEX_100M ((uint16_t)0x2000U)
212 #define PHY_FULLDUPLEX_10M ((uint16_t)0x0100U)
213 #define PHY_HALFDUPLEX_10M ((uint16_t)0x0000U)
214 #define PHY_AUTONEGOTIATION ((uint16_t)0x1000U)
215 #define PHY_RESTART_AUTONEGOTIATION ((uint16_t)0x0200U)
216 #define PHY_POWERDOWN ((uint16_t)0x0800U)
217 #define PHY_ISOLATE ((uint16_t)0x0400U)
219 #define PHY_AUTONEGO_COMPLETE ((uint16_t)0x0020U)
220 #define PHY_LINKED_STATUS ((uint16_t)0x0004U)
221 #define PHY_JABBER_DETECTION ((uint16_t)0x0002U)
224 #define PHY_SR ((uint16_t)0x10U)
226 #define PHY_SPEED_STATUS ((uint16_t)0x0002U)
227 #define PHY_DUPLEX_STATUS ((uint16_t)0x0004U)
229 #define PHY_ISFR ((uint16_t)0x000BU)
230 #define PHY_ISFR_INT4 ((uint16_t)0x000BU)
239 #define USE_SPI_CRC 0U
246 #ifdef HAL_RCC_MODULE_ENABLED
250 #ifdef HAL_EXTI_MODULE_ENABLED
251 #include "stm32f4xx_hal_exti.h"
254 #ifdef HAL_GPIO_MODULE_ENABLED
258 #ifdef HAL_DMA_MODULE_ENABLED
262 #ifdef HAL_CORTEX_MODULE_ENABLED
266 #ifdef HAL_ADC_MODULE_ENABLED
270 #ifdef HAL_CAN_MODULE_ENABLED
271 #include "stm32f4xx_hal_can.h"
274 #ifdef HAL_CRC_MODULE_ENABLED
275 #include "stm32f4xx_hal_crc.h"
278 #ifdef HAL_CRYP_MODULE_ENABLED
279 #include "stm32f4xx_hal_cryp.h"
282 #ifdef HAL_DMA2D_MODULE_ENABLED
283 #include "stm32f4xx_hal_dma2d.h"
286 #ifdef HAL_DAC_MODULE_ENABLED
287 #include "stm32f4xx_hal_dac.h"
290 #ifdef HAL_DCMI_MODULE_ENABLED
291 #include "stm32f4xx_hal_dcmi.h"
294 #ifdef HAL_ETH_MODULE_ENABLED
298 #ifdef HAL_FLASH_MODULE_ENABLED
302 #ifdef HAL_SRAM_MODULE_ENABLED
303 #include "stm32f4xx_hal_sram.h"
306 #ifdef HAL_NOR_MODULE_ENABLED
307 #include "stm32f4xx_hal_nor.h"
310 #ifdef HAL_NAND_MODULE_ENABLED
311 #include "stm32f4xx_hal_nand.h"
314 #ifdef HAL_PCCARD_MODULE_ENABLED
315 #include "stm32f4xx_hal_pccard.h"
318 #ifdef HAL_SDRAM_MODULE_ENABLED
319 #include "stm32f4xx_hal_sdram.h"
322 #ifdef HAL_HASH_MODULE_ENABLED
323 #include "stm32f4xx_hal_hash.h"
326 #ifdef HAL_I2C_MODULE_ENABLED
330 #ifdef HAL_I2S_MODULE_ENABLED
331 #include "stm32f4xx_hal_i2s.h"
334 #ifdef HAL_IWDG_MODULE_ENABLED
338 #ifdef HAL_LTDC_MODULE_ENABLED
339 #include "stm32f4xx_hal_ltdc.h"
342 #ifdef HAL_PWR_MODULE_ENABLED
346 #ifdef HAL_RNG_MODULE_ENABLED
347 #include "stm32f4xx_hal_rng.h"
350 #ifdef HAL_RTC_MODULE_ENABLED
351 #include "stm32f4xx_hal_rtc.h"
354 #ifdef HAL_SAI_MODULE_ENABLED
355 #include "stm32f4xx_hal_sai.h"
358 #ifdef HAL_SD_MODULE_ENABLED
359 #include "stm32f4xx_hal_sd.h"
362 #ifdef HAL_MMC_MODULE_ENABLED
363 #include "stm32f4xx_hal_mmc.h"
366 #ifdef HAL_SPI_MODULE_ENABLED
370 #ifdef HAL_TIM_MODULE_ENABLED
374 #ifdef HAL_UART_MODULE_ENABLED
378 #ifdef HAL_USART_MODULE_ENABLED
379 #include "stm32f4xx_hal_usart.h"
382 #ifdef HAL_IRDA_MODULE_ENABLED
383 #include "stm32f4xx_hal_irda.h"
386 #ifdef HAL_SMARTCARD_MODULE_ENABLED
387 #include "stm32f4xx_hal_smartcard.h"
390 #ifdef HAL_WWDG_MODULE_ENABLED
391 #include "stm32f4xx_hal_wwdg.h"
394 #ifdef HAL_PCD_MODULE_ENABLED
398 #ifdef HAL_HCD_MODULE_ENABLED
402 #ifdef HAL_DSI_MODULE_ENABLED
403 #include "stm32f4xx_hal_dsi.h"
406 #ifdef HAL_QSPI_MODULE_ENABLED
407 #include "stm32f4xx_hal_qspi.h"
410 #ifdef HAL_CEC_MODULE_ENABLED
411 #include "stm32f4xx_hal_cec.h"
414 #ifdef HAL_FMPI2C_MODULE_ENABLED
415 #include "stm32f4xx_hal_fmpi2c.h"
418 #ifdef HAL_SPDIFRX_MODULE_ENABLED
419 #include "stm32f4xx_hal_spdifrx.h"
422 #ifdef HAL_DFSDM_MODULE_ENABLED
423 #include "stm32f4xx_hal_dfsdm.h"
426 #ifdef HAL_LPTIM_MODULE_ENABLED
427 #include "stm32f4xx_hal_lptim.h"
431 #ifdef USE_FULL_ASSERT
440 #define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
442 void assert_failed(
uint8_t *file, uint32_t line);
444 #define assert_param(expr) ((void)0U)
Header file of HCD HAL module.
Header file of PCD HAL module.
Header file of TIM HAL module.
Header file containing functions prototypes of ADC HAL library.
Header file of IWDG HAL module.
Header file of CORTEX HAL module.
Header file of UART HAL module.
Header file of ETH HAL module.
Header file of I2C HAL module.
Header file of DMA HAL module.
Header file of SPI HAL module.
const uint8_t[]
Definition: 404_html.c:3
Header file of RCC HAL module.
Header file of GPIO HAL module.
Header file of PWR HAL module.
Header file of FLASH HAL module.