File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed
libraries/SrcWrapper/src/stm32 Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 52
52
#undef HAL_SAI_MODULE_ENABLED
53
53
#endif
54
54
55
-
56
55
#if !defined(HAL_SPI_MODULE_DISABLED )
57
56
#define HAL_SPI_MODULE_ENABLED
58
57
#else
71
70
#undef HAL_ICACHE_MODULE_ENABLED
72
71
#endif
73
72
73
+ #if !defined(HAL_CRC_MODULE_ENABLED )
74
+ #define HAL_CRC_MODULE_ENABLED
75
+ #else
76
+ #undef HAL_CRC_MODULE_ENABLED
77
+ #endif
78
+
74
79
/*
75
80
* Not defined by default
76
81
*/
127
132
HAL_CEC_MODULE_ENABLED
128
133
HAL_COMP_MODULE_ENABLED
129
134
HAL_CORDIC_MODULE_ENABLED
130
- HAL_CRC_MODULE_ENABLED
131
135
HAL_CRYP_MODULE_ENABLED
132
136
HAL_DCMI_MODULE_ENABLED
133
137
HAL_DFSDM_MODULE_ENABLED
Original file line number Diff line number Diff line change @@ -173,6 +173,11 @@ void configIPClock(void)
173
173
/* Enable SYSCFG clock, needed for example: Pin remap or Analog switch ... */
174
174
__HAL_RCC_SYSCFG_CLK_ENABLE ();
175
175
#endif
176
+
177
+ #if defined(__HAL_RCC_CRC_CLK_ENABLE )
178
+ /* Enable CRC clock, needed for example: MotionFX Library ... */
179
+ __HAL_RCC_CRC_CLK_ENABLE ();
180
+ #endif
176
181
}
177
182
178
183
#ifdef __cplusplus
Original file line number Diff line number Diff line change 19
19
extern "C" {
20
20
#endif
21
21
22
+ CRC_HandleTypeDef hcrc = {.Instance = CRC };
23
+
22
24
/**
23
25
* @brief This function performs the global init of the system (HAL, IOs...)
24
26
* @param None
@@ -53,6 +55,9 @@ void hw_config_init(void)
53
55
/* Configure the system clock */
54
56
SystemClock_Config ();
55
57
58
+ /* Initialize the CRC */
59
+ HAL_CRC_Init (& hcrc );
60
+
56
61
#if defined (USBCON ) && defined(USBD_USE_CDC )
57
62
USBD_CDC_init ();
58
63
#endif
You can’t perform that action at this time.
0 commit comments