File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
#ifndef _BOOTLOADER_H_
2
2
#define _BOOTLOADER_H_
3
3
4
+ #include <stdint.h>
5
+
4
6
/* Ensure DTR_TOGGLING_SEQ enabled */
5
7
#if defined(BL_LEGACY_LEAF ) || defined(BL_HID )
6
8
#ifndef DTR_TOGGLING_SEQ
12
14
extern "C" {
13
15
#endif /* __cplusplus */
14
16
17
+ #ifdef DTR_TOGGLING_SEQ
18
+ /* DTR toggling sequence management */
19
+ void dtr_togglingHook (uint8_t * buf , uint32_t * len );
20
+ #endif
21
+
15
22
#ifdef __cplusplus
16
23
}
17
24
#endif /* __cplusplus */
Original file line number Diff line number Diff line change @@ -56,8 +56,7 @@ __IO bool receivePended = true;
56
56
static uint32_t transmitStart = 0 ;
57
57
58
58
#ifdef DTR_TOGGLING_SEQ
59
- /* DTR toggling sequence management */
60
- extern void dtr_togglingHook (uint8_t * buf , uint32_t * len );
59
+
61
60
uint8_t dtr_toggling = 0 ;
62
61
#endif
63
62
You can’t perform that action at this time.
0 commit comments