Searched refs:pin_map (Results 1 – 4 of 4) sorted by relevance
/hal_infineon-3.6.0/mtb-hal-cat1/include_pvt/ |
D | cyhal_scb_common.h | 146 …e_pin_mapping_t* _cyhal_scb_find_map(cyhal_gpio_t pin, const cyhal_resource_pin_mapping_t *pin_map, 157 …check_pin_affiliation(cyhal_gpio_t pin, const cyhal_resource_pin_mapping_t *pin_map, size_t count); 190 #define _CYHAL_SCB_FIND_MAP(pin, pin_map) \ argument 191 … _cyhal_scb_find_map(pin, pin_map, sizeof(pin_map)/sizeof(cyhal_resource_pin_mapping_t), NULL) 192 #define _CYHAL_SCB_FIND_MAP_BLOCK(pin, pin_map, block) \ argument 193 … _cyhal_scb_find_map(pin, pin_map, sizeof(pin_map)/sizeof(cyhal_resource_pin_mapping_t), block) 194 #define _CYHAL_SCB_CHECK_AFFILIATION(pin, pin_map) \ argument 195 …_cyhal_scb_check_pin_affiliation(pin, pin_map, sizeof(pin_map)/sizeof(cyhal_resource_pin_mapping_t…
|
D | cyhal_utils.h | 121 …cyhal_gpio_t pin, cyhal_resource_t rsc, const cyhal_resource_pin_mapping_t *pin_map, size_t count);
|
/hal_infineon-3.6.0/mtb-hal-cat1/source/ |
D | cyhal_scb_common.c | 538 …e_pin_mapping_t* _cyhal_scb_find_map(cyhal_gpio_t pin, const cyhal_resource_pin_mapping_t *pin_map, in _cyhal_scb_find_map() argument 543 if (pin == pin_map[i].pin) in _cyhal_scb_find_map() 548 if (_cyhal_utils_map_resource_equal(block_res, &(pin_map[i]), false)) in _cyhal_scb_find_map() 550 return &pin_map[i]; in _cyhal_scb_find_map() 556 … cyhal_resource_inst_t rsc = { CYHAL_RSC_SCB, pin_map[i].block_num, pin_map[i].channel_num }; in _cyhal_scb_find_map() 560 return &pin_map[i]; in _cyhal_scb_find_map() 568 …2_t _cyhal_scb_check_pin_affiliation(cyhal_gpio_t pin, const cyhal_resource_pin_mapping_t *pin_map, in _cyhal_scb_check_pin_affiliation() argument 574 if (pin == pin_map[i].pin) in _cyhal_scb_check_pin_affiliation() 576 uint8_t scb_arr_index = _cyhal_scb_get_block_index(pin_map[i].block_num); in _cyhal_scb_check_pin_affiliation() 577 cyhal_resource_inst_t rsc = { CYHAL_RSC_SCB, scb_arr_index, pin_map[i].channel_num }; in _cyhal_scb_check_pin_affiliation() [all …]
|
D | cyhal_utils.c | 57 …(cyhal_gpio_t pin, cyhal_resource_t rsc, const cyhal_resource_pin_mapping_t *pin_map, size_t count) in _cyhal_utils_try_alloc() argument 61 if (pin == pin_map[i].pin) in _cyhal_utils_try_alloc() 63 cyhal_resource_inst_t inst = { rsc, pin_map[i].block_num, pin_map[i].channel_num }; in _cyhal_utils_try_alloc() 66 return &pin_map[i]; in _cyhal_utils_try_alloc()
|