On my hardware this line causes device to emit loud sound out of the buzzer on startup until any other sound is played.
Not sure why this line is there, but we do TIM_OC4PolarityConfig(TIM4, TIM_OCPolarity_Low); in order to stop the sound in Beep() below, so setting polarity high in Beep_Configuration seems incorrect.
On my hardware this line causes device to emit loud sound out of the buzzer on startup until any other sound is played.
Not sure why this line is there, but we do
TIM_OC4PolarityConfig(TIM4, TIM_OCPolarity_Low);
in order to stop the sound inBeep()
below, so setting polarity high inBeep_Configuration
seems incorrect.