You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
301 B
14 lines
301 B
7 years ago
|
#pragma once
|
||
|
|
||
|
#include <libopencm3/stm32/timer.h>
|
||
|
|
||
|
struct buzzer {
|
||
|
uint32_t timer;
|
||
|
enum tim_oc_id channel;
|
||
|
};
|
||
|
|
||
|
void buzzer_init(struct buzzer *buzzer);
|
||
|
void buzzer_enable(struct buzzer *buzzer);
|
||
|
void buzzer_disable(struct buzzer *buzzer);
|
||
|
void buzzer_set_freq(struct buzzer *buzzer, uint32_t freq);
|