Solved
Custom made timer or ready made timer for STM32F103C8
Hi.
I am a beginner in STM32 development. I created a custom timer for STM32F103C8 blue pill in the While Loop which will execute a function to send AT Command to GSM modem as described below. In terms of cpu usage, is it better to create a custom timer or use ready made timers in the MCU? Thank you in advance.
uint32_t counter = 0;
while (1) {
if (counter == 8000000){
HAL_UART_Transmit(&huart1, (uint8_t *)"AT\r",sizeof("AT\r"), 50);
counter = 0;
}
counter++;
}