Searched refs:map (Results 1 – 5 of 5) sorted by relevance
/hal_infineon-3.4.0/mtb-hal-cat1/COMPONENT_PSOC6HAL/include/ |
D | cyhal_utils.h | 54 #define _CYHAL_UTILS_ASSIGN_RESOURCE(rsc, resource_type, map) \ argument 56 (rsc).block_num = ((map)->block_num); \ 57 (rsc).channel_num = ((map)->channel_num) 134 …_map_resource_equal(const cyhal_resource_inst_t *resource, const cyhal_resource_pin_mapping_t *map) in _cyhal_utils_map_resource_equal() argument 136 return (resource->block_num == map->block_num) && (resource->channel_num == map->channel_num); in _cyhal_utils_map_resource_equal() 172 uint32_t _cyhal_utils_convert_flags(const uint32_t map[], uint32_t count, uint32_t source_flags);
|
/hal_infineon-3.4.0/mtb-hal-cat1/COMPONENT_PSOC6HAL/source/ |
D | cyhal_utils.c | 107 uint32_t _cyhal_utils_convert_flags(const uint32_t map[], uint32_t count, uint32_t source_flags) in _cyhal_utils_convert_flags() argument 114 result_flags |= map[i]; in _cyhal_utils_convert_flags() 117 result_flags = map[0]; in _cyhal_utils_convert_flags()
|
D | cyhal_pwm.c | 260 …const cyhal_resource_pin_mapping_t* map = _CYHAL_UTILS_TRY_ALLOC(pin, CYHAL_RSC_TCPWM, cyhal_pin_m… in cyhal_pwm_init_adv() local 264 if (map == NULL) in cyhal_pwm_init_adv() 267 map = _CYHAL_UTILS_TRY_ALLOC(pin, CYHAL_RSC_TCPWM, cyhal_pin_map_tcpwm_line_compl); in cyhal_pwm_init_adv() 271 if (map == NULL) in cyhal_pwm_init_adv() 277 _CYHAL_UTILS_ASSIGN_RESOURCE(obj->tcpwm.resource, CYHAL_RSC_TCPWM, map); in cyhal_pwm_init_adv() 283 result = _cyhal_utils_reserve_and_connect(map, CYHAL_PIN_MAP_DRIVE_MODE_TCPWM_LINE); in cyhal_pwm_init_adv()
|
D | cyhal_sdhc.c | 525 const cyhal_resource_pin_mapping_t *map = _cyhal_utils_get_resource(pin, pinmap, count, NULL); in _cyhal_sdxx_setup_pin() local 527 if (map == NULL) in _cyhal_sdxx_setup_pin() 568 ? _cyhal_utils_reserve_and_connect(map, drive_mode) in _cyhal_sdxx_setup_pin() 1325 …const cyhal_resource_pin_mapping_t *map = _CYHAL_UTILS_GET_RESOURCE(cmd, cyhal_pin_map_sdhc_card_c… in _cyhal_sdhc_init_common_hw() local 1327 if (NULL == map || NC == data[0]) in _cyhal_sdhc_init_common_hw() 1333 cyhal_resource_inst_t rsc = { CYHAL_RSC_SDHC, map->block_num, map->channel_num }; in _cyhal_sdhc_init_common_hw()
|
D | cyhal_adc_sar.c | 788 …const cyhal_resource_pin_mapping_t* map = _CYHAL_UTILS_TRY_ALLOC(pin, CYHAL_RSC_ADC, cyhal_pin_map… in _cyhal_adc_config_hw() local 790 if (NULL == map) in _cyhal_adc_config_hw() 798 obj->resource.block_num = map->block_num; in _cyhal_adc_config_hw()
|