How can one keep the custom codes in a subroutine where there is no by default a special place for it?
For instance I'm using
in which there is no dedicated space for my codes such as
/* USER CODE BEGIN MX_TIM1_Init*/
or something like this.
I tried to put it in different way by naming it as
/* USER CODE BEGIN MX_TIM1_Init*/ , /* USER CODE BEGIN 10*/ etc.
Bit still my codes are being deleted after a restart.