We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8650f6a commit fdc5780Copy full SHA for fdc5780
cores/arduino/stm32/hw_config.c
@@ -38,6 +38,7 @@
38
#include "stm32_def.h"
39
#include "hw_config.h"
40
#include "usbd_if.h"
41
+#include "dwt.h"
42
43
#ifdef __cplusplus
44
extern "C" {
@@ -50,15 +51,21 @@ extern "C" {
50
51
*/
52
void hw_config_init(void)
53
{
- //Initialize the HAL
54
+ /* Init DWT if present */
55
+#ifdef DWT_BASE
56
+ dwt_init();
57
+#endif
58
+
59
+ /* Initialize the HAL */
60
HAL_Init();
61
- // Configure the system clock
62
+ /* Configure the system clock */
63
SystemClock_Config();
64
65
#if defined (USBCON) && defined(USBD_USE_CDC)
66
USBD_CDC_init();
67
#endif
68
69
}
70
71
0 commit comments