1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-15 20:19:23 +00:00

fix(core): disable IRQ before initializing DMA

[no changelog]
This commit is contained in:
tychovrahe 2023-04-03 22:54:05 +02:00
parent bab7c1fef1
commit 420b1043f5

View File

@ -239,6 +239,7 @@ void dma_init(DMA_HandleTypeDef *dma, const dma_descr_t *dma_descr, uint32_t dir
dma_handle[dma_id] = dma;
dma_enable_clock(dma_id);
svc_disableIRQ(dma_irqn[dma_id]);
// if this stream was previously configured for this channel/request and direction then we
// can skip most of the initialisation