rmt_periph.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. #include "soc/soc.h"
  16. const rmt_signal_conn_t rmt_periph_signals = {
  17. .groups = {
  18. [0] = {
  19. .module = PERIPH_RMT_MODULE,
  20. .irq = ETS_RMT_INTR_SOURCE,
  21. .channels = {
  22. [0] = {
  23. .tx_sig = RMT_SIG_OUT0_IDX,
  24. .rx_sig = RMT_SIG_IN0_IDX
  25. },
  26. [1] = {
  27. .tx_sig = RMT_SIG_OUT1_IDX,
  28. .rx_sig = RMT_SIG_IN1_IDX
  29. },
  30. [2] = {
  31. .tx_sig = RMT_SIG_OUT2_IDX,
  32. .rx_sig = RMT_SIG_IN2_IDX
  33. },
  34. [3] = {
  35. .tx_sig = RMT_SIG_OUT3_IDX,
  36. .rx_sig = RMT_SIG_IN3_IDX
  37. },
  38. [4] = {
  39. .tx_sig = RMT_SIG_OUT4_IDX,
  40. .rx_sig = RMT_SIG_IN4_IDX
  41. },
  42. [5] = {
  43. .tx_sig = RMT_SIG_OUT5_IDX,
  44. .rx_sig = RMT_SIG_IN5_IDX
  45. },
  46. [6] = {
  47. .tx_sig = RMT_SIG_OUT6_IDX,
  48. .rx_sig = RMT_SIG_IN6_IDX
  49. },
  50. [7] = {
  51. .tx_sig = RMT_SIG_OUT7_IDX,
  52. .rx_sig = RMT_SIG_IN7_IDX
  53. }
  54. }
  55. }
  56. }
  57. };