Parcourir la source

Add comments about I2S FIFO reset bits (was an issue on I2S test fixture)

dds
PaulStoffregen il y a 11 ans
Parent
révision
8ab67fe42b
2 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. +1
    -0
      input_i2s.cpp
  2. +1
    -0
      output_i2s.cpp

+ 1
- 0
input_i2s.cpp Voir le fichier

//delayMicroseconds(500); //delayMicroseconds(500);
//digitalWriteFast(3, LOW); //digitalWriteFast(3, LOW);


// TODO: should we set & clear the I2S_RCSR_SR bit here?
AudioOutputI2S::config_i2s(); AudioOutputI2S::config_i2s();


CORE_PIN13_CONFIG = PORT_PCR_MUX(4); // pin 13, PTC5, I2S0_RXD0 CORE_PIN13_CONFIG = PORT_PCR_MUX(4); // pin 13, PTC5, I2S0_RXD0

+ 1
- 0
output_i2s.cpp Voir le fichier

block_left_1st = NULL; block_left_1st = NULL;
block_right_1st = NULL; block_right_1st = NULL;


// TODO: should we set & clear the I2S_TCSR_SR bit here?
config_i2s(); config_i2s();
CORE_PIN22_CONFIG = PORT_PCR_MUX(6); // pin 22, PTC1, I2S0_TXD0 CORE_PIN22_CONFIG = PORT_PCR_MUX(6); // pin 22, PTC1, I2S0_TXD0



Chargement…
Annuler
Enregistrer