arduino-audio-driver
Loading...
Searching...
No Matches
STM32F723Disco.h
Go to the documentation of this file.
1#pragma once
7#include "AudioBoard.h"
8
9namespace audio_driver {
10
17 public:
19 // add i2c codec pins: scl, sda, port, frequency
20 // ST's own reference driver runs this bus in Fast Mode (400kHz, their
21 // DISCOVERY_I2Cx_TIMING = 0x40912732) and is reliably clean across cold
22 // power-on, unlike our previous 100kHz Standard Mode default - testing
23 // whether the STM32duino-computed Standard Mode timing was marginal.
24 addI2C(PinFunction::CODEC, PB8, PB9, -1, 400000);
25 // add i2s pins: mclk, bck, ws, data_out, data_in (SAI2, block A = out, block B = in)
26 addI2S(PinFunction::CODEC, PI4, PI5, PI7, PI6, PG10);
27
28 // add other pins
29 addPin(PinFunction::KEY, PA0, PinLogic::InputActiveHigh); // user button (also this MCU's WKUP pin - must stay an input)
31 addPin(PinFunction::LED, PB1, PinLogic::Output, 1); // green
32 }
33};
34
37
40
41} // namespace audio_driver
Defitintion for audio board pins and an audio driver.
Definition AudioBoard.h:13
All pins for i2s, spi, i2c and other pins.
Definition DriverDeviceInfo.h:20
bool addI2C(InfoI2C pin)
Definition DriverDeviceInfo.h:56
bool addI2S(InfoI2S pin)
Definition DriverDeviceInfo.h:26
bool addPin(InfoGPIO pin)
Definition DriverDeviceInfo.h:86
Pins the STM32F723E-Discovery board using the WM8994 codec.
Definition STM32F723Disco.h:16
PinsSTM32F723DiscoClass()
Definition STM32F723Disco.h:18
static AudioDriverWM8994Class AudioDriverWM8994
Definition AudioDriver.h:2180
static PinsSTM32F723DiscoClass PinsSTM32F723Disco
Definition STM32F723Disco.h:36
static AudioBoard STM32F723Disco
Definition STM32F723Disco.h:39
Namespace for audio driver components.
Definition AudioBoard.h:5