Home
last modified time | relevance | path

Searched refs:map (Results 1 – 5 of 5) sorted by relevance

/hal_infineon-3.6.0/mtb-hal-cat1/include_pvt/
Dcyhal_utils.h56 #define _CYHAL_UTILS_ASSIGN_RESOURCE(rsc, resource_type, map) \ argument
58 (rsc).block_num = ((map)->block_num); \
59 (rsc).channel_num = ((map)->channel_num)
148 …_map_resource_equal(const cyhal_resource_inst_t *resource, const cyhal_resource_pin_mapping_t *map, in _cyhal_utils_map_resource_equal() argument
151 …return (resource->block_num == map->block_num) && (ignore_channel || resource->channel_num == map-… in _cyhal_utils_map_resource_equal()
187 uint32_t _cyhal_utils_convert_flags(const uint32_t map[], uint32_t count, uint32_t source_flags);
/hal_infineon-3.6.0/mtb-hal-cat1/source/
Dcyhal_pwm.c333 …const cyhal_resource_pin_mapping_t* map = _CYHAL_UTILS_TRY_ALLOC(pin, CYHAL_RSC_TCPWM, cyhal_pin_m… in cyhal_pwm_init_adv() local
337 if (map == NULL) in cyhal_pwm_init_adv()
340 map = _CYHAL_UTILS_TRY_ALLOC(pin, CYHAL_RSC_TCPWM, cyhal_pin_map_tcpwm_line_compl); in cyhal_pwm_init_adv()
344 if (map == NULL) in cyhal_pwm_init_adv()
350 _CYHAL_UTILS_ASSIGN_RESOURCE(obj->tcpwm.resource, CYHAL_RSC_TCPWM, map); in cyhal_pwm_init_adv()
356 … result = _cyhal_utils_reserve_and_connect(map, (uint8_t)CYHAL_PIN_MAP_DRIVE_MODE_TCPWM_LINE); in cyhal_pwm_init_adv()
363 …_SelectInputSignalForWGPOMux(map->channel_num, (TCPWM_LOGIC_TRIGMUX_INPUT_t)(TCPWM_LOGIC_TRIGMUX_W… in cyhal_pwm_init_adv()
Dcyhal_utils.c107 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()
Dcyhal_sdhc.c546 …const cyhal_resource_pin_mapping_t *map = _cyhal_utils_get_resource(pin, pinmap, count, NULL, fals… in _cyhal_sdxx_setup_pin() local
548 if (map == NULL) in _cyhal_sdxx_setup_pin()
589 ? _cyhal_utils_reserve_and_connect(map, drive_mode) in _cyhal_sdxx_setup_pin()
1350 …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
1352 if (NULL == map || NC == data[0]) in _cyhal_sdhc_init_common_hw()
1358 cyhal_resource_inst_t rsc = { CYHAL_RSC_SDHC, map->block_num, map->channel_num }; in _cyhal_sdhc_init_common_hw()
Dcyhal_adc_sar.c1133 …const cyhal_resource_pin_mapping_t* map = _CYHAL_UTILS_TRY_ALLOC(pin, CYHAL_RSC_ADC, cyhal_pin_map… in _cyhal_adc_config_hw() local
1135 if (NULL == map) in _cyhal_adc_config_hw()
1143 obj->resource.block_num = map->block_num; in _cyhal_adc_config_hw()