diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-09-18 10:45:39 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-09-18 11:59:43 -0400 |
commit | 8cb3d09484e6b304abbd905ffa1073683ffc2fcf (patch) | |
tree | f62fd54fe761a3b8a3672ec18013f7a07bc6555e /src/stm32/stm32f4.c | |
parent | fce98c5519019f3ea23d06cad04b55f3a4971d2c (diff) | |
download | kutter-8cb3d09484e6b304abbd905ffa1073683ffc2fcf.tar.gz kutter-8cb3d09484e6b304abbd905ffa1073683ffc2fcf.tar.xz kutter-8cb3d09484e6b304abbd905ffa1073683ffc2fcf.zip |
stm32: Move usb_request_bootloader() to chip specific code
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32/stm32f4.c')
-rw-r--r-- | src/stm32/stm32f4.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stm32/stm32f4.c b/src/stm32/stm32f4.c index 9d40f34c..e6f3f14d 100644 --- a/src/stm32/stm32f4.c +++ b/src/stm32/stm32f4.c @@ -5,6 +5,7 @@ // This file may be distributed under the terms of the GNU GPLv3 license. #include "autoconf.h" // CONFIG_CLOCK_REF_8M +#include "board/usb_cdc.h" // usb_request_bootloader #include "command.h" // DECL_CONSTANT_STR #include "internal.h" // enable_pclock @@ -85,6 +86,12 @@ gpio_peripheral(uint32_t gpio, uint32_t mode, int pullup) regs->OSPEEDR = (regs->OSPEEDR & ~m_msk) | (0x02 << m_shift); } +// Handle USB reboot requests +void +usb_request_bootloader(void) +{ +} + #if CONFIG_CLOCK_REF_8M DECL_CONSTANT_STR("RESERVE_PINS_crystal", "PH0,PH1"); #endif |