Skip to content

Commit 7933db3

Browse files
committed
Added RG_AUDIO_USE_BUZZER_PIN to odroid-go's config.h
ODROID-GO's config.h's missing is now to be an exhaustive reference and it was missing.
1 parent c34e29b commit 7933db3

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

components/retro-go/drivers/audio/buzzer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Note that there are some restrictions on how high the PWM frequency can be, and
3333

3434
#include "rg_system.h" // include configuration from components/retro-go/targets/*/config.h
3535

36-
#ifdef RG_AUDIO_USE_BUZZER_PIN
36+
#if RG_AUDIO_USE_BUZZER_PIN
3737
#include "rg_audio.h"
3838

3939
#ifndef ESP_PLATFORM

components/retro-go/targets/mrgc-g32/config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
****************************************************************************/
4848
#define RG_AUDIO_USE_INT_DAC 0 // 0 = Disable, 1 = GPIO25, 2 = GPIO26, 3 = Both
4949
#define RG_AUDIO_USE_EXT_DAC 1 // 0 = Disable, 1 = Enable
50+
#define RG_AUDIO_USE_BUZZER_PIN 0 // See drivers/audio/buzzer.c for details
5051
#define RG_GPIO_SND_I2S_BCK GPIO_NUM_26
5152
#define RG_GPIO_SND_I2S_WS GPIO_NUM_25
5253
#define RG_GPIO_SND_I2S_DATA GPIO_NUM_19

components/retro-go/targets/odroid-go/config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
****************************************************************************/
4848
#define RG_AUDIO_USE_INT_DAC 3 // 0 = Disable, 1 = GPIO25, 2 = GPIO26, 3 = Both
4949
#define RG_AUDIO_USE_EXT_DAC 1 // 0 = Disable, 1 = Enable
50+
#define RG_AUDIO_USE_BUZZER_PIN 0 // See drivers/audio/buzzer.c for details
5051
#define RG_GPIO_SND_I2S_BCK GPIO_NUM_4
5152
#define RG_GPIO_SND_I2S_WS GPIO_NUM_12
5253
#define RG_GPIO_SND_I2S_DATA GPIO_NUM_15

0 commit comments

Comments
 (0)