/* param base IRTC peripheral base address param compensationValue Compensation value is a 2's complement value. param compensationInterval Compensation interval.  */
void IRTC_SetCoarseCompensation(RTC_Type *base, uint8_t compensationValue, uint8_t compensationInterval)
/* param base IRTC peripheral base address param compensationValue Compensation value is a 2's complement value. param compensationInterval Compensation interval.  */
void IRTC_SetCoarseCompensation(RTC_Type *base, uint8_t compensationValue, uint8_t compensationInterval)
{
    uint16_t reg;
    base->COMPEN = (uint16_t)compensationValue | ((uint16_t)compensationInterval << 8U);
    reg = base->CTRL;
    reg &= ~(uint16_t)RTC_CTRL_FINEEN_MASK;
    reg |= RTC_CTRL_COMP_EN_MASK;
    base->CTRL = reg;
}