Ejemplo n.º 1
0
int lpc_hwtimer_init(void)
{
    _timer0.info = &_info;
    _timer0.ops  = &_ops;

    rt_device_hwtimer_register(&_timer0, "timer0", LPC_TIM0);

    return 0;
}
Ejemplo n.º 2
0
int rt1052_hw_hwtimer_init(void)
{
    int ret = RT_EOK;

    GPT_timer1.info = &rt1052_hwtimer_info;
    GPT_timer1.ops  = &rt1052_hwtimer_ops;

    rt_device_hwtimer_register(&GPT_timer1, "_timer", GPT1);

    return ret;
}