Question
Avoid To Include some HAL function of "stm32g0xx_it.c"
Hello everyone!. I'm looking for a way to prevent a function from the "stm32g0xx_it.c" library from being compiled because I'm using it in my MAIN code. The function is "void I2C2_IRQHandler(void)". What I do is to DELETE the function in the library but every time I GENERATE THE CODE it reappears in the library again and again.... Is there a way to prevent this function from compiling?
This is the function.
void I2C2_IRQHandler(void)
{
/* USER CODE BEGIN I2C2_IRQn 0 */
/* USER CODE END I2C2_IRQn 0 */
if (hi2c2.Instance->ISR & (I2C_FLAG_BERR | I2C_FLAG_ARLO | I2C_FLAG_OVR)) {
HAL_I2C_ER_IRQHandler(&hi2c2);
} else {
HAL_I2C_EV_IRQHandler(&hi2c2);
}
/* USER CODE BEGIN I2C2_IRQn 1 */
/* USER CODE END I2C2_IRQn 1 */
}
PD.: The reason why I don't use the HAL library is because of the very long execution times in the HAL library.
