Home
last modified time | relevance | path

Searched refs:p_fd (Results 1 – 10 of 10) sorted by relevance

/AliOS-Things-master/components/amp_adapter/platform/aos/peripheral/
A Daos_hal_pwm.c28 if (!p_fd) in aos_hal_pwm_init()
30 *p_fd = -1; in aos_hal_pwm_init()
36 if (*p_fd < 0) { in aos_hal_pwm_init()
60 free(p_fd); in aos_hal_pwm_init()
61 p_fd = NULL; in aos_hal_pwm_init()
80 if (!p_fd || *p_fd < 0) in aos_hal_pwm_start()
105 if (!p_fd || *p_fd < 0) in aos_hal_pwm_stop()
130 if (!p_fd || *p_fd < 0) in aos_hal_pwm_para_chg()
161 if (*p_fd < 0) in aos_hal_pwm_finalize()
171 *p_fd = -1; in aos_hal_pwm_finalize()
[all …]
A Daos_hal_timer.c30 if (!p_fd) in aos_hal_timer_init()
32 *p_fd = -1; in aos_hal_timer_init()
38 if (*p_fd < 0) { in aos_hal_timer_init()
52 free(p_fd); in aos_hal_timer_init()
53 p_fd = NULL; in aos_hal_timer_init()
73 if (!p_fd || *p_fd < 0) in aos_hal_timer_start()
107 if (!p_fd || *p_fd < 0) in aos_hal_timer_stop()
132 if (!p_fd || *p_fd < 0) in aos_hal_timer_para_chg()
162 if (*p_fd < 0) in aos_hal_timer_finalize()
172 *p_fd = -1; in aos_hal_timer_finalize()
[all …]
A Daos_hal_wdg.c28 if (!p_fd) in aos_hal_wdg_init()
30 *p_fd = -1; in aos_hal_wdg_init()
36 if (*p_fd < 0) { in aos_hal_wdg_init()
48 free(p_fd); in aos_hal_wdg_init()
49 p_fd = NULL; in aos_hal_wdg_init()
68 if (!p_fd || *p_fd < 0) in aos_hal_wdg_reload()
94 if (*p_fd < 0) in aos_hal_wdg_finalize()
97 if (*p_fd >= 0) { in aos_hal_wdg_finalize()
98 close(*p_fd); in aos_hal_wdg_finalize()
104 *p_fd = -1; in aos_hal_wdg_finalize()
[all …]
A Daos_hal_adc.c21 int32_t *p_fd = NULL; in aos_hal_adc_init() local
28 if (!p_fd) in aos_hal_adc_init()
30 *p_fd = -1; in aos_hal_adc_init()
35 if (*p_fd < 0) { in aos_hal_adc_init()
53 free(p_fd); in aos_hal_adc_init()
54 p_fd = NULL; in aos_hal_adc_init()
74 if (!p_fd || *p_fd < 0) in aos_hal_adc_value_get()
103 if (*p_fd < 0) in aos_hal_adc_finalize()
106 if (*p_fd >= 0) { in aos_hal_adc_finalize()
116 *p_fd = -1; in aos_hal_adc_finalize()
[all …]
A Daos_hal_i2c.c29 if (!p_fd) in aos_hal_i2c_init()
31 *p_fd = -1; in aos_hal_i2c_init()
37 if (*p_fd < 0) { in aos_hal_i2c_init()
64 free(p_fd); in aos_hal_i2c_init()
65 p_fd = NULL; in aos_hal_i2c_init()
87 if (!p_fd || *p_fd < 0) in aos_hal_i2c_master_send()
119 if (!p_fd || *p_fd < 0) in aos_hal_i2c_master_recv()
164 if (!p_fd || *p_fd < 0) in aos_hal_i2c_mem_write()
197 if (!p_fd || *p_fd < 0) in aos_hal_i2c_mem_read()
236 *p_fd = -1; in aos_hal_i2c_finalize()
[all …]
/AliOS-Things-master/hardware/board/haaseduk1/drivers/sensor/
A Dsensor_i2c_api.c13 int *p_fd = NULL; in sensor_i2c_open() local
22 if (*p_fd >= 0) { in sensor_i2c_open()
32 if (*p_fd < 0) { in sensor_i2c_open()
46 close(*p_fd); in sensor_i2c_open()
47 *p_fd = -1; in sensor_i2c_open()
55 int *p_fd = NULL; in sensor_i2c_master_send() local
80 int *p_fd = NULL; in sensor_i2c_master_recv() local
105 int *p_fd = NULL; in sensor_i2c_mem_write() local
129 int *p_fd = NULL; in sensor_i2c_mem_read() local
160 close(*p_fd); in sensor_i2c_close()
[all …]
/AliOS-Things-master/components/drivers/external_device/pca9544/src/
A Dpca9544_i2c_drv.c34 if (*p_fd >= 0) { in pca9544_i2c_init()
44 if (*p_fd < 0) { in pca9544_i2c_init()
62 close(*p_fd); in pca9544_i2c_init()
63 *p_fd = -1; in pca9544_i2c_init()
96 if (!p_fd || (*p_fd < 0)) { in pca9544_i2c_master_send()
141 if (!p_fd || (*p_fd < 0)) { in pca9544_i2c_master_recv()
186 if (!p_fd || (*p_fd < 0)) { in pca9544_i2c_mem_write()
230 if (!p_fd || (*p_fd < 0)) { in pca9544_i2c_mem_read()
267 if (!p_fd || (*p_fd < 0)) { in pca9544_i2c_finalize()
272 close(*p_fd); in pca9544_i2c_finalize()
[all …]
/AliOS-Things-master/components/sensor/hal/
A Dsensor_drv_api.c15 int32_t *p_fd = NULL; in vfs_i2c_init() local
31 if (*p_fd >= 0) { in vfs_i2c_init()
39 if (*p_fd < 0) { in vfs_i2c_init()
86 if (!p_fd || (*p_fd < 0)) { in vfs_i2c_master_send()
117 if (!p_fd || (*p_fd < 0)) { in vfs_i2c_master_recv()
147 if (!p_fd || (*p_fd < 0)) { in vfs_i2c_mem_write()
177 if (!p_fd || (*p_fd < 0)) { in vfs_i2c_mem_read()
207 if (!p_fd || (*p_fd < 0)) { in vfs_i2c_finalize()
212 if (*p_fd >= 0) in vfs_i2c_finalize()
219 *p_fd = -1; in vfs_i2c_finalize()
[all …]
/AliOS-Things-master/components/py_engine/modules/driver/
A Dtimer.c93 int32_t *p_fd = (int32_t *)tim->priv; in aos_hal_timer_reload() local
94 return ioctl(*p_fd, IOC_TIMER_RELOAD, (unsigned long)false); in aos_hal_timer_reload()
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dmachine_timer.c68 int32_t *p_fd = (int32_t *)tim->priv; in aos_hal_timer_reload() local
69 return ioctl(*p_fd, IOC_TIMER_RELOAD, (unsigned long)false); in aos_hal_timer_reload()

Completed in 15 milliseconds