Skip to content

Commit e334cea

Browse files
committed
drv/bluetooth_stm32_bluenrg: don't |= DMA IFCR
The DMA IFCR is a clear register, so we don't need to read it first.
1 parent fac5822 commit e334cea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pbio/drv/bluetooth/bluetooth_stm32_bluenrg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ void DMA1_Channel4_5_IRQHandler(void) {
326326
// if CH4 transfer complete
327327
if (DMA1->ISR & DMA_ISR_TCIF4) {
328328
// clear interrupt
329-
DMA1->IFCR |= DMA_IFCR_CTCIF4;
329+
DMA1->IFCR = DMA_IFCR_CTCIF4;
330330
// disable CH4
331331
DMA1_Channel4->CCR &= ~DMA_CCR_EN;
332332

0 commit comments

Comments
 (0)