Skip to content

Commit 0016c33

Browse files
cuatro: remove beeper (#2100)
1 parent c7cc2de commit 0016c33

File tree

4 files changed

+1
-37
lines changed

4 files changed

+1
-37
lines changed

board/boards/cuatro.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,6 @@ static void cuatro_set_bootkick(BootState state) {
7171
//set_gpio_output(GPIOC, 12, state != BOOT_RESET);
7272
}
7373

74-
static void cuatro_set_siren(bool enabled){
75-
beeper_enable(enabled);
76-
}
77-
7874
static void cuatro_set_amp_enabled(bool enabled){
7975
set_gpio_output(GPIOA, 5, enabled);
8076
}
@@ -133,10 +129,6 @@ static void cuatro_init(void) {
133129
// Clock source
134130
clock_source_init();
135131

136-
// Beeper
137-
set_gpio_alternate(GPIOD, 14, GPIO_AF2_TIM4);
138-
beeper_init();
139-
140132
// Sound codec
141133
cuatro_set_amp_enabled(false);
142134
set_gpio_alternate(GPIOA, 2, GPIO_AF8_SAI4); // SAI4_SCK_B
@@ -170,7 +162,7 @@ board board_cuatro = {
170162
.read_current_mA = cuatro_read_current_mA,
171163
.set_fan_enabled = cuatro_set_fan_enabled,
172164
.set_ir_power = unused_set_ir_power,
173-
.set_siren = cuatro_set_siren,
165+
.set_siren = unused_set_siren,
174166
.set_bootkick = cuatro_set_bootkick,
175167
.read_som_gpio = tres_read_som_gpio,
176168
.set_amp_enabled = cuatro_set_amp_enabled

board/drivers/beeper.h

Lines changed: 0 additions & 26 deletions
This file was deleted.

board/stm32h7/board.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "drivers/fan.h"
1111
#include "stm32h7/llfan.h"
1212
#include "stm32h7/lldac.h"
13-
#include "drivers/beeper.h"
1413
#include "drivers/fake_siren.h"
1514
#include "stm32h7/sound.h"
1615
#include "drivers/clock_source.h"

board/stm32h7/peripherals.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ void peripherals_init(void) {
130130
RCC->APB2ENR |= RCC_APB2ENR_TIM1EN; // clock source timer
131131
RCC->APB1LENR |= RCC_APB1LENR_TIM2EN; // main counter
132132
RCC->APB1LENR |= RCC_APB1LENR_TIM3EN; // fan pwm
133-
RCC->APB1LENR |= RCC_APB1LENR_TIM4EN; // beeper source
134133
RCC->APB1LENR |= RCC_APB1LENR_TIM6EN; // interrupt timer
135134
RCC->APB1LENR |= RCC_APB1LENR_TIM7EN; // DMA trigger timer
136135
RCC->APB2ENR |= RCC_APB2ENR_TIM8EN; // tick timer

0 commit comments

Comments
 (0)