Skip to content

Commit

Permalink
Clean declaration
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic Pillon <[email protected]>
  • Loading branch information
fpistm committed Oct 16, 2019
1 parent e378839 commit e1f9868
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 8 additions & 0 deletions cores/arduino/stm32/bootloader.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef _BOOTLOADER_H_
#define _BOOTLOADER_H_


#include <stdint.h>

/* Ensure DTR_TOGGLING_SEQ enabled */
#if defined(BL_LEGACY_LEAF) || defined(BL_HID)
#ifndef DTR_TOGGLING_SEQ
Expand All @@ -12,6 +15,11 @@
extern "C" {
#endif /* __cplusplus */

#ifdef DTR_TOGGLING_SEQ
/* DTR toggling sequence management */
void dtr_togglingHook(uint8_t *buf, uint32_t *len);
#endif

#ifdef __cplusplus
}
#endif /* __cplusplus */
Expand Down
2 changes: 0 additions & 2 deletions cores/arduino/stm32/usb/cdc/usbd_cdc_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ __IO bool receivePended = true;
static uint32_t transmitStart = 0;

#ifdef DTR_TOGGLING_SEQ
/* DTR toggling sequence management */
extern void dtr_togglingHook(uint8_t *buf, uint32_t *len);
uint8_t dtr_toggling = 0;
#endif

Expand Down

0 comments on commit e1f9868

Please sign in to comment.