Browse Source

T4B2: Pin6->Pin7

dds
Frank 5 years ago
parent
commit
8ff0ebbc0e
No account linked to committer's email address
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      output_i2s.cpp

+ 5
- 0
output_i2s.cpp View File

block_right_1st = NULL; block_right_1st = NULL;


config_i2s(); config_i2s();
#if defined(__IMXRT1052__)
CORE_PIN6_CONFIG = 3; //1:TX_DATA0 CORE_PIN6_CONFIG = 3; //1:TX_DATA0
#elif defined(__IMXRT1062__)
CORE_PIN7_CONFIG = 3; //1:TX_DATA0
#endif


dma.TCD->SADDR = i2s_tx_buffer; dma.TCD->SADDR = i2s_tx_buffer;
dma.TCD->SOFF = 2; dma.TCD->SOFF = 2;

Loading…
Cancel
Save