Skip to content

Commit d0a6d59

Browse files
microbit-carlosmathias-arm
authored andcommitted
Remove unused USB_CONNECT_DELAY macro.
Initially included to control how long it would take for the MSC drive to reconnect after being ejected, as shown in: ca7276d That feature was moved and updated the VFS manager as shown in: 3c733e8
1 parent 6a994ae commit d0a6d59

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

source/daplink/bootloader/main_bootloader.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ void modify_stack_pointer_and_start_app(uint32_t r0_sp, uint32_t r1_pc)
8080
#define FLAGS_LED_BLINK_30MS (1 << 6)
8181

8282
// Timing constants (in 90mS ticks)
83-
// USB busy time
84-
#define USB_BUSY_TIME (33)
8583
// Delay before a USB device connect may occur
8684
#define USB_CONNECT_DELAY (11)
8785
// Decrement to zero

source/daplink/interface/main_interface.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ void __libc_init_array (void) {}
8383
#define FLAGS_LED_BLINK_30MS (1 << 6)
8484

8585
// Timing constants (in 90mS ticks)
86-
// USB busy time (~3 sec)
87-
#define USB_BUSY_TIME (33)
8886
// Delay before a USB device connect may occur (~1 sec)
8987
#define USB_CONNECT_DELAY (11)
9088
// Timeout for USB being configured (~2 sec)
@@ -272,7 +270,7 @@ void main_task(void * arg)
272270
gpio_led_state_t cdc_led_value = CDC_LED_DEF;
273271
gpio_led_state_t msc_led_value = MSC_LED_DEF;
274272
// USB
275-
uint32_t usb_state_count = USB_BUSY_TIME;
273+
uint32_t usb_state_count = USB_CONNECT_DELAY;
276274
uint32_t usb_no_config_count = USB_CONFIGURE_TIMEOUT;
277275
#ifdef PBON_BUTTON
278276
uint8_t power_on = 1;
@@ -330,7 +328,6 @@ void main_task(void * arg)
330328
#endif
331329
usbd_connect(0);
332330
usb_state = USB_CONNECTING;
333-
usb_state_count = USB_CONNECT_DELAY;
334331

335332
// Start timer tasks
336333
#ifndef USE_LEGACY_CMSIS_RTOS

0 commit comments

Comments
 (0)