Skip to content

Commit 528ff23

Browse files
committed
STM32F411Disco
1 parent 02be492 commit 528ff23

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/AudioBoard.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ static AudioBoard LyratMini{AudioDriverLyratMini, PinsLyratMini};
7171
static AudioBoard NoBoard{NoDriver, NoPins};
7272
/// @ingroup audio_driver
7373
static AudioBoard GenericWM8960{AudioDriverWM8960, NoPins};
74-
74+
#if defined(ARDUINO_GENERIC_F411VETX)
75+
/// @ingroup audio_driver
76+
static AudioBoard STM32F411Disco{AudioDriverCS43l22, PinsSTM32F411Disco};
77+
#endif
7578

7679
}

src/DriverPins.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ class PinsAudioKitAC101Class : public DriverPins {
566566
}
567567
};
568568

569-
#if defined(ARDUINO_ARCH_STM32)
569+
#if defined(ARDUINO_GENERIC_F411VETX)
570570

571571
/**
572572
* @brief Pins for alt AC101 AudioDriver - use the PinsAudioKitAC101 object!
@@ -588,10 +588,12 @@ class PinsSTM32F411DiscoClass : public DriverPins {
588588
addPin(PinFunction::LED, PD13, PinLogic::Output, 2); // orange
589589
addPin(PinFunction::LED, PD14, PinLogic::Output, 3); // red
590590
addPin(PinFunction::LED, PD15, PinLogic::Output, 4); // blue
591-
addPin(PinFunction::PA, PD4, PinLogic::Output, ); // reset pin (active high)
591+
addPin(PinFunction::PA, PD4, PinLogic::Output); // reset pin (active high)
592592
addPin(PinFunction::CODEC_ADC, PC3, PinLogic::Input); // Microphone
593593
}
594-
} PinsSTM32F411Disco;
594+
};
595+
596+
static PinsSTM32F411DiscoClass PinsSTM32F411Disco;
595597

596598
#endif
597599

0 commit comments

Comments
 (0)