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