Skip to content

Commit eaf1a87

Browse files
committed
Clean declaration
Signed-off-by: Frederic Pillon <[email protected]>
1 parent e378839 commit eaf1a87

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Diff for: cores/arduino/stm32/bootloader.h

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef _BOOTLOADER_H_
22
#define _BOOTLOADER_H_
33

4+
#include <stdint.h>
5+
46
/* Ensure DTR_TOGGLING_SEQ enabled */
57
#if defined(BL_LEGACY_LEAF) || defined(BL_HID)
68
#ifndef DTR_TOGGLING_SEQ
@@ -12,6 +14,11 @@
1214
extern "C" {
1315
#endif /* __cplusplus */
1416

17+
#ifdef DTR_TOGGLING_SEQ
18+
/* DTR toggling sequence management */
19+
void dtr_togglingHook(uint8_t *buf, uint32_t *len);
20+
#endif
21+
1522
#ifdef __cplusplus
1623
}
1724
#endif /* __cplusplus */

Diff for: cores/arduino/stm32/usb/cdc/usbd_cdc_if.c

-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ __IO bool receivePended = true;
5656
static uint32_t transmitStart = 0;
5757

5858
#ifdef DTR_TOGGLING_SEQ
59-
/* DTR toggling sequence management */
60-
extern void dtr_togglingHook(uint8_t *buf, uint32_t *len);
6159
uint8_t dtr_toggling = 0;
6260
#endif
6361

0 commit comments

Comments
 (0)