rmt_periph.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. // http://www.apache.org/licenses/LICENSE-2.0
  7. //
  8. // Unless required by applicable law or agreed to in writing, software
  9. // distributed under the License is distributed on an "AS IS" BASIS,
  10. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. // See the License for the specific language governing permissions and
  12. // limitations under the License.
  13. #include "soc/rmt_periph.h"
  14. #include "soc/gpio_sig_map.h"
  15. const rmt_signal_conn_t rmt_periph_signals = {
  16. .groups = {
  17. [0] = {
  18. .module = PERIPH_RMT_MODULE,
  19. .irq = ETS_RMT_INTR_SOURCE,
  20. .channels = {
  21. [0] = {
  22. .tx_sig = RMT_SIG_OUT0_IDX,
  23. .rx_sig = -1
  24. },
  25. [1] = {
  26. .tx_sig = RMT_SIG_OUT1_IDX,
  27. .rx_sig = -1
  28. },
  29. [2] = {
  30. .tx_sig = -1,
  31. .rx_sig = RMT_SIG_IN0_IDX
  32. },
  33. [3] = {
  34. .tx_sig = -1,
  35. .rx_sig = RMT_SIG_IN1_IDX
  36. },
  37. }
  38. }
  39. }
  40. };