aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/stm32f1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32/stm32f1.c')
-rw-r--r--src/stm32/stm32f1.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/stm32/stm32f1.c b/src/stm32/stm32f1.c
index 820a5518..9d3c3b97 100644
--- a/src/stm32/stm32f1.c
+++ b/src/stm32/stm32f1.c
@@ -1,6 +1,6 @@
// Code to setup clocks and gpio on stm32f1
//
-// Copyright (C) 2019-2021 Kevin O'Connor <kevin@koconnor.net>
+// Copyright (C) 2019-2022 Kevin O'Connor <kevin@koconnor.net>
//
// This file may be distributed under the terms of the GNU GPLv3 license.
@@ -8,7 +8,7 @@
#include "board/armcm_boot.h" // VectorTable
#include "board/armcm_reset.h" // try_request_canboot
#include "board/irq.h" // irq_disable
-#include "board/usb_cdc.h" // usb_request_bootloader
+#include "board/misc.h" // bootloader_request
#include "internal.h" // enable_pclock
#include "sched.h" // sched_main
@@ -213,7 +213,7 @@ gpio_peripheral(uint32_t gpio, uint32_t mode, int pullup)
/****************************************************************
- * USB bootloader
+ * Bootloader
****************************************************************/
// Reboot into USB "HID" bootloader
@@ -240,9 +240,9 @@ usb_stm32duino_bootloader(void)
NVIC_SystemReset();
}
-// Handle USB reboot requests
+// Handle reboot requests
void
-usb_request_bootloader(void)
+bootloader_request(void)
{
try_request_canboot();
if (CONFIG_STM32_FLASH_START_800)