/* Set clock divider for SDC peripheral */ void Chip_SDC_SetClockDiv(LPC_SDC_T *pSDC, uint8_t div) { uint32_t temp; temp = (pSDC->CLOCK & (~SDC_CLOCK_CLKDIV_BITMASK)); pSDC->CLOCK = temp | (SDC_CLOCK_CLKDIV(div)); writeDelay(); }
/* Set clock divider for SDC peripheral */ void IP_SDC_SetClockDiv(IP_SDC_001_Type *pSDC, uint8_t div) { pSDC->CLOCK &= (~SDC_CLOCK_CLKDIV_BITMASK) & SDC_CLOCK_BITMASK; pSDC->CLOCK |= SDC_CLOCK_CLKDIV(div); writeDelay(); }