module/gtimer/src/mod_gtimer.c
static int enable(fwk_id_t dev_id)
{
    struct dev_ctx *ctx;
    int status;

    status = fwk_module_check_call(dev_id);
    if (status != FWK_SUCCESS)
        return status;

    ctx = ctx_table + fwk_id_get_element_idx(dev_id);

    ctx->hw_timer->P_CTL &= ~CNTBASE_P_CTL_IMASK;
    ctx->hw_timer->P_CTL |=  CNTBASE_P_CTL_ENABLE;

    return FWK_SUCCESS;
}
/*
 * Functions fulfilling the Timer module's driver interface
 */
Functions fulfilling the Timer module's driver interface
Functions fulfilling the Timer module ' s driver interface
static int enable(fwk_id_t dev_id)
{
    struct dev_ctx *ctx;
    int status;
    status = fwk_module_check_call(dev_id);
    if (status != FWK_SUCCESS)
        return status;
    ctx = ctx_table + fwk_id_get_element_idx(dev_id);
    ctx->hw_timer->P_CTL &= ~CNTBASE_P_CTL_IMASK;
    ctx->hw_timer->P_CTL |=  CNTBASE_P_CTL_ENABLE;
    return FWK_SUCCESS;
}
static int enable ( fwk_id_t dev_id ) { struct dev_ctx * ctx ; int status ; status = fwk_module_check_call ( dev_id ) ; if ( status != FWK_SUCCESS ) return status ; ctx = ctx_table + fwk_id_get_element_idx ( dev_id ) ; ctx -> hw_timer -> P_CTL &= ~ CNTBASE_P_CTL_IMASK ; ctx -> hw_timer -> P_CTL |= CNTBASE_P_CTL_ENABLE ; return FWK_SUCCESS ; }
Functions fulfilling the Timer module's driver interface
Functions fulfilling the Timer module ' s driver interface