Firmware SDK
twr_dfu.c
1
#include <stm32l0xx.h>
2
3
void
twr_dfu_jump
(
void
)
4
{
5
// Set magic code, the rest is in the system_stm32l0xx.c file
6
*((
unsigned
long
*)0x20000000) = 0xDEADBEEF;
7
8
// Reset the processor
9
NVIC_SystemReset();
10
}
twr_dfu_jump
void twr_dfu_jump(void)
Reset the CPU and jump to the USB DFU bootloader.
Definition:
twr_dfu.c:3
twr
src
twr_dfu.c
Generated by
1.9.1