/* brief Restores the LPSPI peripheral to reset state. Note that this function sets all registers to reset state. As a result, the LPSPI module can't work after calling this API. param base LPSPI peripheral address.  */
void LPSPI_Reset(LPSPI_Type *base)
/* brief Restores the LPSPI peripheral to reset state. Note that this function sets all registers to reset state. As a result, the LPSPI module can't work after calling this API. param base LPSPI peripheral address.  */
void LPSPI_Reset(LPSPI_Type *base)
{
    base->CR |= LPSPI_CR_RST_MASK;
    base->CR |= LPSPI_CR_RRF_MASK | LPSPI_CR_RTF_MASK;
    base->CR = 0x00U;
}