![]() |
Da Vinci Firmware 1
Firmware for the DaVinci-M rocket avionics board.
|
Implementation of the PWM buzzer driver. More...

Go to the source code of this file.
Macros | |
| #define | TIMER_CLOCK_FREQ 240000000UL |
| The input clock frequency to the timer peripheral. | |
| #define | TIMER_PRESCALER 2400 |
| A fixed prescaler to bring the timer frequency into a usable range. | |
Functions | |
| void | buzzer_init (buzzer_t *bz, TIM_HandleTypeDef *htim, uint32_t channel) |
| Initializes the buzzer object and its associated timer hardware. | |
| void | musica_maestro (buzzer_t *bz, const note_t *partition, uint16_t melody_length) |
| Plays a melody by iterating through an array of notes. | |
Variables | |
| buzzer_t | buzzer |
| Global instance of the buzzer object. | |
Implementation of the PWM buzzer driver.
Definition in file buzzer.c.
| #define TIMER_CLOCK_FREQ 240000000UL |