mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Disable IRQs when doing a soft-reset.
This commit is contained in:
parent
2ab317063d
commit
acc35704d8
@ -48,6 +48,7 @@
|
||||
#include "usbdbg.h"
|
||||
#include "sdram.h"
|
||||
#include "fb_alloc.h"
|
||||
#include "irqs.h"
|
||||
|
||||
#include "usbd_core.h"
|
||||
#include "usbd_desc.h"
|
||||
@ -331,6 +332,9 @@ soft_reset:
|
||||
servo_init();
|
||||
usbdbg_init();
|
||||
|
||||
// Remove the BASEPRI masking (if any)
|
||||
irq_set_base_priority(0);
|
||||
|
||||
// Initialize storage
|
||||
if (sdcard_is_present()) {
|
||||
if (first_soft_reset) {
|
||||
@ -441,6 +445,8 @@ soft_reset:
|
||||
}
|
||||
}
|
||||
|
||||
// Disable all IRQs except Systick and Flash IRQs
|
||||
irq_set_base_priority(2);
|
||||
|
||||
// soft reset
|
||||
storage_flush();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user