Searched refs:gecko_config (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/drivers/spi/ |
D | spi_gecko_eusart.c | 47 const struct spi_gecko_eusart_config *gecko_config = dev->config; in spi_eusart_config() local 55 err = clock_control_get_rate(gecko_config->clock_dev, in spi_eusart_config() 56 (clock_control_subsys_t)&gecko_config->clock_cfg, in spi_eusart_config() 94 if (gecko_config->clock_frequency > spi_frequency) { in spi_eusart_config() 98 spi_frequency = MIN(gecko_config->clock_frequency, spi_frequency); in spi_eusart_config() 137 err = clock_control_on(gecko_config->clock_dev, in spi_eusart_config() 138 (clock_control_subsys_t)&gecko_config->clock_cfg); in spi_eusart_config() 144 EUSART_SpiInit(gecko_config->base, &eusartInit); in spi_eusart_config() 149 gecko_config->base->CMD = (uint32_t)eusartEnable; in spi_eusart_config() 209 const struct spi_gecko_eusart_config *gecko_config = dev->config; in spi_gecko_eusart_xfer() local [all …]
|
D | spi_gecko_usart.c | 120 const struct spi_gecko_config *gecko_config = dev->config; in spi_config() local 122 mem_addr_t ctrl_reg = (mem_addr_t)&gecko_config->base->CTRL; in spi_config() 128 err = clock_control_get_rate(gecko_config->clock_dev, in spi_config() 129 (clock_control_subsys_t)&gecko_config->clock_cfg, in spi_config() 137 spi_frequency = CMU_ClockFreqGet(gecko_config->clock) / 2; in spi_config() 177 if (gecko_config->clock_frequency > spi_frequency) { in spi_config() 181 spi_frequency = MIN(gecko_config->clock_frequency, spi_frequency); in spi_config() 185 USART_BaudrateSyncSet(gecko_config->base, 0, spi_frequency); in spi_config() 189 gecko_config->base->CTRL |= USART_CTRL_LOOPBK; in spi_config() 191 gecko_config->base->CTRL &= ~USART_CTRL_LOOPBK; in spi_config() [all …]
|