/* Change Logs: Date Author Notes  勤为本 first version 获取指定SPI模块的基地址 @SPIx SPI模块的编号  */
void* ls1c_spi_get_base(unsigned char SPIx)
/* Change Logs: Date Author Notes  勤为本 first version 获取指定SPI模块的基地址 @SPIx SPI模块的编号  */
void* ls1c_spi_get_base(unsigned char SPIx)
{
    void *base = NULL;
    switch (SPIx)
    {
        case LS1C_SPI_0:
            base = (void *)LS1C_SPI0_BASE;
            break;
        case LS1C_SPI_1:
            base = (void *)LS1C_SPI1_BASE;
            break;
        default:
            base = NULL;
            break;
    }
    return base;
}