summaryrefslogtreecommitdiffstats
path: root/platforms/chibios/bootloaders/gd32v_dfu.c
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-12-27 02:20:52 -0800
committerGitHub <noreply@github.com>2021-12-27 21:20:52 +1100
commitbe2265d0d173ac347f0ee9ed809c2a689bf835a2 (patch)
tree97c03e4d12b12e4d2e902efe8a7ab98174dfee5c /platforms/chibios/bootloaders/gd32v_dfu.c
parent1127e0da6b9b88b52a5d4ca33489f5ea5343b00f (diff)
Format code according to conventions (#15593)
Diffstat (limited to 'platforms/chibios/bootloaders/gd32v_dfu.c')
-rw-r--r--platforms/chibios/bootloaders/gd32v_dfu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/platforms/chibios/bootloaders/gd32v_dfu.c b/platforms/chibios/bootloaders/gd32v_dfu.c
index 1ab0882084..7a979638e3 100644
--- a/platforms/chibios/bootloaders/gd32v_dfu.c
+++ b/platforms/chibios/bootloaders/gd32v_dfu.c
@@ -24,8 +24,7 @@
__IO uint32_t *DBGMCU_KEY = (uint32_t *)DBGMCU_BASE + 0x0CU;
__IO uint32_t *DBGMCU_CMD = (uint32_t *)DBGMCU_BASE + 0x08U;
-__attribute__((weak))
-void bootloader_jump(void) {
+__attribute__((weak)) void bootloader_jump(void) {
/* The MTIMER unit of the GD32VF103 doesn't have the MSFRST
* register to generate a software reset request.
* BUT instead two undocumented registers in the debug peripheral
@@ -37,4 +36,4 @@ void bootloader_jump(void) {
}
/* Jumping to bootloader is not possible from user code. */
-void enter_bootloader_mode_if_requested(void) { }
+void enter_bootloader_mode_if_requested(void) {}