|
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>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.
Referenced by buzzer_arch_tone().
| void buzzer_arch_init | ( | void | ) |
Definition at line 49 of file buzzer_arch.c.
References BUZZER_AF, BUZZER_GPIO, BUZZER_PIN, BUZZER_PWM_CHANNEL, buzzer_pwm_conf, BUZZER_PWMD, and gpio_setup_pin_af().
Referenced by buzzer_tunes_init().
| void buzzer_arch_tone | ( | uint16_t | freq | ) |
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, and BUZZER_PWMD.
Referenced by buzzer_tunes_periodic(), start_next_note(), and tune_start().
|
static |
Definition at line 35 of file buzzer_arch.c.
Referenced by buzzer_arch_init().