MCPcopy Create free account
hub / github.com/SmingHub/Sming / writeFixedValues

Function writeFixedValues

samples/Basic_Audio/app/application.cpp:92–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90#ifdef GENERATE_FIXED_VALUES
91
92void writeFixedValues()
93{
94 i2s_buffer_info_t info;
95 while(i2s_dma_write(&info, UINT_MAX)) {
96 memset(info.samples, 0, info.size);
97 // for(unsigned i = 0; i < info.size / sizeof(i2s_sample_t); ++i) {
98 // info.samples[i] = fixedSampleValue;
99 // }
100 }
101}
102
103#else
104

Callers 1

fillBuffersFunction · 0.85

Calls 1

i2s_dma_writeFunction · 0.50

Tested by

no test coverage detected