Home
last modified time | relevance | path

Searched refs:timer_obj (Results 1 – 3 of 3) sorted by relevance

/AliOS-Things-master/components/py_engine/modules/driver/
A Dtimer.c72 driver_timer_obj_t *timer_obj = m_new_obj(driver_timer_obj_t); in driver_timer_make_new() local
73 if (!timer_obj) { in driver_timer_make_new()
77 memset(timer_obj, 0, sizeof(driver_timer_obj_t)); in driver_timer_make_new()
79 timer_obj->base.type = &driver_timer_type; in driver_timer_make_new()
80 timer_obj->port = port; in driver_timer_make_new()
81 timer_obj->dev.port = port; in driver_timer_make_new()
83 return MP_OBJ_FROM_PTR(timer_obj); in driver_timer_make_new()
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dmachine_timer.c47 machine_timer_obj_t *timer_obj = m_new_obj(machine_timer_obj_t); in machine_timer_make_new() local
48 if (!timer_obj) { in machine_timer_make_new()
52 memset(timer_obj, 0, sizeof(machine_timer_obj_t)); in machine_timer_make_new()
54 timer_obj->base.type = &machine_timer_type; in machine_timer_make_new()
55 timer_obj->port = port; in machine_timer_make_new()
56 timer_obj->dev.port = port; in machine_timer_make_new()
58 return MP_OBJ_FROM_PTR(timer_obj); in machine_timer_make_new()
/AliOS-Things-master/kernel/rhino/
A Dk_timer.c110 ktimer_t *timer_obj; in krhino_timer_dyn_create() local
114 timer_obj = krhino_mm_alloc(sizeof(ktimer_t)); in krhino_timer_dyn_create()
115 if (timer_obj == NULL) { in krhino_timer_dyn_create()
119 ret = timer_create(timer_obj, name, cb, first, round, arg, auto_run, K_OBJ_DYN_ALLOC); in krhino_timer_dyn_create()
121 krhino_mm_free(timer_obj); in krhino_timer_dyn_create()
125 *timer = timer_obj; in krhino_timer_dyn_create()

Completed in 4 milliseconds