This C program, designed for STM32 microcontrollers, calculates PSC and ARR values in a while loop for a target frequency. The calc_arr_psc()
function iterates through combinations to find values close to the target within a specified error margin.