Begin and End "places" for STM32CubeMX generated code
Which file and where in the file (between begin .. end marker) should I place my function?
This is taken from Drivers\STM32WLxx_HAL_Driver\Src\stm32wlxx_hal_gpio.c.
It says "HAL_GPIO_EXTI_Callback could be implemented in the user file"
I understand that the MX code generator requires user code be placed as dozens of specific
places. How does those "places" work? Do those "places" not erased if I reconfigure pinout with
another run of the STM32CubeMX code generator? TIA
/**
* @brief EXTI line detection callback.
* @param GPIO_Pin Specifies the port pin connected to corresponding EXTI line.
* @retval None
*/
__weak void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
/* Prevent unused argument(s) compilation warning */
UNUSED(GPIO_Pin);
/* NOTE: This function should not be modified, when the callback is needed,
the HAL_GPIO_EXTI_Callback could be implemented in the user file
*/
}