145 lines
2.2 KiB
C
145 lines
2.2 KiB
C
|
#include "fio_mux.h"
|
||
|
#include "fiopad_hw.h"
|
||
|
#include "fiopad.h"
|
||
|
#include "fparameters.h"
|
||
|
#include "fassert.h"
|
||
|
|
||
|
FIOPadCtrl iopad_ctrl;
|
||
|
|
||
|
/*****************************************************************************/
|
||
|
/**
|
||
|
* @name: FIOPadSetSpimMux
|
||
|
* @msg: set iopad mux for spim
|
||
|
* @return {*}
|
||
|
* @param {u32} spim_id, instance id of spi
|
||
|
*/
|
||
|
void FIOPadSetSpimMux(u32 spim_id)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @name: FIOPadSetGpioMux
|
||
|
* @msg: set iopad mux for gpio
|
||
|
* @return {*}
|
||
|
* @param {u32} gpio_id, instance id of gpio
|
||
|
* @param {u32} pin_id, index of pin
|
||
|
*/
|
||
|
void FIOPadSetGpioMux(u32 gpio_id, u32 pin_id)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @name: FIOPadSetCanMux
|
||
|
* @msg: set iopad mux for can
|
||
|
* @return {*}
|
||
|
* @param {u32} can_id, instance id of can
|
||
|
*/
|
||
|
void FIOPadSetCanMux(u32 can_id)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @name: FIOPadSetQspiMux
|
||
|
* @msg: set iopad mux for qspi
|
||
|
* @return {*}
|
||
|
* @param {u32} qspi_id, id of qspi instance
|
||
|
* @param {u32} cs_id, id of qspi cs
|
||
|
*/
|
||
|
void FIOPadSetQspiMux(u32 qspi_id, u32 cs_id)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @name: FIOPadSetPwmMux
|
||
|
* @msg: set iopad mux for pwm
|
||
|
* @return {*}
|
||
|
* @param {u32} pwm_id, id of pwm instance
|
||
|
* @param {u32} pwm_channel, channel of pwm instance
|
||
|
*/
|
||
|
void FIOPadSetPwmMux(u32 pwm_id, u32 pwm_channel)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @name: FIOPadSetAdcMux
|
||
|
* @msg: set iopad mux for adc
|
||
|
* @return {*}
|
||
|
* @param {u32} adc_id, id of adc instance
|
||
|
* @param {u32} adc_channel, id of adc channel
|
||
|
*/
|
||
|
void FIOPadSetAdcMux(u32 adc_id, u32 adc_channel)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @name: FIOPadSetMioMux
|
||
|
* @msg: set iopad mux for mio
|
||
|
* @return {*}
|
||
|
* @param {u32} mio_id, instance id of i2c
|
||
|
*/
|
||
|
void FIOPadSetMioMux(u32 mio_id)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @name: FIOPadSetTachoMux
|
||
|
* @msg: set iopad mux for pwm_in
|
||
|
* @return {*}
|
||
|
* @param {u32} pwm_in_id, instance id of tacho
|
||
|
*/
|
||
|
void FIOPadSetTachoMux(u32 pwm_in_id)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @name: FIOPadSetUartMux
|
||
|
* @msg: set iopad mux for uart
|
||
|
* @return {*}
|
||
|
* @param {u32} uart_id, instance id of uart
|
||
|
*/
|
||
|
void FIOPadSetUartMux(u32 uart_id)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @name: FIOPadSetUartMux
|
||
|
* @msg: set iopad mux for i2s
|
||
|
* @return {*}
|
||
|
*/
|
||
|
void FIOPadSetI2sMux(void)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @name: FIOPadSetSdMux
|
||
|
* @msg: set iopad mux for sd
|
||
|
* @return {*}
|
||
|
*/
|
||
|
void FIOPadSetSdMux(u32 sd_id)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @name: FIOMuxInit
|
||
|
* @msg: init io mux
|
||
|
* @return {void}
|
||
|
* @note:
|
||
|
*/
|
||
|
_WEAK void FIOMuxInit(void)
|
||
|
{
|
||
|
|
||
|
}
|