/AliOS-Things-master/components/py_engine/tests/wipy/ |
A D | timer.py | 19 print(tim) 25 print(tim) 31 print(tim) 36 tim.deinit() 37 print(tim) 41 tim.deinit() 71 timer_test.tim.deinit() 80 timer_test.tim.deinit() 81 print(timer_test.tim) 94 tim = Timer(0, mode=12) [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/hal/ |
A D | timer.c | 63 ret = _hal_timer_para_chg(tim, tim->config); in hal_timer_init() 142 hal_timer_init(&tim); in _hal_timer_test() 143 hal_timer_start(&tim); in _hal_timer_test() 145 tim.config.period = 20; in _hal_timer_test() 146 hal_timer_start(&tim); in _hal_timer_test() 148 hal_timer_stop(&tim); in _hal_timer_test() 152 hal_timer_init(&tim); in _hal_timer_test() 153 hal_timer_start(&tim); in _hal_timer_test() 155 tim.config.period = 20; in _hal_timer_test() 156 hal_timer_start(&tim); in _hal_timer_test() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/hal/ |
A D | hal_timer.c | 15 int32_t hal_timer_init(timer_dev_t *tim) in hal_timer_init() argument 19 if(tim == NULL) in hal_timer_init() 24 switch(tim->port) { in hal_timer_init() 27 gtimer_init(&local_timer, tim->port); in hal_timer_init() 37 int32_t hal_timer_start(timer_dev_t *tim) in hal_timer_start() argument 39 if(tim == NULL) in hal_timer_start() 43 …gtimer_start_one_shout(&local_timer, tim->config.period, tim->config.cb, (uint32_t)tim->config.arg… in hal_timer_start() 45 …gtimer_start_periodical(&local_timer, tim->config.period, tim->config.cb, (uint32_t)tim->config.ar… in hal_timer_start() 54 void hal_timer_stop(timer_dev_t *tim) in hal_timer_stop() argument 56 if (tim != NULL){ in hal_timer_stop() [all …]
|
A D | hw.c | 41 int32_t hal_timer_init(timer_dev_t *tim) 43 if (tim->config.reload_mode == TIMER_RELOAD_AUTO) { 44 krhino_timer_dyn_create((ktimer_t **)&tim->priv, "hwtmr", _timer_cb, 45 us2tick(tim->config.period), us2tick(tim->config.period), tim, 0); 48 krhino_timer_dyn_create((ktimer_t **)&tim->priv, "hwtmr", _timer_cb, 49 us2tick(tim->config.period), 0, tim, 0);
|
/AliOS-Things-master/components/amp_adapter/platform/aos/peripheral/ |
A D | aos_hal_timer.c | 25 if (!tim || tim->priv) in aos_hal_timer_init() 28 port = tim->port; in aos_hal_timer_init() 48 tim->priv = p_fd; in aos_hal_timer_init() 68 if (!tim) in aos_hal_timer_start() 71 p_fd = (int32_t *)tim->priv; in aos_hal_timer_start() 76 alarm.arg = tim->config.arg; in aos_hal_timer_start() 77 alarm.cb = tim->config.cb; in aos_hal_timer_start() 102 if (!tim) in aos_hal_timer_stop() 127 if (!tim) in aos_hal_timer_para_chg() 157 if (!tim || !tim->priv) in aos_hal_timer_finalize() [all …]
|
/AliOS-Things-master/components/py_engine/tests/pyb/ |
A D | timer.py | 6 tim = Timer(4) variable 8 print(tim.prescaler()) 9 print(tim.period()) 10 tim.prescaler(300) 11 print(tim.prescaler()) 12 tim.period(400) 13 print(tim.period()) 16 tim = Timer(2, freq=100) variable 17 print(tim.freq()) 18 tim.freq(0.001) [all …]
|
A D | timer_callback.py | 30 tim = Timer(1, freq=100, callback=cb1) variable 36 tim = Timer(2, freq=100, callback=cb2) variable 42 tim = Timer(4) variable 43 tim.init(freq=100) 44 tim.callback(cb1) 50 tim.init(freq=100) 51 tim.callback(cb3(3))
|
A D | adc.py | 13 tim = Timer(5, freq=500) variable 17 adcv.read_timed(buf, tim) 26 adcv.read_timed(arv, tim) 32 adcv.read_timed(arv, tim) 40 ADC.read_timed_multi((adcv, adct), (arv, art), tim) 49 ADC.read_timed_multi((adcv, adct), (arv, art), tim) 58 ADC.read_timed_multi((adcv, adct), (arv, art), tim)
|
/AliOS-Things-master/components/amp_adapter/platform/linux/peripheral/ |
A D | aos_hal_timer.c | 21 int32_t aos_hal_timer_init(timer_dev_t *tim) in aos_hal_timer_init() argument 31 ent.sigev_value.sival_ptr = tim; in aos_hal_timer_init() 38 tim->priv = timer; in aos_hal_timer_init() 42 int32_t aos_hal_timer_start(timer_dev_t *tim) in aos_hal_timer_start() argument 47 if (tim == NULL) { in aos_hal_timer_start() 68 void aos_hal_timer_stop(timer_dev_t *tim) in aos_hal_timer_stop() argument 73 if (tim == NULL) { in aos_hal_timer_stop() 90 int32_t aos_hal_timer_finalize(timer_dev_t *tim) in aos_hal_timer_finalize() argument 95 if (tim == NULL) { in aos_hal_timer_finalize() 99 ret = timer_delete(*(timer_t *)tim->priv); in aos_hal_timer_finalize() [all …]
|
/AliOS-Things-master/components/py_engine/modules/driver/ |
A D | timer.c | 88 aos_hal_timer_stop(tim); in driver_timer_disable() 109 timer_dev_t *tim = &self->dev; in driver_timer_enable() local 110 if (tim != NULL) { in driver_timer_enable() 111 ret = aos_hal_timer_init(tim); in driver_timer_enable() 156 timer_dev_t *tim = &self->dev; in driver_timer_close() local 157 aos_hal_timer_stop(tim); in driver_timer_close() 180 timer_dev_t *tim = &self->dev; in driver_timer_period() local 189 timer_dev_t *tim = &self->dev; in driver_timer_start() local 198 timer_dev_t *tim = &self->dev; in driver_timer_stop() local 199 aos_hal_timer_stop(tim); in driver_timer_stop() [all …]
|
/AliOS-Things-master/components/py_engine/adapter/haas/ |
A D | machine_timer.c | 63 aos_hal_timer_stop(tim); in machine_timer_disable() 83 timer_dev_t *tim = &self->dev; in machine_timer_enable() local 85 if (tim != NULL) { in machine_timer_enable() 86 aos_hal_timer_init(tim); in machine_timer_enable() 87 aos_hal_timer_start(tim); in machine_timer_enable() 131 timer_dev_t *tim = &self->dev; in machine_timer_deinit() local 132 aos_hal_timer_stop(tim); in machine_timer_deinit() 154 timer_dev_t *tim = &self->dev; in machine_timer_period() local 163 timer_dev_t *tim = &self->dev; in machine_timer_start() local 172 timer_dev_t *tim = &self->dev; in machine_timer_stop() local [all …]
|
A D | machine_sw_timer.c | 65 aos_timer_t *tim = self->timerId; in machine_soft_timer_enable() local 66 aos_timer_start(tim); in machine_soft_timer_enable() 71 aos_timer_t *tim = self->timerId; in machine_soft_timer_disable() local 72 aos_timer_stop(tim); in machine_soft_timer_disable()
|
/AliOS-Things-master/components/py_engine/adapter/haas510/ |
A D | machine_timer.c | 113 timer_dev_t *tim = machine_timer_get_devive(self); in machine_timer_disable() local 114 aos_hal_timer_stop(tim); in machine_timer_disable() 127 if(tim != NULL) { in machine_timer_enable() 128 aos_hal_timer_init(tim); in machine_timer_enable() 129 aos_hal_timer_start(tim); in machine_timer_enable() 177 if(tim != NULL) { in machine_timer_deinit() 178 aos_free(tim); in machine_timer_deinit() 181 aos_hal_timer_stop(tim); in machine_timer_deinit() 204 int32_t ret = aos_hal_timer_para_chg(tim, para); in machine_timer_period() 212 int32_t ret = aos_hal_timer_start(tim); in machine_timer_start() [all …]
|
A D | machine_sw_timer.c | 89 aos_timer_t tim = self->timerId; in machine_soft_timer_enable() local 90 aos_timer_start(&tim); in machine_soft_timer_enable() 94 aos_timer_t tim = self->timerId; in machine_soft_timer_disable() local 95 aos_timer_stop(&tim); in machine_soft_timer_disable()
|
/AliOS-Things-master/components/py_engine/adapter/haas600/ |
A D | machine_timer.c | 113 timer_dev_t *tim = machine_timer_get_devive(self); in machine_timer_disable() local 114 aos_hal_timer_stop(tim); in machine_timer_disable() 127 if(tim != NULL) { in machine_timer_enable() 128 aos_hal_timer_init(tim); in machine_timer_enable() 129 aos_hal_timer_start(tim); in machine_timer_enable() 177 if(tim != NULL) { in machine_timer_deinit() 178 aos_free(tim); in machine_timer_deinit() 181 aos_hal_timer_stop(tim); in machine_timer_deinit() 204 int32_t ret = aos_hal_timer_para_chg(tim, para); in machine_timer_period() 212 int32_t ret = aos_hal_timer_start(tim); in machine_timer_start() [all …]
|
A D | machine_sw_timer.c | 89 aos_timer_t tim = self->timerId; in machine_soft_timer_enable() local 90 aos_timer_start(&tim); in machine_soft_timer_enable() 94 aos_timer_t tim = self->timerId; in machine_soft_timer_disable() local 95 aos_timer_stop(&tim); in machine_soft_timer_disable()
|
/AliOS-Things-master/components/amp_adapter/include/peripheral/ |
A D | aos_hal_timer.h | 49 int32_t aos_hal_timer_init(timer_dev_t *tim); 58 int32_t aos_hal_timer_start(timer_dev_t *tim); 67 void aos_hal_timer_stop(timer_dev_t *tim); 77 int32_t aos_hal_timer_para_chg(timer_dev_t *tim, timer_config_t para); 86 int32_t aos_hal_timer_finalize(timer_dev_t *tim);
|
/AliOS-Things-master/components/drivers/peripheral/timer/include/aos/hal/ |
A D | timer.h | 49 int32_t hal_timer_init(timer_dev_t *tim); 58 int32_t hal_timer_start(timer_dev_t *tim); 67 void hal_timer_stop(timer_dev_t *tim); 77 int32_t hal_timer_para_chg(timer_dev_t *tim, timer_config_t para); 86 int32_t hal_timer_finalize(timer_dev_t *tim);
|
/AliOS-Things-master/components/drivers/peripheral/pwm/src/ |
A D | pwm_dev.c | 258 __weak int32_t hal_pwm_init(pwm_dev_t *tim) { in VFS_DRIVER_ENTRY() 263 __weak int32_t hal_pwm_start(pwm_dev_t *tim) { in hal_pwm_start() argument 268 __weak int32_t hal_pwm_stop(pwm_dev_t *tim) { in hal_pwm_stop() argument 273 __weak int32_t hal_pwm_para_chg(pwm_dev_t *tim, pwm_config_t para) { in hal_pwm_para_chg() argument 278 __weak int32_t hal_pwm_finalize(pwm_dev_t *tim) { in hal_pwm_finalize() argument
|
/AliOS-Things-master/components/drivers/peripheral/timer/src/ |
A D | timer_dev.c | 290 __weak int32_t hal_timer_init(timer_dev_t *tim) { in VFS_DRIVER_ENTRY() 295 __weak int32_t hal_timer_start(timer_dev_t *tim) { in hal_timer_start() argument 300 __weak void hal_timer_stop(timer_dev_t *tim) { in hal_timer_stop() argument 305 __weak int32_t hal_timer_para_chg(timer_dev_t *tim, timer_config_t para) { in hal_timer_para_chg() argument 310 __weak int32_t hal_timer_finalize(timer_dev_t *tim) { in hal_timer_finalize() argument
|
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/sntp/ |
A D | sntp.c | 218 time_t tim = t; in sntp_process() local 224 LWIP_DEBUGF(SNTP_DEBUG_TRACE, ("sntp_process: %s, %"U32_F" us", ctime(&tim), us)); in sntp_process() 231 LWIP_DEBUGF(SNTP_DEBUG_TRACE, ("sntp_process: %s", ctime(&tim))); in sntp_process() 233 LWIP_UNUSED_ARG(tim); in sntp_process()
|