Browse Source

DMAMEM, aligned

dds
Frank 4 years ago
parent
commit
d8133e1634
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      output_pt8211_2.cpp

+ 2
- 2
output_pt8211_2.cpp View File

uint16_t AudioOutputPT8211_2::block_right_offset = 0; uint16_t AudioOutputPT8211_2::block_right_offset = 0;
bool AudioOutputPT8211_2::update_responsibility = false; bool AudioOutputPT8211_2::update_responsibility = false;
#if defined(AUDIO_PT8211_OVERSAMPLING) #if defined(AUDIO_PT8211_OVERSAMPLING)
static uint32_t i2s_tx_buffer[AUDIO_BLOCK_SAMPLES*4];
DMAMEM __attribute__((aligned(32))) static uint32_t i2s_tx_buffer[AUDIO_BLOCK_SAMPLES*4];
#else #else
static uint32_t i2s_tx_buffer[AUDIO_BLOCK_SAMPLES];
DMAMEM __attribute__((aligned(32))) static uint32_t i2s_tx_buffer[AUDIO_BLOCK_SAMPLES];
#endif #endif
DMAChannel AudioOutputPT8211_2::dma(false); DMAChannel AudioOutputPT8211_2::dma(false);



Loading…
Cancel
Save