We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a3b621 commit 45fd6d3Copy full SHA for 45fd6d3
platforms/chibios/bootloaders/sn32_dfu.c
@@ -18,6 +18,7 @@
18
19
#include <ch.h>
20
#include <hal.h>
21
+#include "wait.h"
22
23
# define SYMVAL(sym) (uint32_t)(((uint8_t *)&(sym)) - ((uint8_t *)0))
24
extern uint32_t __ram0_end__;
@@ -27,10 +28,7 @@ extern uint32_t __ram0_end__;
27
28
__attribute__((weak)) void bootloader_jump(void) {
29
*MAGIC_ADDR = BOOTLOADER_MAGIC; // set magic flag => reset handler will jump into boot loader
30
// Wait for memory to be set before the reset
- // FIXME: update to wait funcion
31
- for(volatile uint32_t i = 0; i < 32; i++){
32
- __NOP();
33
- }
+ wait_us(1);
34
NVIC_SystemReset();
35
}
36
0 commit comments