/* param base SPI peripheral address. return return configurations which contain datawidth and SSEL numbers. return data type is a pointer of spi_config_t.  */
void* SPI_GetConfig(SPI_Type *base)
/* param base SPI peripheral address. return return configurations which contain datawidth and SSEL numbers. return data type is a pointer of spi_config_t.  */
void* SPI_GetConfig(SPI_Type *base)
{
    uint32_t instance;
    instance = SPI_GetInstance(base);
    return &g_configs[instance];
}