/* param base ENC peripheral base address param enable Enables or disables the watchdog  */
void ENC_EnableWatchdog(ENC_Type *base, bool enable)
/* param base ENC peripheral base address param enable Enables or disables the watchdog  */
void ENC_EnableWatchdog(ENC_Type *base, bool enable)
{
    uint16_t tmp16 = base->CTRL & (uint16_t)(~(ENC_CTRL_W1C_FLAGS | ENC_CTRL_WDE_MASK));
    if (enable)
    {
        tmp16 |= ENC_CTRL_WDE_MASK;
    }
    base->CTRL = tmp16;
}