Source code for the Trusted Boot Module.
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.
 
 
 
tbm-mcu/include/buzzer.h

13 lines
301 B

#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);