Avoid code being overwritten by auto-generation
This is a question about automatically generated code.
When we change the ioc file in STM32CubeIDE, there is some code that We don't want to be overwritten by the automatic generation. How can we avoid this?
Specifically, We have changed the value of HAL_StatusTypeDef in stm32f4xx_hal_def.h as follows. We don't want this to be overwritten.
typedef enum
{
HAL_OK = 0x01U,
HAL_ERROR = 0x02U,
HAL_BUSY = 0x04U,
HAL_TIMEOUT = 0x08U
} HAL_StatusTypeDef;