fio_mux.c 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. #include "fio_mux.h"
  2. #include "fiopad_hw.h"
  3. #include "fiopad.h"
  4. #include "fparameters.h"
  5. #include "fassert.h"
  6. FIOPadCtrl iopad_ctrl;
  7. /*****************************************************************************/
  8. /**
  9. * @name: FIOPadSetSpimMux
  10. * @msg: set iopad mux for spim
  11. * @return {*}
  12. * @param {u32} spim_id, instance id of spi
  13. */
  14. void FIOPadSetSpimMux(u32 spim_id)
  15. {
  16. }
  17. /**
  18. * @name: FIOPadSetGpioMux
  19. * @msg: set iopad mux for gpio
  20. * @return {*}
  21. * @param {u32} gpio_id, instance id of gpio
  22. * @param {u32} pin_id, index of pin
  23. */
  24. void FIOPadSetGpioMux(u32 gpio_id, u32 pin_id)
  25. {
  26. }
  27. /**
  28. * @name: FIOPadSetCanMux
  29. * @msg: set iopad mux for can
  30. * @return {*}
  31. * @param {u32} can_id, instance id of can
  32. */
  33. void FIOPadSetCanMux(u32 can_id)
  34. {
  35. }
  36. /**
  37. * @name: FIOPadSetQspiMux
  38. * @msg: set iopad mux for qspi
  39. * @return {*}
  40. * @param {u32} qspi_id, id of qspi instance
  41. * @param {u32} cs_id, id of qspi cs
  42. */
  43. void FIOPadSetQspiMux(u32 qspi_id, u32 cs_id)
  44. {
  45. }
  46. /**
  47. * @name: FIOPadSetPwmMux
  48. * @msg: set iopad mux for pwm
  49. * @return {*}
  50. * @param {u32} pwm_id, id of pwm instance
  51. * @param {u32} pwm_channel, channel of pwm instance
  52. */
  53. void FIOPadSetPwmMux(u32 pwm_id, u32 pwm_channel)
  54. {
  55. }
  56. /**
  57. * @name: FIOPadSetAdcMux
  58. * @msg: set iopad mux for adc
  59. * @return {*}
  60. * @param {u32} adc_id, id of adc instance
  61. * @param {u32} adc_channel, id of adc channel
  62. */
  63. void FIOPadSetAdcMux(u32 adc_id, u32 adc_channel)
  64. {
  65. }
  66. /**
  67. * @name: FIOPadSetMioMux
  68. * @msg: set iopad mux for mio
  69. * @return {*}
  70. * @param {u32} mio_id, instance id of i2c
  71. */
  72. void FIOPadSetMioMux(u32 mio_id)
  73. {
  74. }
  75. /**
  76. * @name: FIOPadSetTachoMux
  77. * @msg: set iopad mux for pwm_in
  78. * @return {*}
  79. * @param {u32} pwm_in_id, instance id of tacho
  80. */
  81. void FIOPadSetTachoMux(u32 pwm_in_id)
  82. {
  83. }
  84. /**
  85. * @name: FIOPadSetUartMux
  86. * @msg: set iopad mux for uart
  87. * @return {*}
  88. * @param {u32} uart_id, instance id of uart
  89. */
  90. void FIOPadSetUartMux(u32 uart_id)
  91. {
  92. }
  93. /**
  94. * @name: FIOPadSetUartMux
  95. * @msg: set iopad mux for i2s
  96. * @return {*}
  97. */
  98. void FIOPadSetI2sMux(void)
  99. {
  100. }
  101. /**
  102. * @name: FIOPadSetSdMux
  103. * @msg: set iopad mux for sd
  104. * @return {*}
  105. */
  106. void FIOPadSetSdMux(u32 sd_id)
  107. {
  108. }
  109. /**
  110. * @name: FIOMuxInit
  111. * @msg: init io mux
  112. * @return {void}
  113. * @note:
  114. */
  115. _WEAK void FIOMuxInit(void)
  116. {
  117. }