Home
last modified time | relevance | path

Searched refs:period (Results 1 – 25 of 83) sorted by relevance

1234

/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/
A Dstr-two-way.h97 size_t *period) in __rtl_critical_factorization() argument
148 *period = p; in __rtl_critical_factorization()
188 *period = p; in __rtl_critical_factorization()
245 j += period; in __rtl_two_way_short_needle()
246 memory = needle_len - period; in __rtl_two_way_short_needle()
277 j += period; in __rtl_two_way_short_needle()
341 if (memory && shift < period) in __rtl_two_way_long_needle()
346 shift = needle_len - period; in __rtl_two_way_long_needle()
369 j += period; in __rtl_two_way_long_needle()
370 memory = needle_len - period; in __rtl_two_way_long_needle()
[all …]
/AliOS-Things-master/components/drivers/peripheral/pwm/src/
A Dpwm.c47 if (l_attr.period > AOS_MAX_PERIOD) { in aos_pwm_set_attr()
49 l_attr.period = AOS_MAX_PERIOD; in aos_pwm_set_attr()
51 if (l_attr.duty_cycle > l_attr.period) { in aos_pwm_set_attr()
53 l_attr.duty_cycle = l_attr.period; in aos_pwm_set_attr()
55 if (l_attr.period == pwm->period && in aos_pwm_set_attr()
66 pwm->period = l_attr.period; in aos_pwm_set_attr()
84 attr->period = pwm->period; in aos_pwm_get_attr()
115 pwm->period = 0; in dev_pwm_put()
143 pwm->period = 0; in aos_pwm_register()
A Dpwm_csi.c30 uint32_t period; in pwm_csi_apply() local
34 period = attr->period / 1000; in pwm_csi_apply()
37 period, duty_cycle, (csi_pwm_polarity_t)attr->polarity); in pwm_csi_apply()
/AliOS-Things-master/components/drivers/peripheral/watchdog/example/
A Dwdg_example.c10 int vfs_wdg_test(int count, int period) in vfs_wdg_test() argument
22 usleep(period * 1000); in vfs_wdg_test()
38 int period = argc > 2 ? atoi(argv[2]) : 200; in wdg_reload_test() local
41 printf("watchdog comp reload test count:%d, period:%d ms\r\n", count, period); in wdg_reload_test()
43 ret = vfs_wdg_test(count, period); in wdg_reload_test()
59 int period = argc > 2 ? atoi(argv[2]) : 200; in aos_wdg_reload_test() local
63 printf("watchdog comp reload test count:%d, period:%d ms\r\n", count, period); in aos_wdg_reload_test()
/AliOS-Things-master/components/py_engine/tests/pyb/
A Dtimer.py7 tim = Timer(4, prescaler=100, period=200)
9 print(tim.period())
12 tim.period(400)
13 print(tim.period())
/AliOS-Things-master/components/debug/src/
A Ddebug_cpuusage.c28 uint32_t period; member
229 uint32_t period = 0; in cpuusage_statistics() local
246 period = param->period; in cpuusage_statistics()
248 stat_count = total / period; in cpuusage_statistics()
266 status = krhino_task_sleep(period * RHINO_CONFIG_TICKS_PER_SECOND / 1000); in cpuusage_statistics()
350 static struct statistics_param param = {.period = 0, .total = 0}; in cpuusage_cmd()
361 param.period = atoi(argv[argv_index]); in cpuusage_cmd()
362 if (param.period == 0) { in cpuusage_cmd()
402 if (param.period == 0) { in cpuusage_cmd()
403 param.period = 1000; in cpuusage_cmd()
[all …]
/AliOS-Things-master/components/drivers/peripheral/i2c/example/
A Di2c_example.c12 …char *tx_buffer, uint32_t tx_cnt, char *rx_buffer, uint32_t rx_cnt, uint32_t loop, uint32_t period) in vfs_i2c_test() argument
70 aos_msleep(period <= 50 ? 50 : period); in vfs_i2c_test()
90 aos_msleep(period <= 50 ? 50 : period); in vfs_i2c_test()
99 …char *tx_buffer, uint32_t tx_cnt, char *rx_buffer, uint32_t rx_cnt, uint32_t loop, uint32_t period) in aos_i2c_test() argument
127 aos_msleep(period <= 50 ? 50 : period); in aos_i2c_test()
143 aos_msleep(period <= 50 ? 50 : period); in aos_i2c_test()
222 …char *tx_buffer, uint32_t tx_cnt, char *rx_buffer, uint32_t rx_cnt, uint32_t loop, uint32_t period) in aos_i2c_mem_test() argument
250 aos_msleep(period <= 50 ? 50 : period); in aos_i2c_mem_test()
266 aos_msleep(period <= 50 ? 50 : period); in aos_i2c_mem_test()
/AliOS-Things-master/components/drivers/peripheral/pwm/example/
A Daos_pwm_example.c26 uint32_t channel, period, duty_cycle, polarity, enabled, duration; in aos_pwm_cli_cmd() local
35 period = strtoul(argv[2], NULL, 0); in aos_pwm_cli_cmd()
45 attr.period = period; in aos_pwm_cli_cmd()
60 printf("period %u ns\r\n", attr.period); in aos_pwm_cli_cmd()
/AliOS-Things-master/components/littlevgl/src/lv_misc/
A Dlv_task.c199 new_task->period = DEF_PERIOD; in lv_task_create_basic()
223 lv_task_t * lv_task_create(lv_task_cb_t task_cb, uint32_t period, lv_task_prio_t prio, void * user_… in lv_task_create() argument
230 lv_task_set_period(new_task, period); in lv_task_create()
292 void lv_task_set_period(lv_task_t * task, uint32_t period) in lv_task_set_period() argument
294 task->period = period; in lv_task_set_period()
303 task->last_run = lv_tick_get() - task->period - 1; in lv_task_ready()
358 if(elp >= task->period) { in lv_task_exec()
A Dlv_task.h64 uint32_t period; /**< How often the task should run */ member
109 lv_task_t * lv_task_create(lv_task_cb_t task_xcb, uint32_t period, lv_task_prio_t prio, void * user…
136 void lv_task_set_period(lv_task_t * task, uint32_t period);
/AliOS-Things-master/hardware/chip/rtl872xd/hal/hal_test/timer/
A Dtimer_test.c37 timer_dev.config.period = TIMER_PERIOD_US_TEST1; in hal_timer_test()
49 printf("step1: set timer period to %d us, and check the period !\n", timer_dev.config.period); in hal_timer_test()
58 period_us_cur = timer_dev.config.period; in hal_timer_test()
120 timer_conf.period = TIMER_PERIOD_US_TEST2; in timer_handler()
137 period_us_cur = timer_conf.period; in timer_handler()
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dmachine_sw_timer.c28 mp_uint_t period; member
41 mp_printf(print, "period=%d, ", self->period); in machine_soft_timer_print()
111 self->period = (mp_uint_t)args[ARG_period].u_int; in machine_soft_timer_init_helper()
114 … mp_int_t status = aos_timer_create(self->timerId, machine_soft_timer_isr, self->arg, self->period, in machine_soft_timer_init_helper()
139 STATIC mp_obj_t machine_soft_timer_period(mp_obj_t self_in, mp_obj_t period) in machine_soft_timer_period() argument
146 self->period = mp_obj_get_int(period); in machine_soft_timer_period()
149 mp_int_t ret = aos_timer_change(self->timerId, self->period); in machine_soft_timer_period()
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmachine_sw_timer.c54 mp_uint_t period; member
66 mp_printf(print, "period=%d, ", self->period); in machine_soft_timer_print()
138 self->period = (uint32_t)args[ARG_period].u_int; in machine_soft_timer_init_helper()
144 self->period, in machine_soft_timer_init_helper()
167 STATIC mp_obj_t machine_soft_timer_period(mp_obj_t self_in, mp_obj_t period) { in machine_soft_timer_period() argument
173 self->period = mp_obj_get_int(period); in machine_soft_timer_period()
176 int32_t ret = aos_timer_change(&self->timerId, self->period); in machine_soft_timer_period()
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmachine_sw_timer.c54 mp_uint_t period; member
66 mp_printf(print, "period=%d, ", self->period); in machine_soft_timer_print()
138 self->period = (uint32_t)args[ARG_period].u_int; in machine_soft_timer_init_helper()
144 self->period, in machine_soft_timer_init_helper()
167 STATIC mp_obj_t machine_soft_timer_period(mp_obj_t self_in, mp_obj_t period) { in machine_soft_timer_period() argument
173 self->period = mp_obj_get_int(period); in machine_soft_timer_period()
176 int32_t ret = aos_timer_change(&self->timerId, self->period); in machine_soft_timer_period()
/AliOS-Things-master/components/amp_adapter/platform/linux/peripheral/
A Daos_hal_timer.c53 ts.it_interval.tv_sec = tim->config.period / 1000000; in aos_hal_timer_start()
54 ts.it_interval.tv_nsec = (tim->config.period % 1000000) * 1000; in aos_hal_timer_start()
62 ts.it_value.tv_sec = tim->config.period / 1000000; in aos_hal_timer_start()
63 ts.it_value.tv_nsec = (tim->config.period % 1000000) * 1000; in aos_hal_timer_start()
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/
A Daccess.c82 int period; in bt_mesh_model_pub_period_get() local
88 switch (mod->pub->period >> 6) { in bt_mesh_model_pub_period_get()
91 period = K_MSEC((mod->pub->period & BIT_MASK(6)) * 100); in bt_mesh_model_pub_period_get()
95 period = K_SECONDS(mod->pub->period & BIT_MASK(6)); in bt_mesh_model_pub_period_get()
99 period = K_SECONDS((mod->pub->period & BIT_MASK(6)) * 10); in bt_mesh_model_pub_period_get()
103 period = K_MINUTES((mod->pub->period & BIT_MASK(6)) * 10); in bt_mesh_model_pub_period_get()
114 return period; in bt_mesh_model_pub_period_get()
121 bt_u32_t elapsed, period; in next_period() local
124 if (!period) { in next_period()
132 if (elapsed > period) { in next_period()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/hal/
A Dhw.c45 us2tick(tim->config.period), us2tick(tim->config.period), tim, 0);
49 us2tick(tim->config.period), 0, tim, 0);
/AliOS-Things-master/components/amp_adapter/platform/aos/peripheral/
A Daos_hal_timer.c78 alarm.period = tim->config.period; in aos_hal_timer_start()
137 alarm.period = para.period; in aos_hal_timer_para_chg()
/AliOS-Things-master/hardware/chip/haas1000/aos_driver/pwm/
A Dpwm.c101 uint32_t period; in haas1000_pwm_apply() local
105 period = attr->period; in haas1000_pwm_apply()
108 period, duty_cycle, attr->polarity); in haas1000_pwm_apply()
/AliOS-Things-master/components/py_engine/tests/haas/HaaS100/python-apps/driver/timer/
A Dmain.py7 tim0.init(period=1000000, mode=TIMER.PERIODIC, callback=cb)
13 tim1.init(period=1000000, mode=TIMER.ONE_SHOT, callback=lambda t:print('timer_test_log2222'))
/AliOS-Things-master/components/py_engine/tests/haas/HaaSEdu/python-apps/driver/timer/
A Dmain.py7 tim0.init(period=1000000, mode=TIMER.PERIODIC, callback=cb)
13 tim1.init(period=1000000, mode=TIMER.ONE_SHOT, callback=lambda t:print('timer_test_log2222'))
/AliOS-Things-master/components/drivers/peripheral/timer/src/
A Dtimer_dev.c60 if (!alarm || !alarm->cb || !alarm->period) { in timer_device_ioctl()
62 alarm, alarm ? alarm->cb: NULL, alarm ? alarm->period : 0); in timer_device_ioctl()
70 config->period = alarm->period; in timer_device_ioctl()
118 alarm->period = config->period; in timer_device_ioctl()
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/targets/hal/rtl8721d/
A Dpwmout_api.c140 obj->period = 0x10000 * (prescaler + 1) / 40; in pwmout_init()
231 obj->pulse = (percent * obj->period); in pwmout_write()
246 if (obj->period > 0) { in pwmout_read()
247 value = (float)obj->pulse / (float)obj->period; in pwmout_read()
291 obj->period = us; in pwmout_period_us()
/AliOS-Things-master/components/drivers/peripheral/timer/example/
A Dtimer_example.c39 alarm.period = 1000000; in vfs_timer_test()
47 alarm.period = 500000; in vfs_timer_test()
70 ralarm.period, ralarm.cb, ralarm.arg, ralarm.auto_reload); in vfs_timer_test()
/AliOS-Things-master/hardware/chip/rtl872xd/aos_driver/pwm/
A Dpwm.c89 uint32_t period; in rtl872xd_pwm_out_config() local
186 uint32_t period; in rtl872xd_pwm_apply() local
190 period = attr->period; in rtl872xd_pwm_apply()
193 period, duty_cycle, attr->polarity); in rtl872xd_pwm_apply()

Completed in 29 milliseconds

1234