aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/stm32f4.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-07-25 13:17:23 -0400
committerKevin O'Connor <kevin@koconnor.net>2022-07-29 11:40:54 -0400
commit18ff84aa04c3dbf39166d4bad210e91a9381960f (patch)
tree543ed2f14b4176a4ce7e8507cc3a2371dcc64b65 /src/stm32/stm32f4.c
parent48b60a8021bd02d998fd3d6ea9e55645e3dc75e4 (diff)
downloadkutter-18ff84aa04c3dbf39166d4bad210e91a9381960f.tar.gz
kutter-18ff84aa04c3dbf39166d4bad210e91a9381960f.tar.xz
kutter-18ff84aa04c3dbf39166d4bad210e91a9381960f.zip
usb_cdc: Rename usb_request_bootloader() to bootloader_request()
Rename this board API function to a more generic name. This is in preparation for calling the function from the canbus code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32/stm32f4.c')
-rw-r--r--src/stm32/stm32f4.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stm32/stm32f4.c b/src/stm32/stm32f4.c
index 9c6880cf..0b032de7 100644
--- a/src/stm32/stm32f4.c
+++ b/src/stm32/stm32f4.c
@@ -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 "command.h" // DECL_CONSTANT_STR
#include "internal.h" // enable_pclock
#include "sched.h" // sched_main
@@ -188,7 +188,7 @@ clock_setup(void)
/****************************************************************
- * USB bootloader
+ * Bootloader
****************************************************************/
// Reboot into USB "HID" bootloader
@@ -228,9 +228,9 @@ check_usb_dfu_bootloader(void)
: : "r"(sysbase[0]), "r"(sysbase[1]));
}
-// Handle USB reboot requests
+// Handle reboot requests
void
-usb_request_bootloader(void)
+bootloader_request(void)
{
try_request_canboot();
if (CONFIG_STM32_FLASH_START_4000)