Browse Source

Comment out pin 13 debug in I2S input

dds
PaulStoffregen 5 years ago
parent
commit
bd7aea87e9
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      input_i2s.cpp

+ 3
- 3
input_i2s.cpp View File

update_responsibility = update_setup(); update_responsibility = update_setup();
dma.enable(); dma.enable();
dma.attachInterrupt(isr); dma.attachInterrupt(isr);
pinMode(13, OUTPUT);
//pinMode(13, OUTPUT);
} }


void AudioInputI2S::isr(void) void AudioInputI2S::isr(void)
int16_t *dest_left, *dest_right; int16_t *dest_left, *dest_right;
audio_block_t *left, *right; audio_block_t *left, *right;


digitalWriteFast(13, HIGH);
//digitalWriteFast(13, HIGH);
#if defined(KINETISK) || defined(__IMXRT1052__) || defined(__IMXRT1062__) #if defined(KINETISK) || defined(__IMXRT1052__) || defined(__IMXRT1062__)
daddr = (uint32_t)(dma.TCD->DADDR); daddr = (uint32_t)(dma.TCD->DADDR);
#endif #endif
} while (src < end); } while (src < end);
} }
} }
digitalWriteFast(13, LOW);
//digitalWriteFast(13, LOW);
} }





Loading…
Cancel
Save