src/bsp.c
static void config_tim4(void)
{
    CLK_PeripheralClockConfig(CLK_PERIPHERAL_TIMER4, ENABLE);
    TIM4_TimeBaseInit(TIM4_PRESCALLER, TIM4_PERIOD);
    TIM4_ITConfig(TIM4_IT_UPDATE, ENABLE);
    TIM4_Cmd(ENABLE);
}
/**
 * @brief Configure TIM4 for switching green LEDs.
 * Configure to make interrupt [200 Hz * 20 LEDs] ~= 6 kHz
 * 16 MHz / 32 * (83 + 1) ~= 5.9 kHz
 */
@brief Configure TIM4 for switching green LEDs.
@brief Configure TIM4 for switching green LEDs .
static void config_tim4(void)
{
    CLK_PeripheralClockConfig(CLK_PERIPHERAL_TIMER4, ENABLE);
    TIM4_TimeBaseInit(TIM4_PRESCALLER, TIM4_PERIOD);
    TIM4_ITConfig(TIM4_IT_UPDATE, ENABLE);
    TIM4_Cmd(ENABLE);
}
static void config_tim4 ( void ) { CLK_PeripheralClockConfig ( CLK_PERIPHERAL_TIMER4 , ENABLE ) ; TIM4_TimeBaseInit ( TIM4_PRESCALLER , TIM4_PERIOD ) ; TIM4_ITConfig ( TIM4_IT_UPDATE , ENABLE ) ; TIM4_Cmd ( ENABLE ) ; }
@brief Configure TIM4 for switching green LEDs.
@brief Configure TIM4 for switching green LEDs .