aboutsummaryrefslogtreecommitdiff
path: root/stm32/stm32f0xx_hal_conf.h
blob: fc27221e0f5840e01cb2a5d390ab33d8464be25a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#pragma once

#define HSE_VALUE ((uint32_t)8000000)
#define HSE_STARTUP_TIMEOUT ((uint32_t)100)
#define HSI_VALUE ((uint32_t)8000000)
#define HSI_STARTUP_TIMEOUT ((uint32_t)5000)
#define HSI14_VALUE ((uint32_t)14000000)
#define HSI48_VALUE ((uint32_t)48000000)
#define LSI_VALUE ((uint32_t)40000)
#define LSE_VALUE ((uint32_t)32768)
#define LSE_STARTUP_TIMEOUT ((uint32_t)5000)

#define VDD_VALUE 3300U
#define TICK_INT_PRIORITY ((uint32_t)(1U<<__NVIC_PRIO_BITS) - 1U)

#define USE_RTOS 0U
#define PREFETCH_ENABLE 1U
#define INSTRUCTION_CACHE_ENABLE 0U
#define DATA_CACHE_ENABLE 0U
#define USE_SPI_CRC 0U

#define HAL_RCC_MODULE_ENABLED
#define HAL_MODULE_ENABLED
#define HAL_I2C_MODULE_ENABLED
#define HAL_GPIO_MODULE_ENABLED
#define HAL_DMA_MODULE_ENABLED
#define HAL_CORTEX_MODULE_ENABLED
#define HAL_PWR_MODULE_ENABLED
#define HAL_FLASH_MODULE_ENABLED
#define HAL_TIM_MODULE_ENABLED
#define HAL_UART_MODULE_ENABLED

#ifdef HAL_RCC_MODULE_ENABLED
#include <stm32f0xx_hal_rcc.h>
#endif
#ifdef HAL_GPIO_MODULE_ENABLED
#include <stm32f0xx_hal_gpio.h>
#endif
#ifdef HAL_DMA_MODULE_ENABLED
#include <stm32f0xx_hal_dma.h>
#endif
#ifdef HAL_CORTEX_MODULE_ENABLED
#include <stm32f0xx_hal_cortex.h>
#endif
#ifdef HAL_ADC_MODULE_ENABLED
#include <stm32f0xx_hal_adc.h>
#endif
#ifdef HAL_CAN_MODULE_ENABLED
#include <stm32f0xx_hal_can.h>
#endif
#ifdef HAL_CEC_MODULE_ENABLED
#include <stm32f0xx_hal_cec.h>
#endif
#ifdef HAL_COMP_MODULE_ENABLED
#include <stm32f0xx_hal_comp.h>
#endif
#ifdef HAL_CRC_MODULE_ENABLED
#include <stm32f0xx_hal_crc.h>
#endif
#ifdef HAL_DAC_MODULE_ENABLED
#include <stm32f0xx_hal_dac.h>
#endif
#ifdef HAL_FLASH_MODULE_ENABLED
#include <stm32f0xx_hal_flash.h>
#endif
#ifdef HAL_I2C_MODULE_ENABLED
#include <stm32f0xx_hal_i2c.h>
#endif
#ifdef HAL_I2S_MODULE_ENABLED
#include <stm32f0xx_hal_i2s.h>
#endif
#ifdef HAL_IRDA_MODULE_ENABLED
#include <stm32f0xx_hal_irda.h>
#endif
#ifdef HAL_IWDG_MODULE_ENABLED
#include <stm32f0xx_hal_iwdg.h>
#endif
#ifdef HAL_PCD_MODULE_ENABLED
#include <stm32f0xx_hal_pcd.h>
#endif
#ifdef HAL_PWR_MODULE_ENABLED
#include <stm32f0xx_hal_pwr.h>
#endif
#ifdef HAL_RTC_MODULE_ENABLED
#include <stm32f0xx_hal_rtc.h>
#endif
#ifdef HAL_SMARTCARD_MODULE_ENABLED
#include <stm32f0xx_hal_smartcard.h>
#endif
#ifdef HAL_SMBUS_MODULE_ENABLED
#include <stm32f0xx_hal_smbus.h>
#endif
#ifdef HAL_SPI_MODULE_ENABLED
#include <stm32f0xx_hal_spi.h>
#endif
#ifdef HAL_TIM_MODULE_ENABLED
#include <stm32f0xx_hal_tim.h>
#endif
#ifdef HAL_TSC_MODULE_ENABLED
#include <stm32f0xx_hal_tsc.h>
#endif
#ifdef HAL_UART_MODULE_ENABLED
#include <stm32f0xx_hal_uart.h>
#endif
#ifdef HAL_USART_MODULE_ENABLED
#include <stm32f0xx_hal_usart.h>
#endif
#ifdef HAL_WWDG_MODULE_ENABLED
#include <stm32f0xx_hal_wwdg.h>
#endif

#ifdef USE_FULL_ASSERT
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((char *)__FILE__, __LINE__))
void assert_failed(char* file, uint32_t line);
#else
#define assert_param(expr) ((void)0U)
#endif