Skip to content

Commit e1f9868

Browse files
committed
Clean declaration
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent e378839 commit e1f9868

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

cores/arduino/stm32/bootloader.h

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

4+
5+
#include <stdint.h>
6+
47
/* Ensure DTR_TOGGLING_SEQ enabled */
58
#if defined(BL_LEGACY_LEAF) || defined(BL_HID)
69
#ifndef DTR_TOGGLING_SEQ
@@ -12,6 +15,11 @@
1215
extern "C" {
1316
#endif /* __cplusplus */
1417

18+
#ifdef DTR_TOGGLING_SEQ
19+
/* DTR toggling sequence management */
20+
void dtr_togglingHook(uint8_t *buf, uint32_t *len);
21+
#endif
22+
1523
#ifdef __cplusplus
1624
}
1725
#endif /* __cplusplus */

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)