Searched refs:hw_resource (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/drivers/counter/ |
D | counter_ifx_cat1.c | 39 cyhal_resource_inst_t hw_resource; member 66 static int get_hw_block_info(TCPWM_CNT_Type *reg_addr, cyhal_resource_inst_t *hw_resource) in get_hw_block_info() argument 78 hw_resource->type = CYHAL_RSC_TCPWM; in get_hw_block_info() 79 hw_resource->block_num = i; in get_hw_block_info() 80 hw_resource->channel_num = ((reg_addr_ptr - cnt) / sizeof(TCPWM_CNT_Type)); in get_hw_block_info() 82 if (hw_resource->channel_num >= _CYHAL_TCPWM_DATA[i].num_channels) { in get_hw_block_info() 145 if (get_hw_block_info(config->reg_addr, &data->hw_resource) != 0) { in ifx_cat1_counter_init() 150 .resource = &data->hw_resource, in ifx_cat1_counter_init()
|
/Zephyr-latest/drivers/sdhc/ |
D | ifx_cat1_sdio.c | 69 cyhal_resource_inst_t hw_resource; member 286 data->hw_resource.type = CYHAL_RSC_SDIODEV; in ifx_cat1_sdio_init() 287 data->hw_resource.block_num = _get_hw_block_num(config->reg_addr); in ifx_cat1_sdio_init() 290 data->cyhal_sdio_config.resource = &data->hw_resource; in ifx_cat1_sdio_init()
|
/Zephyr-latest/drivers/spi/ |
D | spi_ifx_cat1.c | 41 cyhal_resource_inst_t hw_resource; member 191 cyhal_spi_configurator_t spi_init_cfg = {.resource = &data->hw_resource, in spi_config() 308 data->hw_resource.type = CYHAL_RSC_SCB; in ifx_cat1_spi_init() 309 data->hw_resource.block_num = get_hw_block_num(config->reg_addr); in ifx_cat1_spi_init()
|
/Zephyr-latest/drivers/serial/ |
D | uart_ifx_cat1.c | 28 cyhal_resource_inst_t hw_resource; member 437 .resource = &data->hw_resource, in ifx_cat1_uart_init() 448 data->hw_resource.type = CYHAL_RSC_SCB; in ifx_cat1_uart_init() 449 data->hw_resource.block_num = _get_hw_block_num(config->reg_addr); in ifx_cat1_uart_init() 458 result = _cyhal_utils_allocate_clock(&data->clock, &data->hw_resource, in ifx_cat1_uart_init()
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_ifx_cat1.c | 52 cyhal_resource_inst_t hw_resource; member 384 .resource = &data->hw_resource, in ifx_cat1_i2c_init() 390 data->hw_resource.type = CYHAL_RSC_SCB; in ifx_cat1_i2c_init() 391 data->hw_resource.block_num = _get_hw_block_num(config->reg_addr); in ifx_cat1_i2c_init() 412 result = _cyhal_utils_allocate_clock(&data->clock, &data->hw_resource, in ifx_cat1_i2c_init()
|