fix dma error i2c2 dma tx

This commit is contained in:
Yunhorn 2024-03-14 10:55:21 +08:00
parent 6155f4c136
commit b205d7ac38
2 changed files with 7 additions and 4 deletions

View File

@ -67,7 +67,7 @@ void MX_RTC_Init(void)
{
Error_Handler();
}
#if 0
/** Enable the Alarm A
*/
sAlarm.BinaryAutoClr = RTC_ALARMSUBSECONDBIN_AUTOCLR_NO;
@ -80,7 +80,7 @@ void MX_RTC_Init(void)
Error_Handler();
}
/* USER CODE BEGIN RTC_Init 2 */
#endif
/* USER CODE END RTC_Init 2 */
}

View File

@ -315,7 +315,7 @@ void DMA1_Channel5_IRQHandler(void)
/* USER CODE BEGIN DMA1_Channel5_IRQn 0 */
/* USER CODE END DMA1_Channel5_IRQn 0 */
HAL_DMA_IRQHandler(&hdma_usart2_tx);
HAL_DMA_IRQHandler(&hdma_i2c2_tx);
/* USER CODE BEGIN DMA1_Channel5_IRQn 1 */
/* USER CODE END DMA1_Channel5_IRQn 1 */
@ -324,6 +324,7 @@ void DMA1_Channel5_IRQHandler(void)
/**
* @brief This function handles DMA1 Channel 6 Interrupt.
*/
#if 0
void DMA1_Channel6_IRQHandler(void)
{
/* USER CODE BEGIN DMA1_Channel6_IRQn 0 */
@ -336,7 +337,7 @@ void DMA1_Channel6_IRQHandler(void)
/* USER CODE END DMA1_Channel6_IRQn 1 */
}
#endif
/**
* @brief This function handles DMA1 Channel 7 Interrupt.
*/
@ -426,7 +427,9 @@ void RTC_Alarm_IRQHandler(void)
/* USER CODE BEGIN RTC_Alarm_IRQn 0 */
/* USER CODE END RTC_Alarm_IRQn 0 */
#if 1
HAL_RTC_AlarmIRQHandler(&hrtc);
#endif
/* USER CODE BEGIN RTC_Alarm_IRQn 1 */
/* USER CODE END RTC_Alarm_IRQn 1 */