Searched refs:scl_mode (Results 1 – 5 of 5) sorted by relevance
| /bsp/bluetrum/libraries/hal_drivers/ |
| A D | drv_soft_i2c.c | 52 cfg->scl_mode = PIN_MODE_OUTPUT_OD; in ab32_i2c_gpio_init() 54 rt_pin_mode(cfg->scl, cfg->scl_mode); in ab32_i2c_gpio_init() 106 if (cfg->scl_mode == PIN_MODE_INPUT_PULLUP) { in ab32_set_scl() 107 cfg->scl_mode = PIN_MODE_OUTPUT_OD; in ab32_set_scl() 108 rt_pin_mode(cfg->scl, cfg->scl_mode); in ab32_set_scl() 147 if (cfg->scl_mode == PIN_MODE_INPUT_PULLUP) { in ab32_get_scl() 148 cfg->scl_mode = PIN_MODE_INPUT_PULLUP; in ab32_get_scl() 149 rt_pin_mode(cfg->scl, cfg->scl_mode); in ab32_get_scl()
|
| A D | drv_soft_i2c.h | 24 rt_uint8_t scl_mode; member
|
| /bsp/raspberry-pi/raspi4-32/driver/ |
| A D | drv_i2c.c | 47 rt_uint32_t scl_mode; member 177 prev_raspi_pin_mode(cfg->scl_pin, cfg->scl_mode);//scl in raspi_i2c_configure() 204 .scl_mode = ALT0, 224 .scl_mode = ALT0, 249 .scl_mode = ALT5, 274 .scl_mode = ALT5, 299 .scl_mode = ALT5, 324 .scl_mode = ALT5,
|
| /bsp/raspberry-pi/raspi3-32/driver/ |
| A D | drv_i2c.c | 101 rt_uint8_t scl_mode; member 169 volatile rt_uint32_t base = cfg->scl_mode ? BCM283X_BSC1_BASE : BCM283X_BSC0_BASE; in raspi_i2c_configure() 172 GPIO_FSEL(cfg->scl_pin, cfg->scl_mode); /* SCL */ in raspi_i2c_configure() 191 .scl_mode = BCM283X_GPIO_FSEL_ALT0, 209 .scl_mode = BCM283X_GPIO_FSEL_ALT0,
|
| /bsp/raspberry-pi/raspi3-64/driver/ |
| A D | drv_i2c.c | 106 rt_uint8_t scl_mode; member 174 volatile rt_uint32_t base = cfg->scl_mode ? BCM283X_BSC1_BASE : BCM283X_BSC0_BASE; in raspi_i2c_configure() 177 GPIO_FSEL(cfg->scl_pin, cfg->scl_mode); /* SCL */ in raspi_i2c_configure() 195 .scl_mode = BCM283X_GPIO_FSEL_ALT0, 213 .scl_mode = BCM283X_GPIO_FSEL_ALT0,
|
Completed in 12 milliseconds