Searched refs:es_dev (Results 1 – 2 of 2) sorted by relevance
| /bsp/stm32/stm32l475-atk-pandora/board/ports/audio/ |
| A D | drv_es8388.c | 23 static struct es8388_device es_dev = {0}; variable 30 RT_ASSERT(es_dev.i2c != RT_NULL); in reg_read() 42 if (rt_i2c_transfer(es_dev.i2c, msg, 2) != 2) in reg_read() 56 RT_ASSERT(es_dev.i2c != RT_NULL); in reg_write() 66 if (rt_i2c_transfer(es_dev.i2c, msgs, 1) != 1) in reg_write() 109 es_dev.i2c = rt_i2c_bus_device_find(i2c_name); in es8388_init() 110 if (es_dev.i2c == RT_NULL) in es8388_init() 116 es_dev.pin = pin; in es8388_init() 277 rt_pin_mode(es_dev.pin, PIN_MODE_OUTPUT); in es8388_pa_power() 281 rt_pin_write(es_dev.pin, PIN_HIGH); in es8388_pa_power() [all …]
|
| /bsp/stm32/stm32f407-rt-spark/board/ports/audio/ |
| A D | drv_es8388.c | 23 static struct es8388_device es_dev = {0}; variable 30 RT_ASSERT(es_dev.i2c != RT_NULL); in reg_read() 42 if (rt_i2c_transfer(es_dev.i2c, msg, 2) != 2) in reg_read() 56 RT_ASSERT(es_dev.i2c != RT_NULL); in reg_write() 66 if (rt_i2c_transfer(es_dev.i2c, msgs, 1) != 1) in reg_write() 109 es_dev.i2c = rt_i2c_bus_device_find(i2c_name); in es8388_init() 110 if (es_dev.i2c == RT_NULL) in es8388_init() 116 es_dev.pin = pin; in es8388_init() 283 rt_pin_mode(es_dev.pin, PIN_MODE_OUTPUT); in es8388_pa_power() 287 rt_pin_write(es_dev.pin, PIN_HIGH); in es8388_pa_power() [all …]
|
Completed in 11 milliseconds