|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Piezo buzzer tone output with a ChibiOS PWM driver. More...
#include <hal.h>#include "modules/sound/buzzer_arch.h"#include "mcu_periph/gpio.h"#include <BOARD_CONFIG>
Include dependency graph for buzzer_arch.c:Go to the source code of this file.
Macros | |
| #define | BUZZER_PWM_FREQUENCY 1000000 |
| PWM timer counting frequency, 1 us resolution. | |
Functions | |
| void | buzzer_arch_init (void) |
| void | buzzer_arch_tone (uint16_t freq) |
| Play a square wave at freq Hz, 0 for silence. | |
Variables | |
| static PWMConfig | buzzer_pwm_conf |
Piezo buzzer tone output with a ChibiOS PWM driver.
Definition in file buzzer_arch.c.
| #define BUZZER_PWM_FREQUENCY 1000000 |
PWM timer counting frequency, 1 us resolution.
Definition at line 33 of file buzzer_arch.c.
Definition at line 49 of file buzzer_arch.c.
References BUZZER_AF, BUZZER_GPIO, BUZZER_PIN, BUZZER_PWM_CHANNEL, buzzer_pwm_conf, BUZZER_PWMD, foo, and gpio_setup_pin_af().
Referenced by buzzer_tunes_init().
Here is the call graph for this function:
Here is the caller graph for this function:Play a square wave at freq Hz, 0 for silence.
Definition at line 57 of file buzzer_arch.c.
References BUZZER_PWM_CHANNEL, BUZZER_PWM_FREQUENCY, BUZZER_PWMD, and foo.
Referenced by buzzer_tunes_periodic(), buzzer_tunes_play(), and start_next_note().
Here is the caller graph for this function:
|
static |
Definition at line 35 of file buzzer_arch.c.
Referenced by buzzer_arch_init().