Skip to content

Commit

Permalink
Raw I2S running
Browse files Browse the repository at this point in the history
  • Loading branch information
sreckamp committed Feb 1, 2024
1 parent 007b2d2 commit 0ca0144
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions benchmark/interface/Application/Audio/RawI2SWaveSink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ namespace Audio
__HAL_LINKDMA(&hsai_BlockB1, hdmatx, handle_GPDMA2_Channel2);
MX_RawSAIQueue_Config();
HAL_DMAEx_List_SetCircularMode(&RawSAIQueue);
HAL_DMAEx_List_LinkQ(&handle_GPDMA2_Channel2, &RawSAIQueue);

state = STOPPED;
return GetState();
Expand Down
6 changes: 4 additions & 2 deletions benchmark/interface/Application/ResourceManager.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "Audio/HeadphoneWaveSink.hpp"
//#include "Audio/HeadphoneWaveSink.hpp"
#include "Audio/RawI2SWaveSink.hpp"
#include "ResourceManager.hpp"
#include "usart.h"

Expand Down Expand Up @@ -53,7 +54,8 @@ void ResourceManager::InitSingleton(TX_BYTE_POOL &byte_pool)
}

ResourceManager::ResourceManager(TX_BYTE_POOL &byte_pool): task_runner(new Tasks::TaskRunner(byte_pool)),
wave_sink(new Audio::HeadphoneWaveSink(*task_runner, byte_pool)),
// wave_sink(new Audio::HeadphoneWaveSink(*task_runner, byte_pool)),
wave_sink(new Audio::RawI2SWaveSink(*task_runner, byte_pool)),
file_system(new IO::FileSystem(*task_runner)),
dut(new Test::DeviceUnderTest(*task_runner, new IO::Uart(byte_pool, &huart3)))
{
Expand Down

0 comments on commit 0ca0144

Please sign in to comment.