/AliOS-Things-master/components/osal_aos/rhino/ |
A D | aos_timer.c | 20 uint32_t ms, bool repeat) in aos_timer_new() argument 27 sys_time_t round = (repeat == false ? 0 : ms); in aos_timer_new() 29 …ret = krhino_timer_dyn_create((ktimer_t **)(timer), "AOS", (timer_cb_t)fn, MS2TICK(ms), MS2TICK(ro… in aos_timer_new() 55 uint32_t ms, bool repeat, bool auto_run) in aos_timer_new_ext() argument 63 sys_time_t round = (repeat == 0) ? 0 : ms; in aos_timer_new_ext() 71 uint32_t ms, uint32_t options) in aos_timer_create() argument 79 round = (options & AOS_TIMER_REPEAT) ? ms : 0; in aos_timer_create() 116 aos_status_t aos_timer_change(aos_timer_t *timer, uint32_t ms) in aos_timer_change() argument 122 ret = krhino_timer_change((ktimer_t *)*timer, MS2TICK(ms), MS2TICK(ms)); in aos_timer_change() 125 aos_status_t aos_timer_change_once(aos_timer_t *timer, uint32_t ms) in aos_timer_change_once() argument [all …]
|
A D | aos_time.c | 52 uint64_t ms = aos_now_ms(); in aos_now_time_str() local 58 time_t actualTime = { ms / 1000 }; in aos_now_time_str() 62 const int milli = ms % 1000; in aos_now_time_str()
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/platform/hal/ |
A D | hal_timer.h | 31 #define __MS_TO_TICKS(ms) hal_sys_timer_ms_to_ticks(ms) argument 43 #define __MS_TO_TICKS(ms) ((ms) * ((uint32_t)CONFIG_SYSTICK_HZ / 1000)) 66 #define MS_TO_TICKS(ms) __MS_TO_TICKS(ms) argument 74 #define MS_TO_HWTICKS(ms) __MS_TO_TICKS(ms) argument 118 uint32_t hal_sys_timer_ms_to_ticks(uint32_t ms); 133 #define MS_TO_FAST_TICKS(ms) ((uint32_t)(ms) * (CONFIG_FAST_SYSTICK_HZ / 1000)) argument 148 int osDelay(uint32_t ms);
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/utils/systimer/ |
A D | module_systimer.c | 60 static timer_wrap_t *setup_timer(int js_cb_ref, long ms, int repeat) in setup_timer() argument 67 t->timer_id = amp_task_timer_action(ms, timer_action, t, repeat); in setup_timer() 125 long ms = (long)duk_get_number(ctx, 1); in native_setTimeout() local 126 timer_wrap_t *t = setup_timer(js_cb_ref, ms, 0); in native_setTimeout() 149 long ms = (long)duk_get_number(ctx, 1); in native_setInterval() local 150 timer_wrap_t *t = setup_timer(js_cb_ref, ms, 1); in native_setInterval() 165 uint32_t ms = 0; in native_sleepMs() local 172 ms = duk_get_int(ctx, 0); in native_sleepMs() 173 amp_debug(MOD_STR, "system delay %d ms", ms); in native_sleepMs() 175 aos_msleep(ms); in native_sleepMs()
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/systimer/ |
A D | module_systimer.c | 70 static timer_wrap_t *setup_timer(JSValue js_cb_ref, long ms, int repeat) in setup_timer() argument 78 t->timer_id = amp_task_timer_action(ms, timer_action, t, repeat, &timer_msg); in setup_timer() 139 long ms; in native_setTimeout() local 148 JS_ToInt32(ctx, &ms, argv[1]); in native_setTimeout() 150 timer_wrap_t *t = setup_timer(js_cb_ref, ms, 0); in native_setTimeout() 167 long ms; in native_setInterval() local 176 JS_ToInt32(ctx, &ms, argv[1]); in native_setInterval() 178 timer_wrap_t *t = setup_timer(js_cb_ref, ms, 1); in native_setInterval() 196 uint32_t ms = 0; in native_sleepMs() local 198 JS_ToInt32(ctx, &ms, argv[0]); in native_sleepMs() [all …]
|
/AliOS-Things-master/components/SDL2/src/timer/unix/ |
A D | SDL_systimer.c | 192 SDL_Delay(Uint32 ms) in SDL_Delay() argument 197 emscripten_sleep(ms); in SDL_Delay() 212 elapsed.tv_sec = ms / 1000; in SDL_Delay() 213 elapsed.tv_nsec = (ms % 1000) * 1000000; in SDL_Delay() 229 if (elapsed >= ms) { in SDL_Delay() 232 ms -= elapsed; in SDL_Delay() 233 tv.tv_sec = ms / 1000; in SDL_Delay() 234 tv.tv_usec = (ms % 1000) * 1000; in SDL_Delay()
|
/AliOS-Things-master/components/SDL2/src/timer/psp/ |
A D | SDL_systimer.c | 80 void SDL_Delay(Uint32 ms) in SDL_Delay() argument 83 if(ms > max_delay) in SDL_Delay() 84 ms = max_delay; in SDL_Delay() 85 sceKernelDelayThreadCB(ms * 1000); in SDL_Delay()
|
/AliOS-Things-master/components/SDL2/src/thread/pthread/ |
A D | SDL_syscond.c | 99 SDL_CondWaitTimeout(SDL_cond * cond, SDL_mutex * mutex, Uint32 ms) in SDL_CondWaitTimeout() argument 114 abstime.tv_nsec += (ms % 1000) * 1000000; in SDL_CondWaitTimeout() 115 abstime.tv_sec += ms / 1000; in SDL_CondWaitTimeout() 119 abstime.tv_sec = delta.tv_sec + (ms / 1000); in SDL_CondWaitTimeout() 120 abstime.tv_nsec = (delta.tv_usec + (ms % 1000) * 1000) * 1000; in SDL_CondWaitTimeout()
|
/AliOS-Things-master/components/amp_adapter/platform/linux/ |
A D | aos_system.c | 27 uint32_t ms; member 267 poll(&rfd, 1, ms); in aos_queue_recv() 323 amp_timer->ms = ms; in aos_timer_create() 367 ts.it_interval.tv_sec = amp_timer->ms / 1000; in aos_timer_start() 376 ts.it_value.tv_sec = amp_timer->ms / 1000; in aos_timer_start() 377 ts.it_value.tv_nsec = (amp_timer->ms % 1000) * 1000000; in aos_timer_start() 446 long long ms; in aos_now_ms() local 449 ms = tv.tv_sec * 1000LL + tv.tv_usec / 1000; in aos_now_ms() 450 return ms; in aos_now_ms() 473 void aos_msleep(uint32_t ms) in aos_msleep() argument [all …]
|
/AliOS-Things-master/components/lwip/lwip2.0.0/core/ |
A D | sys.c | 55 sys_msleep(u32_t ms) in sys_msleep() argument 57 if (ms > 0) { in sys_msleep() 61 sys_arch_sem_wait(&delaysem, ms); in sys_msleep()
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/multimedia/speech/inc/ |
A D | speech_utils.h | 14 #define SPEECH_FRAME_MS_TO_LEN(fs, ms) (( (fs) / 1000 * (ms) )/2) argument 17 #define SPEECH_FRAME_MS_TO_LEN(fs, ms) ( (fs) / 1000 * (ms) )
|
/AliOS-Things-master/components/SDL2/src/stdlib/ |
A D | SDL_malloc.c | 4663 USAGE_ERROR_ACTION(ms, ms); in destroy_mspace() 4679 USAGE_ERROR_ACTION(ms, ms); in mspace_malloc() 4885 USAGE_ERROR_ACTION(ms, ms); in mspace_calloc() 4931 USAGE_ERROR_ACTION(ms, ms); in mspace_memalign() 4944 USAGE_ERROR_ACTION(ms, ms); in mspace_independent_calloc() 4956 USAGE_ERROR_ACTION(ms, ms); in mspace_independent_comalloc() 4973 USAGE_ERROR_ACTION(ms, ms); in mspace_trim() 4985 USAGE_ERROR_ACTION(ms, ms); in mspace_malloc_stats() 4997 USAGE_ERROR_ACTION(ms, ms); in mspace_footprint() 5010 USAGE_ERROR_ACTION(ms, ms); in mspace_max_footprint() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/aos/ |
A D | aos_osdep.c | 352 aos_msleep(ms); in _aos_msleep_os() 355 aos_msleep(ms); in _aos_msleep_os() 357 DelayMs(ms); in _aos_msleep_os() 361 aos_msleep(ms); in _aos_msleep_os() 363 DelayMs(ms); in _aos_msleep_os() 387 aos_msleep(ms); in _aos_mdelay_os() 390 aos_msleep(ms); in _aos_mdelay_os() 392 DelayMs(ms); in _aos_mdelay_os() 396 aos_msleep(ms); in _aos_mdelay_os() 398 DelayMs(ms); in _aos_mdelay_os() [all …]
|
/AliOS-Things-master/hardware/chip/smarth_rv64/smarth_rv64/ |
A D | lib.c | 48 void mdelay(uint32_t ms) in mdelay() argument 50 if (ms == 0) { in mdelay() 54 while (ms--) { in mdelay()
|
/AliOS-Things-master/components/drivers/peripheral/uart/example/ |
A D | uart_example.c | 88 int ms = 0; in uart_read_test() local 105 ms = atoi(argv[2]); in uart_read_test() 136 } while(j < (ms/100)); in uart_read_test() 151 int ms = 0; in uart_echo_test() local 168 ms = atoi(argv[2]); in uart_echo_test() 202 } while(j < (ms/100)); in uart_echo_test()
|
/AliOS-Things-master/components/ulog/src/ |
A D | ulog_utility.c | 45 long long ms = aos_now_ms(); in ulog_format_time() local 53 const int32_t milli = ms % 1000; in ulog_format_time() 59 snprintf(buffer, len, "%4d.%03d", (int)(ms / 1000), (int)(ms % 1000)); in ulog_format_time()
|
/AliOS-Things-master/components/osal_aos/include/aos/ |
A D | kernel.h | 647 aos_status_t aos_queue_recv(aos_queue_t *queue, uint32_t ms, void *msg, size_t *size); 679 uint32_t ms, uint32_t options); 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); 998 void aos_msleep(uint32_t ms); 1251 uint32_t ms, bool repeat); 1267 uint32_t ms, bool repeat, bool autorun);
|
/AliOS-Things-master/components/drivers/peripheral/watchdog/src/ |
A D | wdg_core.c | 31 wdg_dev_handle_t aos_wdg_open (uint32_t id, uint32_t ms) { in aos_wdg_open() argument 44 if (ms < 20) { in aos_wdg_open() 45 ddkc_warn("too smaller timeout value, force set to 20ms\r\n", ms); in aos_wdg_open() 46 ms = 20; in aos_wdg_open() 78 user->timeout = ms; in aos_wdg_open() 278 aos_status_t aos_wdg_timeout_set (wdg_dev_handle_t dev_h, uint32_t ms) { in aos_wdg_timeout_set() argument 290 user->timeout = ms; in aos_wdg_timeout_set()
|
/AliOS-Things-master/hardware/board/haas100/drivers/ |
A D | key.c | 24 long long ms; in key_rising_edge_handle() local 30 ms = aos_now_ms(); in key_rising_edge_handle() 31 press_ms = (uint32_t)(ms - key_falling_ms); in key_rising_edge_handle()
|
/AliOS-Things-master/components/SDL2/src/thread/stdcpp/ |
A D | SDL_syscond.cpp | 118 SDL_CondWaitTimeout(SDL_cond * cond, SDL_mutex * mutex, Uint32 ms) in SDL_CondWaitTimeout() argument 132 if (ms == SDL_MUTEX_MAXWAIT) { in SDL_CondWaitTimeout() 141 std::chrono::duration<Uint32, std::milli>(ms) in SDL_CondWaitTimeout()
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/targets/hal/rtl8721d/ |
A D | wait_api.c | 27 void wait_ms(int ms) in wait_ms() argument 29 DelayUs(ms * 1000); in wait_ms()
|
/AliOS-Things-master/hardware/chip/haas1000/hal/2ndboot/ |
A D | sys.c | 8 void sys_delayms(volatile int ms) in sys_delayms() argument 10 osDelay(ms); in sys_delayms()
|
/AliOS-Things-master/components/py_engine/engine/extmod/ |
A D | utime_mphal.c | 50 mp_int_t ms = mp_obj_get_int(arg); in time_sleep_ms() local 51 if (ms >= 0) { in time_sleep_ms() 52 mp_hal_delay_ms(ms); in time_sleep_ms()
|
/AliOS-Things-master/components/SDL2/src/timer/haiku/ |
A D | SDL_systimer.c | 73 SDL_Delay(Uint32 ms) in SDL_Delay() argument 75 snooze(ms * 1000); in SDL_Delay()
|
/AliOS-Things-master/components/drivers/peripheral/watchdog/include/aos/driver/ |
A D | wdg.h | 32 extern wdg_dev_handle_t aos_wdg_open (uint32_t id, uint32_t ms); 74 extern aos_status_t aos_wdg_timeout_set (wdg_dev_handle_t dev, uint32_t ms);
|