From 4af87865875755b421873e7e4e43ece958ab00ee Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 15 Dec 2022 11:23:28 -0500 Subject: stm32: Move dfu reboot logic to new dfu_reboot.c file Move the stm32 DFU reboot logic to a new dfu_reboot.c file. This simplifies the per-chip code. Signed-off-by: Kevin O'Connor --- src/stm32/internal.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/stm32/internal.h') diff --git a/src/stm32/internal.h b/src/stm32/internal.h index 2ba7abe2..b5971ed7 100644 --- a/src/stm32/internal.h +++ b/src/stm32/internal.h @@ -40,6 +40,10 @@ void gpio_peripheral(uint32_t gpio, uint32_t mode, int pullup); void enable_pclock(uint32_t periph_base); int is_enabled_pclock(uint32_t periph_base); +// dfu_reboot.c +void dfu_reboot(void); +void dfu_reboot_check(void); + // stm32??.c struct cline { volatile uint32_t *en, *rst; uint32_t bit; }; struct cline lookup_clock_line(uint32_t periph_base); -- cgit v1.2.3-70-g09d2