mirror of
https://github.com/avem-labs/Avem.git
synced 2023-09-01 15:18:49 +08:00
fix: (jump2ISP) reset timer before jump
This commit is contained in:
parent
a924b8c861
commit
9d3f6a4158
@ -11,6 +11,8 @@ avm_module_t avm_core_module_st = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
void jump2ISP() {
|
void jump2ISP() {
|
||||||
|
SysTick->CTRL = 0;
|
||||||
|
SysTick->VAL = 0;
|
||||||
__set_MSP(*(unsigned int *)ISP_ADDR);
|
__set_MSP(*(unsigned int *)ISP_ADDR);
|
||||||
((void (*)(void))*((unsigned int *)(ISP_ADDR + 4)))();
|
((void (*)(void))*((unsigned int *)(ISP_ADDR + 4)))();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user