aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/internal.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-12-15 11:23:28 -0500
committerKevin O'Connor <kevin@koconnor.net>2022-12-18 19:50:08 -0500
commit4af87865875755b421873e7e4e43ece958ab00ee (patch)
treefcef44139275082394abfc17257011a5da90566b /src/stm32/internal.h
parentb6cd77f6e377060d2625126ffef9b2842e1cc25b (diff)
downloadkutter-4af87865875755b421873e7e4e43ece958ab00ee.tar.gz
kutter-4af87865875755b421873e7e4e43ece958ab00ee.tar.xz
kutter-4af87865875755b421873e7e4e43ece958ab00ee.zip
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 <kevin@koconnor.net>
Diffstat (limited to 'src/stm32/internal.h')
-rw-r--r--src/stm32/internal.h4
1 files changed, 4 insertions, 0 deletions
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);