mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-20 21:27:53 -06:00
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>
This commit is contained in:
parent
48b60a8021
commit
18ff84aa04
14 changed files with 45 additions and 32 deletions
|
@ -8,6 +8,7 @@
|
|||
#include "board/armcm_boot.h" // armcm_main
|
||||
#include "board/armcm_reset.h" // try_request_canboot
|
||||
#include "board/irq.h" // irq_disable
|
||||
#include "board/misc.h" // bootloader_request
|
||||
#include "command.h" // DECL_CONSTANT_STR
|
||||
#include "internal.h" // enable_pclock
|
||||
#include "sched.h" // sched_main
|
||||
|
@ -130,7 +131,7 @@ hsi14_setup(void)
|
|||
|
||||
|
||||
/****************************************************************
|
||||
* USB bootloader
|
||||
* Bootloader
|
||||
****************************************************************/
|
||||
|
||||
#define USB_BOOT_FLAG_ADDR (CONFIG_RAM_START + CONFIG_RAM_SIZE - 1024)
|
||||
|
@ -160,9 +161,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();
|
||||
usb_reboot_for_dfu_bootloader();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue