We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e378839 commit eaf1a87Copy full SHA for eaf1a87
cores/arduino/stm32/bootloader.h
@@ -1,6 +1,8 @@
1
#ifndef _BOOTLOADER_H_
2
#define _BOOTLOADER_H_
3
4
+#include <stdint.h>
5
+
6
/* Ensure DTR_TOGGLING_SEQ enabled */
7
#if defined(BL_LEGACY_LEAF) || defined(BL_HID)
8
#ifndef DTR_TOGGLING_SEQ
@@ -12,6 +14,11 @@
12
14
extern "C" {
13
15
#endif /* __cplusplus */
16
17
+#ifdef DTR_TOGGLING_SEQ
18
+/* DTR toggling sequence management */
19
+void dtr_togglingHook(uint8_t *buf, uint32_t *len);
20
+#endif
21
22
#ifdef __cplusplus
23
}
24
cores/arduino/stm32/usb/cdc/usbd_cdc_if.c
@@ -56,8 +56,6 @@ __IO bool receivePended = true;
56
static uint32_t transmitStart = 0;
57
58
#ifdef DTR_TOGGLING_SEQ
59
-/* DTR toggling sequence management */
60
-extern void dtr_togglingHook(uint8_t *buf, uint32_t *len);
61
uint8_t dtr_toggling = 0;
62
#endif
63
0 commit comments