commit for I2C2 peripheral config with TX DMA channel, working on 400kHz fast mode.

This commit is contained in:
2026-08-28 15:33:48 +08:00
parent 983d63e3a5
commit dc8b4bdb5f
8 changed files with 207 additions and 17 deletions
+3
View File
@@ -49,6 +49,9 @@ void MX_DMA_Init(void)
/* DMA1_Channel2_3_IRQn interrupt configuration */
HAL_NVIC_SetPriority(DMA1_Channel2_3_IRQn, 3, 0);
HAL_NVIC_EnableIRQ(DMA1_Channel2_3_IRQn);
/* DMA1_Ch4_5_DMAMUX1_OVR_IRQn interrupt configuration */
HAL_NVIC_SetPriority(DMA1_Ch4_5_DMAMUX1_OVR_IRQn, 3, 0);
HAL_NVIC_EnableIRQ(DMA1_Ch4_5_DMAMUX1_OVR_IRQn);
}