i2s_periph.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright 2020 Espressif Systems (Shanghai) PTE LTD
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #include "soc/i2s_periph.h"
  15. #include "soc/gpio_sig_map.h"
  16. /*
  17. Bunch of constants for every I2S peripheral: GPIO signals, irqs, hw addr of registers etc
  18. */
  19. const i2s_signal_conn_t i2s_periph_signal[SOC_I2S_NUM] = {
  20. {
  21. // TODO ESP32-H2 IDF-2098
  22. // .o_bck_in_sig = I2S0O_BCK_IN_IDX,
  23. // .o_ws_in_sig = I2S0O_WS_IN_IDX,
  24. // .o_bck_out_sig = I2S0O_BCK_OUT_IDX,
  25. // .o_ws_out_sig = I2S0O_WS_OUT_IDX,
  26. // .o_data_out_sig = I2S0O_SD_OUT_IDX,
  27. // .i_bck_in_sig = I2S0I_BCK_OUT_IDX,
  28. // .i_ws_in_sig = I2S0I_WS_OUT_IDX,
  29. // .i_bck_out_sig = I2S0I_BCK_IN_IDX,
  30. // .i_ws_out_sig = I2S0I_WS_IN_IDX,
  31. // .i_data_in_sig = I2S0I_SD_IN_IDX,
  32. .irq = ETS_I2S1_INTR_SOURCE,
  33. .module = PERIPH_I2S1_MODULE,
  34. }
  35. };