/* Configures the LPSPI peripheral chip select polarity. 
This function takes in the desired peripheral chip select (Pcs) and it's corresponding desired polarity and configures the Pcs signal to operate with the desired characteristic. */
static void LPSPI_SetOnePcsPolarity(LPSPI_Type *base, lpspi_which_pcs_t pcs, lpspi_pcs_polarity_config_t activeLowOrHigh)
/* Configures the LPSPI peripheral chip select polarity. 
This function takes in the desired peripheral chip select (Pcs) and it's corresponding desired polarity and configures the Pcs signal to operate with the desired characteristic. */
static void LPSPI_SetOnePcsPolarity(LPSPI_Type *base, lpspi_which_pcs_t pcs, lpspi_pcs_polarity_config_t activeLowOrHigh)
{
    uint32_t cfgr1Value = 0;
    cfgr1Value = base->CFGR1 & ~(1UL << (LPSPI_CFGR1_PCSPOL_SHIFT + (uint32_t)pcs));
    base->CFGR1 = cfgr1Value | ((uint32_t)activeLowOrHigh << (LPSPI_CFGR1_PCSPOL_SHIFT + (uint32_t)pcs));
}