Skip to content
Snippets Groups Projects
Commit e89530bd authored by Alberto Nidasio's avatar Alberto Nidasio
Browse files

[Buzzer] Tuned volume

parent 989dcf84
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,13 @@ constexpr float DPL_WIGGLE_TIME = 5 * 1000; // [ms]
TIM_TypeDef* const BUZZER_TIMER = TIM8;
constexpr Boardcore::TimerUtils::Channel BUZZER_CHANNEL =
Boardcore::TimerUtils::Channel::CHANNEL_1;
#ifdef BUZZER_LOW
constexpr float BUZZER_DUTY_CYCLE = 0.05;
#else
constexpr float BUZZER_DUTY_CYCLE = 0.5;
#endif
constexpr uint16_t BUZZER_FREQUENCY = 5000; // [Hz]
constexpr uint16_t BUZZER_TASK_PERIOD = 100; // [ms]
constexpr uint16_t BUZZER_ERROR_PERIOD = 100; // [ms]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment