Commit cb8eaad 1 parent 4c5373c commit cb8eaad Copy full SHA for cb8eaad
File tree 2 files changed +12
-9
lines changed
boards/STM32_F103_vibl/board
2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 20
20
#include "vial.h"
21
21
#endif
22
22
23
- #define RTC_BOOTLOADER_FLAG 0x7662 /* Flag whether to jump into bootloader, "vb" */
24
23
#define RTC_INSECURE_FLAG 0x4953 /* Flag to indicate qmk that we want to boot into insecure mode, "IS" */
25
24
26
25
/**
@@ -62,9 +61,3 @@ void boardInit(void) {
62
61
#endif
63
62
BKP -> DR10 = 0 ;
64
63
}
65
-
66
- void bootloader_jump (void ) {
67
- //Set backup register DR10 to enter bootloader on reset
68
- BKP -> DR10 = RTC_BOOTLOADER_FLAG ;
69
- NVIC_SystemReset ();
70
- }
Original file line number Diff line number Diff line change 16
16
17
17
#include "bootloader.h"
18
18
19
- __attribute__(( weak )) void bootloader_jump ( void ) {}
19
+ #include <ch.h>
20
20
21
- __attribute__((weak )) void enter_bootloader_mode_if_requested (void ) {}
21
+ #define RTC_BOOTLOADER_FLAG 0x7662 /* Flag whether to jump into bootloader, "vb" */
22
+
23
+ __attribute__((weak )) void bootloader_jump (void ) {
24
+ BKP -> DR10 = RTC_BOOTLOADER_FLAG ;
25
+ NVIC_SystemReset ();
26
+ }
27
+
28
+ __attribute__((weak )) void mcu_reset (void ) {
29
+ BKP -> DR10 = 0 ;
30
+ NVIC_SystemReset ();
31
+ }
You can’t perform that action at this time.
0 commit comments