Home
last modified time | relevance | path

Searched refs:tick (Results 1 – 25 of 27) sorted by relevance

12

/AliOS-Things-master/hardware/chip/haas1000/drivers/platform/hal/
A Dhal_timer.h35 #define __TICKS_TO_MS(tick) hal_sys_timer_ticks_to_ms(tick) argument
37 #define __TICKS_TO_US(tick) hal_sys_timer_ticks_to_us(tick) argument
47 #define __TICKS_TO_MS(tick) ((tick) / ((uint32_t)CONFIG_SYSTICK_HZ / 1000))
49 #define __TICKS_TO_US(tick) ((tick) * 1000 / ((uint32_t)CONFIG_SYSTICK_HZ / 1000))
70 #define TICKS_TO_MS(tick) __TICKS_TO_MS(tick) argument
72 #define TICKS_TO_US(tick) __TICKS_TO_US(tick) argument
78 #define HWTICKS_TO_MS(tick) __TICKS_TO_MS(tick) argument
80 #define HWTICKS_TO_US(tick) __TICKS_TO_US(tick) argument
139 #define FAST_TICKS_TO_MS(tick) ((uint32_t)(tick) / (CONFIG_FAST_SYSTICK_HZ / 1000)) argument
141 #define FAST_TICKS_TO_US(tick) ((uint32_t)(tick) * 10 / (CONFIG_FAST_SYSTICK_HZ / 1000 / 100)) argument
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/aos/
A Dsoc_impl.c44 uint32_t tick; in soc_hr_hw_cnt_get() local
47 tick = RTIM_GetCount(TIM); in soc_hr_hw_cnt_get()
49 return tick; in soc_hr_hw_cnt_get()
54 uint32_t tick; in soc_lr_hw_cnt_get() local
57 tick = RTIM_GetCount(TIM); in soc_lr_hw_cnt_get()
59 return tick; in soc_lr_hw_cnt_get()
/AliOS-Things-master/components/mbedtls/library/
A Dtiming.c151 #warning OpenBSD does not allow access to tick register using software version instead
157 unsigned long tick; in mbedtls_timing_hardclock() local
158 asm volatile( "rdpr %%tick, %0;" : "=&r" (tick) ); in mbedtls_timing_hardclock()
159 return( tick ); in mbedtls_timing_hardclock()
172 unsigned long tick; in mbedtls_timing_hardclock() local
174 asm volatile( "mov %%g1, %0" : "=r" (tick) ); in mbedtls_timing_hardclock()
175 return( tick ); in mbedtls_timing_hardclock()
/AliOS-Things-master/components/SDL2/src/timer/
A DSDL_timer.c108 Uint32 tick, now, interval, delay; in SDL_TimerThread() local
148 tick = SDL_GetTicks(); in SDL_TimerThread()
154 if ((Sint32)(tick-current->scheduled) < 0) { in SDL_TimerThread()
156 delay = (current->scheduled - tick); in SDL_TimerThread()
172 current->scheduled = tick + interval; in SDL_TimerThread()
189 interval = (now - tick); in SDL_TimerThread()
/AliOS-Things-master/solutions/amp_demo/
A DREADME.md13 - 系统tick定时器正常运行
14 即helloworld_demo这个示例运行,代码系统的**任务调度**、**tick调度**以及**串口打印功能**已经OK。
60 board_tick_init(); // tick板级初始化,实现在具体board目录内
79 对于helloworld功能比较简单,一般需要tick和uart的初始化即可;而对于复杂的app,即需要初始化的模块则按照实际情况来增加,对应实现在具体board中添加,如:
136 其中系统能够正常打印代表uart功能正常;能够循环1S打印代表tick中断以及任务切换功能正常。
247 helloworld_demo虽然代码较少,但是其完成了一个最小系统需要的基本功能,包括:内核启动、任务切换、tick中断,以及串口输出。一般作为单板移植的基本solution来参考对接;
/AliOS-Things-master/solutions/helloworld_demo/
A DREADME.md16 - 系统tick定时器正常运行
17 即helloworld_demo这个示例运行,代码系统的**任务调度**、**tick调度**以及**串口打印功能**已经OK。
63 board_tick_init(); // tick板级初始化,实现在具体board目录内
82 对于helloworld功能比较简单,一般需要tick和uart的初始化即可;而对于复杂的app,即需要初始化的模块则按照实际情况来增加,对应实现在具体board中添加,如:
139 其中系统能够正常打印代表uart功能正常;能够循环1S打印代表tick中断以及任务切换功能正常。
246 helloworld_demo虽然代码较少,但是其完成了一个最小系统需要的基本功能,包括:内核启动、任务切换、tick中断,以及串口输出。一般作为单板移植的基本solution来参考对接;
/AliOS-Things-master/solutions/linkkit_genie_demo/
A DREADME.md16 - 系统tick定时器正常运行
17 即helloworld_demo这个示例运行,代码系统的**任务调度**、**tick调度**以及**串口打印功能**已经OK。
63 board_tick_init(); // tick板级初始化,实现在具体board目录内
82 对于helloworld功能比较简单,一般需要tick和uart的初始化即可;而对于复杂的app,即需要初始化的模块则按照实际情况来增加,对应实现在具体board中添加,如:
139 其中系统能够正常打印代表uart功能正常;能够循环1S打印代表tick中断以及任务切换功能正常。
246 helloworld_demo虽然代码较少,但是其完成了一个最小系统需要的基本功能,包括:内核启动、任务切换、tick中断,以及串口输出。一般作为单板移植的基本solution来参考对接;
/AliOS-Things-master/components/linkkit/iot_coap/server/
A DCoAPMessage.c72 uint64_t tick; in CoAPMessageList_add() local
93 tick = HAL_UptimeMs(); in CoAPMessageList_add()
96 node->timeout = node->timeout_val + tick; in CoAPMessageList_add()
99 node->timeout = node->timeout_val * 4 + tick; in CoAPMessageList_add()
605 uint64_t tick = HAL_UptimeMs(); in Check_timeout() local
615 if ((node->retrans_count > 0) || (node->timeout >= tick)) { in Check_timeout()
650 uint64_t tick = HAL_UptimeMs(); in Retansmit() local
655 if (NULL == node || node->timeout > tick) { in Retansmit()
672 node->timeout = tick + COAP_ACK_TIMEOUT; in Retansmit()
674 node->timeout = tick + node->timeout_val; in Retansmit()
[all …]
/AliOS-Things-master/components/minilibc/include/
A Dtime.h33 #define TICK2MSEC(tick) ((tick)* (1000 / CLOCKS_PER_SEC)) argument
/AliOS-Things-master/hardware/chip/rtl872xd/csi_driver/timer/
A Dtimer.c78 uint32_t tick; in csi_timer_get_remaining_value() local
83 tick = RTIM_GetCount(TIM); in csi_timer_get_remaining_value()
85 time_us = load - (uint32_t)((float)tick * 1000000 / 32768); in csi_timer_get_remaining_value()
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/tftp/
A Dtftp_client.c28 uint16_t tick; member
65 tftp_state.tick++; in tftp_tmr()
73 if ((pstate->tick - pstate->last_tick) > (TFTP_TIMEOUT_MSECS / TFTP_TIMER_MSECS)) { in tftp_tmr()
103 pstate->last_tick = pstate->tick; in recv()
266 pstate->tick = 0; in tftp_client_get()
/AliOS-Things-master/hardware/board/haas100/config/
A Dk_config.c64 tick_t tick = krhino_next_sleep_ticks_get(); in krhino_idle_hook() local
65 sleep_ms = krhino_ticks_to_ms(tick); in krhino_idle_hook()
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dmodipc.c93 mp_uint_t tick = mp_obj_get_int(args[1]);
97 mp_int_t ret = krhino_buf_queue_recv(ipc_obj->queue, tick , msg, psize);
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmodipc.c93 mp_uint_t tick = mp_obj_get_int(args[1]);
97 mp_int_t ret = krhino_buf_queue_recv(ipc_obj->queue, tick , msg, psize);
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmodipc.c93 mp_uint_t tick = mp_obj_get_int(args[1]);
97 mp_int_t ret = krhino_buf_queue_recv(ipc_obj->queue, tick , msg, psize);
/AliOS-Things-master/hardware/board/haaseduk1/config/
A Dk_config.c59 tick_t tick = krhino_next_sleep_ticks_get(); in krhino_idle_hook() local
60 sleep_ms = krhino_ticks_to_ms(tick); in krhino_idle_hook()
/AliOS-Things-master/components/osal_aos/
A DREADME.md276 AliOS Things操作系统内核使用tick作为时间片轮转调度以及延迟操作的时间度量单位,tick是实现定时触发功能的基础。tick计数发生在每次时钟中断处理的过程,时钟中断是定时产生的,系统在…
279 定时器会从应用程序设置的初始时间开始,以tick为计时单位进行倒计时,当计数值减为0时调用回调函数执行。回调函数执行完毕,则定时器停止。
284 …运行的定时器会被挂接到g_timer_head链表,定时器任务循环的从g_timer_head链表中取出时间最近一次的定时器,通过当前tick计数和该定时器的超时tick数来判断定时时间是否到,如…
329 每秒tick数: 默认100,如需修改,在yaml中修改RHINO_CONFIG_TICKS_PER_SECOND配置
336 时间片: 默认50个tick,如需修改,在yaml中修改RHINO_CONFIG_TIME_SLICE_DEFAULT配置
430 - tick是内核调度和延迟操作的基础,所以RHINO_CONFIG_TICKS_PER_SECOND参数必须配置,而定时器是基于tick实现的软件定时器功能,可以通过配置RHINO_CONFIG_…
/AliOS-Things-master/solutions/auto_demo/
A Dauto_app.c30 #define FAST_TICKS_TO_US(tick) ((uint32_t)(tick) * 10 / (CONFIG_FAST_SYSTICK_HZ / 1000 / 100)) argument
/AliOS-Things-master/solutions/flower_demo/
A Dflower_app.c28 #define FAST_TICKS_TO_US(tick) ((uint32_t)(tick) * 10 / (CONFIG_FAST_SYSTICK_HZ / 1000 / 100)) argument
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/hardware/onewire/
A Dmodule_onewire.c34 #define FAST_TICKS_TO_US(tick) ((uint32_t)(tick) * 10 / (CONFIG_FAST_SYSTICK_HZ / 1000 / 100)) argument
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/onewire/
A Dmodule_onewire.c38 #define FAST_TICKS_TO_US(tick) ((uint32_t)(tick) * 10 / (CONFIG_FAST_SYSTICK_HZ / 1000 / 100)) argument
/AliOS-Things-master/solutions/miniapp_agent_demo/
A DREADME.md17 - 系统tick定时器正常运行
/AliOS-Things-master/components/linkkit/dev_model/alcs/
A Dalcs_server.c780 int tick; in on_svr_auth_timer() local
789 tick = HAL_UptimeMs(); in on_svr_auth_timer()
793 if (node->sessionId && node->heart_time + default_heart_expire < tick) { in on_svr_auth_timer()
A Dalcs_client.c617 int tick = HAL_UptimeMs(); in on_client_auth_timer() local
626 if (node->heart_time + node->interval > tick) { in on_client_auth_timer()
/AliOS-Things-master/components/ble_host/include/
A Dble_os_port.h180 uint32_t k_tick2ms(uint32_t tick);

Completed in 35 milliseconds

12