/AliOS-Things-master/kernel/rhino/ |
A D | k_timer.c | 99 cb.timer = timer; in krhino_timer_del() 136 cb.timer = timer; in krhino_timer_dyn_del() 149 cb.timer = timer; in krhino_timer_start() 161 cb.timer = timer; in krhino_timer_stop() 185 cb.timer = timer; in krhino_timer_change() 199 cb.timer = timer; in krhino_timer_arg_change() 212 cb.timer = timer; in krhino_timer_arg_change_auto() 235 timer->cb(timer, timer->timer_cb_arg); in timer_cb_proc() 239 timer->remain = timer->round_ticks; in timer_cb_proc() 254 ktimer_t *timer = cb->timer; in cmd_proc() local [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/csi_driver/timer/ |
A D | timer.c | 13 uint32_t tid = timer->dev.idx; in csi_gtimer_timeout_handler() 17 if (timer->callback != NULL) { in csi_gtimer_timeout_handler() 18 timer->callback(timer,timer->arg); in csi_gtimer_timeout_handler() 24 if(!timer) in csi_timer_init() 33 timer->dev.idx = idx; in csi_timer_init() 51 if(timer && timer->priv) { in csi_timer_uninit() 52 free(timer->priv); in csi_timer_uninit() 53 timer->priv = NULL; in csi_timer_uninit() 113 timer->callback = callback; in csi_timer_attach_callback() 114 timer->arg = arg; in csi_timer_attach_callback() [all …]
|
/AliOS-Things-master/components/osal_aos/rhino/ |
A D | aos_timer.c | 24 if (timer == NULL) { in aos_timer_new() 38 if (timer == NULL) { in aos_timer_is_valid() 59 if (timer == NULL) { in aos_timer_new_ext() 75 if (timer == NULL) { in aos_timer_create() 88 if (timer == NULL || *timer == NULL) { in aos_timer_free() 93 *timer = NULL; in aos_timer_free() 100 CHECK_HANDLE(timer); in aos_timer_start() 110 CHECK_HANDLE(timer); in aos_timer_stop() 120 CHECK_HANDLE(timer); in aos_timer_change() 129 CHECK_HANDLE(timer); in aos_timer_change_once() [all …]
|
/AliOS-Things-master/components/SDL2/src/timer/ |
A D | SDL_timer.c | 45 SDL_Timer *timer; member 93 prev->next = timer; in SDL_AddTimerInternal() 97 timer->next = curr; in SDL_AddTimerInternal() 242 SDL_Timer *timer; in SDL_TimerQuit() local 282 SDL_Timer *timer; in SDL_AddTimer() local 294 if (timer) { in SDL_AddTimer() 299 if (timer) { in SDL_AddTimer() 302 timer = (SDL_Timer *)SDL_malloc(sizeof(*timer)); in SDL_AddTimer() 303 if (!timer) { in SDL_AddTimer() 317 SDL_free(timer); in SDL_AddTimer() [all …]
|
/AliOS-Things-master/components/csi/csi2/include/drv/ |
A D | timer.h | 26 void (*callback)(csi_timer_t *timer, void *arg); 37 csi_error_t csi_timer_init(csi_timer_t *timer, uint32_t idx); 44 void csi_timer_uninit(csi_timer_t *timer); 52 csi_error_t csi_timer_start(csi_timer_t *timer, uint32_t timeout_us); 59 void csi_timer_stop(csi_timer_t *timer); 66 uint32_t csi_timer_get_remaining_value(csi_timer_t *timer); 73 uint32_t csi_timer_get_load_value(csi_timer_t *timer); 82 bool csi_timer_is_running(csi_timer_t *timer); 98 void csi_timer_detach_callback(csi_timer_t *timer); 105 csi_error_t csi_timer_enable_pm(csi_timer_t *timer); [all …]
|
/AliOS-Things-master/components/linkkit/infra/ |
A D | infra_timer.c | 11 void iotx_time_start(iotx_time_t *timer) in iotx_time_start() argument 13 if (!timer) { in iotx_time_start() 17 timer->time = HAL_UptimeMs(); in iotx_time_start() 50 uint32_t utils_time_is_expired(iotx_time_t *timer) in utils_time_is_expired() argument 54 if (!timer) { in utils_time_is_expired() 65 if ((cur_time - timer->time) < (UINT32_MAX / 2)) { in utils_time_is_expired() 72 void iotx_time_init(iotx_time_t *timer) in iotx_time_init() argument 74 if (!timer) { in iotx_time_init() 78 timer->time = 0; in iotx_time_init() 83 if (!timer) { in utils_time_countdown_ms() [all …]
|
A D | infra_httpc.c | 218 iotx_time_t timer; in _http_recv() local 220 iotx_time_init(&timer); in _http_recv() 306 iotx_time_t timer; in _http_get_response_body() local 308 iotx_time_init(&timer); in _http_get_response_body() 382 iotx_time_t timer; in _http_parse_response_header() local 387 iotx_time_init(&timer); in _http_parse_response_header() 520 iotx_time_t timer; in httpclient_recv_response() local 522 iotx_time_init(&timer); in httpclient_recv_response() 607 iotx_time_t timer; in httpclient_common() local 614 iotx_time_init(&timer); in httpclient_common() [all …]
|
/AliOS-Things-master/components/ble_host/bt_host/port/aos/ |
A D | aos_port.c | 320 timer->handler = handle; in k_timer_init() 321 timer->args = args; in k_timer_init() 322 timer->timeout = 0; in k_timer_init() 324 krhino_timer_create(&timer->timer, "AOS", (timer_cb_t)(timer->handler), in k_timer_init() 337 timer->timeout = timeout; in k_timer_start() 340 ret = krhino_timer_stop(&timer->timer); in k_timer_start() 346 ret = krhino_timer_change(&timer->timer, krhino_ms_to_ticks(timeout), 0); in k_timer_start() 352 ret = krhino_timer_start(&timer->timer); in k_timer_start() 368 if (!timer->timeout) { in k_timer_stop() 373 ret = krhino_timer_stop(&timer->timer); in k_timer_stop() [all …]
|
/AliOS-Things-master/components/mqtt/MQTTClient-C/ |
A D | MQTTClient.c | 344 Timer timer; in MQTTYield() local 346 TimerInit(&timer); in MQTTYield() 368 Timer timer; in MQTTRun() local 371 TimerInit(&timer); in MQTTRun() 379 cycle(c, &timer); in MQTTRun() 521 Timer timer; in MQTTSubscribeWithResults() local 532 TimerInit(&timer); in MQTTSubscribeWithResults() 576 Timer timer; in MQTTUnsubscribe() local 587 TimerInit(&timer); in MQTTUnsubscribe() 620 Timer timer; in MQTTPublish() local [all …]
|
A D | MQTTLinux.c | 20 void TimerInit(Timer* timer) in TimerInit() argument 22 timer->end_time = (struct timeval){0, 0}; in TimerInit() 25 char TimerIsExpired(Timer* timer) in TimerIsExpired() argument 29 timersub(&timer->end_time, &now, &res); in TimerIsExpired() 34 void TimerCountdownMS(Timer* timer, unsigned int timeout) in TimerCountdownMS() argument 39 timeradd(&now, &interval, &timer->end_time); in TimerCountdownMS() 43 void TimerCountdown(Timer* timer, unsigned int timeout) in TimerCountdown() argument 48 timeradd(&now, &interval, &timer->end_time); in TimerCountdown() 52 int TimerLeftMS(Timer* timer) in TimerLeftMS() argument 56 timersub(&timer->end_time, &now, &res); in TimerLeftMS()
|
/AliOS-Things-master/kernel/rhino/include/ |
A D | k_timer.h | 35 typedef void (*timer_cb_t)(void *timer, void *arg); 64 ktimer_t *timer; member 92 kstat_t krhino_timer_create(ktimer_t *timer, const name_t *name, timer_cb_t cb, 102 kstat_t krhino_timer_del(ktimer_t *timer); 118 kstat_t krhino_timer_dyn_create(ktimer_t **timer, const name_t *name, timer_cb_t cb, 127 kstat_t krhino_timer_dyn_del(ktimer_t *timer); 137 kstat_t krhino_timer_start(ktimer_t *timer); 146 kstat_t krhino_timer_stop(ktimer_t *timer); 158 kstat_t krhino_timer_change(ktimer_t *timer, tick_t first, tick_t round); 169 kstat_t krhino_timer_arg_change_auto(ktimer_t *timer, void *arg); [all …]
|
/AliOS-Things-master/components/drivers/peripheral/timer/ |
A D | README.md | 1 @page timer timer 3 **[更正文档](https://gitee.com/alios-things/timer/edit/master/README.md)**      **[… 11 * /dev/timer[CONFIG_TIMER_NUM - 1] 29 │ │ └── timer.h #Timer HAL API申明 63 兼容POSIX标准的open接口。其中参数*pathname*为*/dev/timer*加硬件定时器外设id,例如*/dev/timer0*。 135 - timer: master # helloworld_demo中引入timer组件 144 aos install timer 148 上述命令执行成功后,组件源码则被下载到了./components/drivers/peripheral/timer路径中。 152 在timer组件的package.yaml中添加[example示例代码](https://gitee.com/alios-things/timer/tree/master/example): 182 vfs timer test success, ret:0
|
/AliOS-Things-master/components/linkkit/wifi_provision/dev_bind/ |
A D | awss_timer.c | 10 int awss_stop_timer(void *timer) in awss_stop_timer() argument 12 if (timer == NULL) in awss_stop_timer() 14 HAL_Timer_Stop(timer); in awss_stop_timer() 15 HAL_Timer_Delete(timer); in awss_stop_timer()
|
/AliOS-Things-master/components/linkkit/include/linkkit/infra/ |
A D | infra_timer.h | 14 void iotx_time_start(iotx_time_t *timer); 20 uint32_t utils_time_is_expired(iotx_time_t *timer); 22 void iotx_time_init(iotx_time_t *timer); 24 void utils_time_countdown_ms(iotx_time_t *timer, uint32_t millisecond);
|
/AliOS-Things-master/components/amp_adapter/platform/linux/ |
A D | aos_system.c | 24 timer_t timer; member 327 *timer = amp_timer; in aos_timer_create() 332 void aos_timer_free(aos_timer_t *timer) in aos_timer_free() argument 338 if (timer == NULL) { in aos_timer_free() 342 amp_timer = (osal_timer_inner_t *)*timer; in aos_timer_free() 347 ret = timer_delete(amp_timer->timer); in aos_timer_free() 353 int aos_timer_start(aos_timer_t *timer) in aos_timer_start() argument 359 if (timer == NULL) { in aos_timer_start() 363 amp_timer = (osal_timer_inner_t *)*timer; in aos_timer_start() 382 int aos_timer_stop(aos_timer_t *timer) in aos_timer_stop() argument [all …]
|
/AliOS-Things-master/components/uvoice/internal/ |
A D | uvoice_alios.h | 411 return aos_timer_change(timer, internal_ms); in os_timer_change() 414 static inline int os_timer_start(os_timer_t timer) in os_timer_start() argument 416 return aos_timer_start(timer); in os_timer_start() 419 static inline int os_timer_stop(os_timer_t timer) in os_timer_stop() argument 421 return aos_timer_stop(timer); in os_timer_stop() 427 aos_timer_t *timer = snd_zalloc(sizeof(aos_timer_t), AFM_MAIN); in os_timer_new() local 428 if (!timer) in os_timer_new() 431 snd_free(timer); in os_timer_new() 435 return timer; in os_timer_new() 438 static inline void os_timer_free(os_timer_t timer) in os_timer_free() argument [all …]
|
/AliOS-Things-master/components/osal_aos/include/aos/ |
A D | kernel.h | 678 aos_status_t aos_timer_create(aos_timer_t *timer, void (*fn)(void *, void *), void *arg, 686 void aos_timer_free(aos_timer_t *timer); 695 aos_status_t aos_timer_start(aos_timer_t *timer); 704 aos_status_t aos_timer_stop(aos_timer_t *timer); 717 aos_status_t aos_timer_change(aos_timer_t *timer, uint32_t ms); 730 aos_status_t aos_timer_change_once(aos_timer_t *timer, uint32_t ms); 740 bool aos_timer_is_valid(aos_timer_t *timer); 1250 aos_status_t aos_timer_new(aos_timer_t *timer, void (*fn)(void *, void *), void *arg, 1266 aos_status_t aos_timer_new_ext(aos_timer_t *timer, void (*fn)(void *, void *), void *arg,
|
/AliOS-Things-master/components/linkkit/wrappers/os/ |
A D | HAL_OS_rhino.c | 383 int HAL_Timer_Delete(void *timer) in HAL_Timer_Delete() argument 385 CHECK_PARAM(timer, -1); in HAL_Timer_Delete() 392 if (cur == timer) { in HAL_Timer_Delete() 411 int HAL_Timer_Start(void *timer, int ms) in HAL_Timer_Start() argument 413 CHECK_PARAM(timer, -1); in HAL_Timer_Start() 415 if (timer == NULL) { in HAL_Timer_Start() 422 if (cur == timer) { in HAL_Timer_Start() 435 int HAL_Timer_Stop(void *timer) in HAL_Timer_Stop() argument 437 CHECK_PARAM(timer, -1); in HAL_Timer_Stop() 439 if (timer == NULL) { in HAL_Timer_Stop() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/aos/ |
A D | aos_osdep.c | 701 aos_timer_stop(&xTimer->timer); in _aos_timerDelete() 702 aos_timer_free(&xTimer->timer); in _aos_timerDelete() 715 if(!aos_timer_stop(&xTimer->timer)) in _aos_timerStop() 726 ret = aos_timer_change_once(timer, ms); in _aos_timer_change_no_repeat() 728 ret = aos_timer_start(timer); in _aos_timer_change_no_repeat() 753 ret = aos_timer_start(&xTimer->timer); in _aos_timerStart() 760 return !aos_timer_start(&xTimer->timer); in _aos_timerStartFromISR() 766 return !aos_timer_stop(&xTimer->timer); in _aos_timerStopFromISR() 772 (u32)aos_timer_stop(&xTimer->timer); in _aos_timerResetFromISR() 783 (u32)aos_timer_stop(&xTimer->timer); in _aos_timerChangePeriodFromISR() [all …]
|
/AliOS-Things-master/components/amp_adapter/platform/linux/peripheral/ |
A D | aos_hal_timer.c | 24 timer_t *timer = aos_malloc(sizeof(timer_t)); in aos_hal_timer_init() local 33 if (timer_create(CLOCK_MONOTONIC, &ent, timer) != 0) { in aos_hal_timer_init() 34 aos_free(timer); in aos_hal_timer_init() 38 tim->priv = timer; in aos_hal_timer_init()
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/ |
A D | lpn.c | 220 k_delayed_work_cancel(&lpn->timer); in clear_friendship() 277 k_delayed_work_submit(&lpn->timer, FRIEND_REQ_WAIT); in friend_req_sent() 280 k_delayed_work_submit(&lpn->timer, in friend_req_sent() 344 k_delayed_work_submit(&lpn->timer, in req_sent() 347 k_delayed_work_submit(&lpn->timer, in req_sent() 440 k_delayed_work_cancel(&lpn->timer); in bt_mesh_lpn_set() 458 k_delayed_work_cancel(&lpn->timer); in friend_response_received() 528 k_delayed_work_cancel(&lpn->timer); in bt_mesh_lpn_friend_offer() 760 k_delayed_work_submit(&lpn->timer, in lpn_timeout() 794 k_delayed_work_submit(&lpn->timer, in lpn_timeout() [all …]
|
/AliOS-Things-master/components/linkkit/wrappers/platform/os/ |
A D | HAL_OS_yoc.c | 616 int HAL_Timer_Delete(void *timer) in HAL_Timer_Delete() argument 618 CHECK_PARAM(timer, -1); in HAL_Timer_Delete() 625 if (cur == timer) { in HAL_Timer_Delete() 644 int HAL_Timer_Start(void *timer, int ms) in HAL_Timer_Start() argument 646 CHECK_PARAM(timer, -1); in HAL_Timer_Start() 648 if (timer == NULL) { in HAL_Timer_Start() 655 if (cur == timer) { in HAL_Timer_Start() 668 int HAL_Timer_Stop(void *timer) in HAL_Timer_Stop() argument 670 CHECK_PARAM(timer, -1); in HAL_Timer_Stop() 672 if (timer == NULL) { in HAL_Timer_Stop() [all …]
|
/AliOS-Things-master/components/lwip/lwip2.0.0/core/ipv6/ |
A D | mld6.c | 170 group->timer = 0; /* Not running */ in mld6_new_group() 276 group->timer = 0; /* stopped */ in mld6_input() 465 if (group->timer > 0) { in mld6_tmr() 466 group->timer--; in mld6_tmr() 467 if (group->timer == 0) { in mld6_tmr() 509 ((group->timer == 0) || (maxresp < group->timer)))) { in mld6_delayed_report() 510 group->timer = maxresp; in mld6_delayed_report()
|
/AliOS-Things-master/components/linkkit/include/linkkit/wrappers/ |
A D | wrappers_os.h | 50 int HAL_Timer_Start(void *timer, int ms); 52 int HAL_Timer_Stop(void *timer); 54 int HAL_Timer_Delete(void *timer);
|
/AliOS-Things-master/components/uservice/src/ |
A D | event_svr.c | 86 struct event_param *timer = aos_malloc(sizeof(struct event_param)); in process_rpc() local 87 if (timer == NULL) in process_rpc() 90 timer->timeout = aos_now_ms() + param->timeout; in process_rpc() 91 timer->event_id = param->event_id; in process_rpc() 92 timer->data = param->data; in process_rpc() 96 if (timer->timeout < node->timeout) in process_rpc() 99 dlist_add_tail(&timer->next, &node->next); in process_rpc()
|