mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-27 08:46:01 -04:00
WM8731: Add Codec abstraction.
This commit is contained in:
parent
37c058354e
commit
bec626e29f
6 changed files with 81 additions and 36 deletions
|
@ -33,6 +33,9 @@ using namespace hackrf::one;
|
|||
#include "touch_adc.hpp"
|
||||
#include "audio.hpp"
|
||||
|
||||
#include "wm8731.hpp"
|
||||
using wolfson::wm8731::WM8731;
|
||||
|
||||
#include "cpld_update.hpp"
|
||||
|
||||
namespace portapack {
|
||||
|
@ -61,6 +64,8 @@ ClockManager clock_manager {
|
|||
i2c0, clock_generator
|
||||
};
|
||||
|
||||
WM8731 audio_codec_wm8731 { i2c0, 0x1a };
|
||||
|
||||
ReceiverModel receiver_model;
|
||||
|
||||
TemperatureLogger temperature_logger;
|
||||
|
@ -154,7 +159,7 @@ void init() {
|
|||
|
||||
portapack::io.init();
|
||||
|
||||
audio::init();
|
||||
audio::init(&audio_codec_wm8731);
|
||||
|
||||
clock_manager.enable_first_if_clock();
|
||||
clock_manager.enable_second_if_clock();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue