Home
last modified time | relevance | path

Searched refs:cyhal_resource_inst_t (Results 1 – 25 of 37) sorted by relevance

12

/hal_infineon-latest/mtb-hal-cat1/include_pvt/
Dcyhal_clock_impl.h121 extern const cyhal_resource_inst_t CYHAL_CLOCK_RSC_IMO;
126 extern const cyhal_resource_inst_t CYHAL_CLOCK_RSC_EXT;
132 extern const cyhal_resource_inst_t CYHAL_CLOCK_RSC_MEM;
139 extern const cyhal_resource_inst_t CYHAL_CLOCK_RSC_ILO[_CYHAL_SRSS_NUM_ILO];
146 extern const cyhal_resource_inst_t CYHAL_CLOCK_RSC_ECO;
148 extern const cyhal_resource_inst_t CYHAL_CLOCK_RSC_ECO_PRESCALER;
154 extern const cyhal_resource_inst_t CYHAL_CLOCK_RSC_ALTHF;
160 extern const cyhal_resource_inst_t CYHAL_CLOCK_RSC_ALTLF;
166 extern const cyhal_resource_inst_t CYHAL_CLOCK_RSC_PILO;
172 extern const cyhal_resource_inst_t CYHAL_CLOCK_RSC_WCO;
[all …]
Dcyhal_hw_types.h193 cyhal_resource_inst_t resource;
218 cyhal_resource_inst_t resource;
274 const cyhal_resource_inst_t* resource;
370 cyhal_resource_inst_t resource;
419 const cyhal_resource_inst_t* resource;
477 cyhal_resource_inst_t resource;
520 const cyhal_resource_inst_t* resource;
574 cyhal_resource_inst_t resource;
605 const cyhal_resource_inst_t* resource;
632 cyhal_resource_inst_t resource;
[all …]
Dcyhal_utils.h108 …const cyhal_resource_pin_mapping_t* mappings, size_t count, const cyhal_resource_inst_t* block_res…
136 …nline bool _cyhal_utils_resources_equal(const cyhal_resource_inst_t *resource1, const cyhal_resour… in _cyhal_utils_resources_equal()
148 static inline bool _cyhal_utils_map_resource_equal(const cyhal_resource_inst_t *resource, const cyh… in _cyhal_utils_map_resource_equal()
Dcyhal_utils_impl.h61 static inline cyhal_resource_inst_t _cyhal_utils_get_gpio_resource(cyhal_gpio_t pin) in _cyhal_utils_get_gpio_resource()
63 cyhal_resource_inst_t rsc = { CYHAL_RSC_GPIO, CYHAL_GET_PORT(pin), CYHAL_GET_PIN(pin) }; in _cyhal_utils_get_gpio_resource()
94 uint8_t _cyhal_utils_get_peri_group(const cyhal_resource_inst_t *clocked_item);
110 static inline uint32_t _cyhal_utils_get_peripheral_clock_frequency(const cyhal_resource_inst_t *clo… in _cyhal_utils_get_peripheral_clock_frequency()
137 static inline uint32_t _cyhal_utils_divider_value(const cyhal_resource_inst_t *clocked_item, uint32… in _cyhal_utils_divider_value()
176 cy_rslt_t _cyhal_utils_allocate_clock(cyhal_clock_t *clock, const cyhal_resource_inst_t *clocked_it…
Dcyhal_crypto_common.h72 cy_rslt_t cyhal_crypto_reserve(CRYPTO_Type** base, cyhal_resource_inst_t *resource, cyhal_crypto_fe…
80 void cyhal_crypto_free(CRYPTO_Type* base, cyhal_resource_inst_t *resource, cyhal_crypto_feature_t f…
Dcyhal_scb_common.h147 size_t count, const cyhal_resource_inst_t *block_res);
181 cy_rslt_t _cyhal_scb_enable_output(cyhal_resource_inst_t resource, cyhal_scb_output_t output, cyhal…
Dcyhal_tcpwm_common.h287 void _cyhal_tcpwm_register_callback(cyhal_resource_inst_t *resource, cy_israddress callback, void *…
297 void _cyhal_tcpwm_enable_event(cyhal_tcpwm_t *tcpwm, cyhal_resource_inst_t *resource, uint32_t even…
Dcyhal_hwmgr_impl.h55 …r_get_output_source_t get_src, _cyhal_hwmgr_get_input_dest_t get_dest, cyhal_resource_inst_t *obj);
Dcyhal_analog_common.h123 cy_rslt_t _cyhal_opamp_init_common(cyhal_resource_inst_t* rsc, cy_rslt_t bad_arg_error, cyhal_gpio_…
/hal_infineon-latest/mtb-hal-cat1/source/
Dcyhal_clock.c73 const cyhal_resource_inst_t CYHAL_CLOCK_RSC_IMO = { CYHAL_RSC_CLOCK, (uint8_t)CYHAL_CLOCK_BLOCK_IMO…
75 const cyhal_resource_inst_t CYHAL_CLOCK_RSC_EXT = { CYHAL_RSC_CLOCK, (uint8_t)CYHAL_CLOCK_BLOCK_EXT…
78 const cyhal_resource_inst_t CYHAL_CLOCK_RSC_ILO[_CYHAL_SRSS_NUM_ILO] = {
86 const cyhal_resource_inst_t CYHAL_CLOCK_RSC_LF = { CYHAL_RSC_CLOCK, (uint8_t)CYHAL_CLOCK_BLOCK_LF, …
89 const cyhal_resource_inst_t CYHAL_CLOCK_RSC_PUMP = { CYHAL_RSC_CLOCK, (uint8_t)CYHAL_CLOCK_BLOCK_PU…
91 const cyhal_resource_inst_t CYHAL_CLOCK_RSC_BAK = { CYHAL_RSC_CLOCK, (uint8_t)CYHAL_CLOCK_BLOCK_BAK…
93 const cyhal_resource_inst_t CYHAL_CLOCK_RSC_ALT_SYS_TICK = { CYHAL_RSC_CLOCK, (uint8_t)CYHAL_CLOCK_…
97 const cyhal_resource_inst_t CYHAL_CLOCK_RSC_MEM = { CYHAL_RSC_CLOCK, (uint8_t)CYHAL_CLOCK_BLOCK_MEM…
100 const cyhal_resource_inst_t CYHAL_CLOCK_RSC_PATHMUX[SRSS_NUM_CLKPATH] =
150 const cyhal_resource_inst_t CYHAL_CLOCK_RSC_HF[SRSS_NUM_HFROOT] =
[all …]
Dcyhal_hwmgr.c177 cy_rslt_t cyhal_hwmgr_reserve(const cyhal_resource_inst_t* obj) in cyhal_hwmgr_reserve()
196 void cyhal_hwmgr_free(const cyhal_resource_inst_t* obj) in cyhal_hwmgr_free()
206 cy_rslt_t cyhal_hwmgr_allocate(cyhal_resource_t type, cyhal_resource_inst_t* obj) in cyhal_hwmgr_allocate()
212 …gr_get_output_source_t get_src, _cyhal_hwmgr_get_input_dest_t get_dest, cyhal_resource_inst_t *obj) in _cyhal_hwmgr_allocate_with_connection()
214 cy_rslt_t cyhal_hwmgr_allocate(cyhal_resource_t type, cyhal_resource_inst_t* obj) in _cyhal_hwmgr_allocate_with_connection()
243 cyhal_resource_inst_t rsc = { type, block, channel }; in _cyhal_hwmgr_allocate_with_connection()
Dcyhal_utils_impl.c56 cyhal_resource_inst_t pinRsc = _cyhal_utils_get_gpio_resource(mapping->pin); in _cyhal_utils_reserve_and_connect()
74 cyhal_resource_inst_t rsc = _cyhal_utils_get_gpio_resource(pin); in _cyhal_utils_disconnect_and_free()
270 uint8_t _cyhal_utils_get_peri_group(const cyhal_resource_inst_t *clocked_item) in _cyhal_utils_get_peri_group()
509 cy_rslt_t _cyhal_utils_allocate_clock(cyhal_clock_t *clock, const cyhal_resource_inst_t *clocked_it… in _cyhal_utils_allocate_clock()
556 cy_rslt_t _cyhal_utils_allocate_clock(cyhal_clock_t *clock, const cyhal_resource_inst_t *clocked_it… in _cyhal_utils_allocate_clock()
585 cy_rslt_t _cyhal_utils_allocate_clock(cyhal_clock_t *clock, const cyhal_resource_inst_t *clocked_it… in _cyhal_utils_allocate_clock()
592 cy_rslt_t _cyhal_utils_allocate_clock(cyhal_clock_t *clock, const cyhal_resource_inst_t *clocked_it… in _cyhal_utils_allocate_clock()
670 const cyhal_resource_inst_t ** sources; in _cyhal_utils_find_hf_source_n_divider()
Dcyhal_utils.c39 const cyhal_resource_inst_t* block_res, bool ignore_channel) in _cyhal_utils_get_resource()
63 cyhal_resource_inst_t inst = { rsc, pin_map[i].block_num, pin_map[i].channel_num }; in _cyhal_utils_try_alloc()
78 cyhal_resource_inst_t rsc = { CYHAL_RSC_GPIO, *pin, 0 }; in _cyhal_utils_release_if_used()
Dcyhal_scb_common.c526 static cy_rslt_t _cyhal_scb_configure_peri_clock(cyhal_clock_t *clock, const cyhal_resource_inst_t in _cyhal_scb_configure_peri_clock()
614cyhal_resource_inst_t *resource = is_i2c ? &(((cyhal_i2c_t *)obj)->resource) : &(((cyhal_ezi2c_t *… in _cyhal_i2c_set_peri_divider()
648 size_t count, const cyhal_resource_inst_t *block_res) in _cyhal_scb_find_map()
665cyhal_resource_inst_t rsc = { CYHAL_RSC_SCB, pin_map[i].block_num, pin_map[i].channel_num }; in _cyhal_scb_find_map()
686 cyhal_resource_inst_t rsc = { CYHAL_RSC_SCB, scb_arr_index, pin_map[i].channel_num }; in _cyhal_scb_check_pin_affiliation()
720 cy_rslt_t _cyhal_scb_enable_output(cyhal_resource_inst_t resource, cyhal_scb_output_t output, cyhal… in _cyhal_scb_enable_output()
Dcyhal_crypto_common.c70 cy_rslt_t cyhal_crypto_reserve(CRYPTO_Type** base, cyhal_resource_inst_t *resource, cyhal_crypto_fe… in cyhal_crypto_reserve()
109 void cyhal_crypto_free(CRYPTO_Type* base, cyhal_resource_inst_t *resource, cyhal_crypto_feature_t f… in cyhal_crypto_free()
Dcyhal_ezi2c.c177 cyhal_resource_inst_t i2c_rsc = { CYHAL_RSC_SCB, found_block_idx, 0 }; in _cyhal_ezi2c_setup_resources()
187cyhal_resource_inst_t rsc_to_reserve = { CYHAL_RSC_SCB, _cyhal_scb_get_block_index(found_block_idx… in _cyhal_ezi2c_setup_resources()
345cyhal_resource_inst_t rsc_to_free = { CYHAL_RSC_SCB, _cyhal_scb_get_block_index(obj->resource.bloc… in cyhal_ezi2c_free()
Dcyhal_analog_common.c158 cy_rslt_t _cyhal_opamp_init_common(cyhal_resource_inst_t* rsc, cy_rslt_t bad_arg_error, cyhal_gpio_… in _cyhal_opamp_init_common()
197cyhal_resource_inst_t rsc2 = { CYHAL_RSC_OPAMP, vin_p_map->block_num, vin_p_map->channel_num }; in _cyhal_opamp_init_common()
Dcyhal_spi.c451 uint8_t *idx, const cyhal_resource_inst_t *target_blk) in _cyhal_spi_get_ssel_map_idx()
702 const cyhal_resource_inst_t default_spi_inst = { CYHAL_RSC_SCB, found_block_idx, 0 }; in _cyhal_spi_setup_resources()
703 const cyhal_resource_inst_t* spi_inst_p = &default_spi_inst; in _cyhal_spi_setup_resources()
750cyhal_resource_inst_t rsc_to_reserve = { CYHAL_RSC_SCB, _cyhal_scb_get_block_index(spi_inst_p->blo… in _cyhal_spi_setup_resources()
1104cyhal_resource_inst_t rsc_to_free = { CYHAL_RSC_SCB, _cyhal_scb_get_block_index(obj->resource.bloc… in cyhal_spi_free()
Dcyhal_dac.c281 cyhal_resource_inst_t opamp_instance; in cyhal_dac_init()
282 cyhal_resource_inst_t dac_instance; in cyhal_dac_init()
Dcyhal_udb_sdio.c242 cyhal_resource_inst_t pinRsc = _cyhal_utils_get_gpio_resource(pin); in _cyhal_sdio_configure_pin()
314 cyhal_resource_inst_t udbRsc = { CYHAL_RSC_UDB, 0, 0 }; in cyhal_sdio_init()
Dcyhal_uart.c578 static uint32_t _cyhal_uart_actual_baud(const cyhal_resource_inst_t *resource, uint32_t divider, ui… in _cyhal_uart_actual_baud()
590 static uint8_t _cyhal_uart_best_oversample(const cyhal_resource_inst_t *resource, uint32_t baudrate) in _cyhal_uart_best_oversample()
672 cyhal_resource_inst_t uart_rsc = { CYHAL_RSC_SCB, found_block_idx, 0 }; in _cyhal_uart_setup_resources()
686cyhal_resource_inst_t rsc_to_reserve = { CYHAL_RSC_SCB, _cyhal_scb_get_block_index(found_block_idx… in _cyhal_uart_setup_resources()
919cyhal_resource_inst_t rsc_to_free = { CYHAL_RSC_SCB, _cyhal_scb_get_block_index(obj->resource.bloc… in cyhal_uart_free()
Dcyhal_gpio.c322 cyhal_resource_inst_t pinRsc = _cyhal_utils_get_gpio_resource(pin); in cyhal_gpio_init()
376 cyhal_resource_inst_t pinRsc = _cyhal_utils_get_gpio_resource(pin); in cyhal_gpio_free()
Dcyhal_i2c.c280 cyhal_resource_inst_t i2c_rsc = { CYHAL_RSC_SCB, found_block_idx, 0 }; in _cyhal_i2c_init_resources()
293cyhal_resource_inst_t rsc_to_reserve = { CYHAL_RSC_SCB, _cyhal_scb_get_block_index(found_block_idx… in _cyhal_i2c_init_resources()
486cyhal_resource_inst_t rsc_to_free = { CYHAL_RSC_SCB, _cyhal_scb_get_block_index(obj->resource.bloc… in cyhal_i2c_free()
/hal_infineon-latest/mtb-hal-cat1/include/
Dcyhal_hwmgr.h118 cy_rslt_t cyhal_hwmgr_reserve(const cyhal_resource_inst_t* obj);
126 void cyhal_hwmgr_free(const cyhal_resource_inst_t* obj);
140 cy_rslt_t cyhal_hwmgr_allocate(cyhal_resource_t type, cyhal_resource_inst_t* obj);
Dcyhal_clock.h208 cy_rslt_t cyhal_clock_get(cyhal_clock_t *clock, const cyhal_resource_inst_t *resource);
329 cy_rslt_t cyhal_clock_get_sources(const cyhal_clock_t *clock, const cyhal_resource_inst_t **sources…

12