diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-12-18 20:00:06 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-12-23 22:15:25 -0500 |
commit | de35790709c4cbdc20fac4cf96c96fa2cd1fdacb (patch) | |
tree | 797891acdc15a52dbc4469f61849407b97bc0279 /src/stm32/stm32h7.c | |
parent | 617f620f003462cc2be6eb6ca4df644f69185811 (diff) | |
download | kutter-de35790709c4cbdc20fac4cf96c96fa2cd1fdacb.tar.gz kutter-de35790709c4cbdc20fac4cf96c96fa2cd1fdacb.tar.xz kutter-de35790709c4cbdc20fac4cf96c96fa2cd1fdacb.zip |
stm32: Remove USB boot stubs from stm32h7.c
The USB dfu bootloader wasn't enabled on stm32h7, so remove the
copy-and-paste code stubs for it.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32/stm32h7.c')
-rw-r--r-- | src/stm32/stm32h7.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/stm32/stm32h7.c b/src/stm32/stm32h7.c index bc64b803..1a637e79 100644 --- a/src/stm32/stm32h7.c +++ b/src/stm32/stm32h7.c @@ -9,7 +9,6 @@ #include "autoconf.h" // CONFIG_CLOCK_REF_FREQ #include "board/armcm_boot.h" // VectorTable -#include "board/irq.h" // irq_disable #include "command.h" // DECL_CONSTANT_STR #include "internal.h" // enable_pclock #include "sched.h" // sched_main @@ -102,17 +101,10 @@ gpio_clock_enable(GPIO_TypeDef *regs) enable_pclock((uint32_t)regs); } -#define USB_BOOT_FLAG_ADDR (CONFIG_RAM_START + CONFIG_RAM_SIZE - 4096) -#define USB_BOOT_FLAG 0x55534220424f4f54 // "USB BOOT" - // Handle USB reboot requests void usb_request_bootloader(void) { - irq_disable(); - // System DFU Bootloader - *(uint64_t*)USB_BOOT_FLAG_ADDR = USB_BOOT_FLAG; - NVIC_SystemReset(); } #if !CONFIG_STM32_CLOCK_REF_INTERNAL |