/* Change Logs: Date Author Notes  ArdaFu first version  */
void HW_SetPinMux(rt_uint8_t port, rt_uint8_t pin, rt_uint8_t mux_type)
/* Change Logs: Date Author Notes  ArdaFu first version  */
void HW_SetPinMux(rt_uint8_t port, rt_uint8_t pin, rt_uint8_t mux_type)
{
    rt_uint32_t addr = HW_IOCON(port, pin);
    rt_uint32_t val = inl(addr);
    val &= ~7UL;
    val |= mux_type;
    outl(val ,addr);
}