TRY REDUCE UNUSED CODE
This commit is contained in:
parent
b205d7ac38
commit
d116edad2d
|
@ -44,13 +44,17 @@ void MX_DMA_Init(void)
|
|||
/* DMA controller clock enable */
|
||||
__HAL_RCC_DMAMUX1_CLK_ENABLE();
|
||||
__HAL_RCC_DMA1_CLK_ENABLE();
|
||||
#if 0
|
||||
__HAL_RCC_DMA2_CLK_ENABLE();
|
||||
#endif
|
||||
/* DMA interrupt init */
|
||||
|
||||
#if 0
|
||||
// **** TIM1_CH2 WS2812B @ PA-9
|
||||
HAL_NVIC_SetPriority(DMA1_Channel1_IRQn, 0, 0);
|
||||
HAL_NVIC_EnableIRQ(DMA1_Channel1_IRQn);
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
// **** SPI1
|
||||
/* DMA1_Channel2_IRQn interrupt configuration */
|
||||
HAL_NVIC_SetPriority(DMA1_Channel2_IRQn, 0, 0);
|
||||
|
@ -59,7 +63,7 @@ void MX_DMA_Init(void)
|
|||
HAL_NVIC_SetPriority(DMA1_Channel3_IRQn, 0, 0);
|
||||
HAL_NVIC_EnableIRQ(DMA1_Channel3_IRQn);
|
||||
// **** SPI1
|
||||
|
||||
#endif
|
||||
// **** I2C2
|
||||
/* DMA1_Channel4_IRQn interrupt configuration */
|
||||
HAL_NVIC_SetPriority(DMA1_Channel4_IRQn, 0, 0);
|
||||
|
@ -79,11 +83,11 @@ void MX_DMA_Init(void)
|
|||
HAL_NVIC_SetPriority(DMA1_Channel7_IRQn, 0, 0);
|
||||
HAL_NVIC_EnableIRQ(DMA1_Channel7_IRQn);
|
||||
// **** USART2
|
||||
|
||||
#if 0
|
||||
/* DMA2_Channel1_IRQn interrupt configuration */
|
||||
HAL_NVIC_SetPriority(DMA2_Channel1_IRQn, 0, 0);
|
||||
HAL_NVIC_EnableIRQ(DMA2_Channel1_IRQn);
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -268,6 +268,7 @@ void EXTI1_IRQHandler(void)
|
|||
/**
|
||||
* @brief This function handles DMA1 Channel 2 Interrupt.
|
||||
*/
|
||||
#if 0
|
||||
void DMA1_Channel2_IRQHandler(void)
|
||||
{
|
||||
/* USER CODE BEGIN DMA1_Channel2_IRQn 0 */
|
||||
|
@ -278,7 +279,9 @@ void DMA1_Channel2_IRQHandler(void)
|
|||
|
||||
/* USER CODE END DMA1_Channel2_IRQn 1 */
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
/**
|
||||
* @brief This function handles DMA1 Channel 3 Interrupt.
|
||||
*/
|
||||
|
@ -292,6 +295,7 @@ void DMA1_Channel3_IRQHandler(void)
|
|||
|
||||
/* USER CODE END DMA1_Channel3_IRQn 1 */
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief This function handles DMA1 Channel 4 Interrupt.
|
||||
|
@ -352,6 +356,7 @@ void DMA1_Channel7_IRQHandler(void)
|
|||
/* USER CODE END DMA1_Channel7_IRQn 1 */
|
||||
}
|
||||
|
||||
#if 0
|
||||
/**
|
||||
* @brief This function handles EXTI Lines [4] Interrupt.
|
||||
*/
|
||||
|
@ -365,7 +370,7 @@ void EXTI4_IRQHandler(void)
|
|||
|
||||
/* USER CODE END EXTI9_5_IRQn 1 */
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief This function handles EXTI Lines [9:5] Interrupt.
|
||||
|
@ -387,6 +392,7 @@ void EXTI9_5_IRQHandler(void)
|
|||
/* USER CODE END EXTI9_5_IRQn 1 */
|
||||
}
|
||||
|
||||
#if 0
|
||||
/**
|
||||
* @brief This function handles EXTI Lines [9:5] Interrupt.
|
||||
*/
|
||||
|
@ -402,7 +408,7 @@ void EXTI15_10_IRQHandler(void)
|
|||
|
||||
/* USER CODE END EXTI15_10_IRQn 1 */
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
|
@ -418,7 +424,7 @@ void USART2_IRQHandler(void)
|
|||
|
||||
/* USER CODE END USART2_IRQn 1 */
|
||||
}
|
||||
|
||||
#if 0
|
||||
/**
|
||||
* @brief This function handles RTC Alarms (A and B) Interrupt.
|
||||
*/
|
||||
|
@ -434,7 +440,7 @@ void RTC_Alarm_IRQHandler(void)
|
|||
|
||||
/* USER CODE END RTC_Alarm_IRQn 1 */
|
||||
}
|
||||
|
||||
#endif
|
||||
/**
|
||||
* @brief This function handles SUBGHZ Radio Interrupt.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue