Home
last modified time | relevance | path

Searched refs:CY_ASSERT (Results 1 – 25 of 77) sorted by relevance

1234

/hal_infineon-latest/mtb-hal-cat1/source/
Dcyhal_dma.c64 CY_ASSERT(NULL != obj); in cyhal_dma_init_adv()
132 CY_ASSERT(NULL != obj); in cyhal_dma_init_cfg()
133 CY_ASSERT(NULL != cfg); in cyhal_dma_init_cfg()
148 CY_ASSERT(cfg->resource->type == CYHAL_RSC_DW); in cyhal_dma_init_cfg()
155 CY_ASSERT(NULL != obj); in cyhal_dma_free()
156 CY_ASSERT(!cyhal_dma_is_busy(obj)); in cyhal_dma_free()
161 CY_ASSERT(CY_RSLT_SUCCESS == rslt); in cyhal_dma_free()
165 CY_ASSERT(CY_RSLT_SUCCESS == rslt); in cyhal_dma_free()
194 CY_ASSERT(NULL != obj); in cyhal_dma_configure()
205 CY_ASSERT(obj->resource.type == CYHAL_RSC_DW); in cyhal_dma_configure()
[all …]
Dcyhal_sdhc.c248 CY_ASSERT(sdxx != NULL); in _cyhal_sdxx_is_smfr_ready_for_set()
254 CY_ASSERT(sdxx != NULL); in _cyhal_sdxx_is_smfr_ready_for_get()
263 CY_ASSERT(sdxx != NULL); in _cyhal_sdxx_prepare_for_transfer()
314 CY_ASSERT(NULL != callback_arg); in _cyhal_sdhc_gpio_card_detect_callback()
352 CY_ASSERT(NULL != sdxx); in _cyhal_sdxx_handle_weak_func()
359CY_ASSERT((weak_function == _CYHAL_SDHC_CARD_VDD) || (weak_function == _CYHAL_SDHC_CARD_IO_VOLTAGE… in _cyhal_sdxx_handle_weak_func()
474 CY_ASSERT(false); in _cyhal_sdxx_handle_weak_func()
537 CY_ASSERT(false); /* Should never be called with a non-SDHC IRQn */ in _cyhal_sdhc_get_block_from_irqn()
569 CY_ASSERT(false); /* Should never get here. */ in _cyhal_sdxx_setup_pin()
575CY_ASSERT(1 / (sizeof(struct cyhal_sdhc_t_gpio_cb) == sizeof(cyhal_gpio_callback_data_t))); in _cyhal_sdxx_setup_pin()
[all …]
Dcyhal_ipc.c315 CY_ASSERT(false); in _cyhal_ipc_rtos_get_rtos_sema_index()
485 CY_ASSERT(NULL != obj); in _cyhal_ipc_acquire_core_sync_sema()
486 CY_ASSERT(NULL != timeout_us); in _cyhal_ipc_acquire_core_sync_sema()
516 CY_ASSERT(NULL != obj); in _cyhal_ipc_clear_interrupt()
540 CY_ASSERT(NULL != obj); in _cyhal_ipc_check_isr_handled()
541 CY_ASSERT(NULL != timeout); in _cyhal_ipc_check_isr_handled()
599 CY_ASSERT(NULL != obj); in _cyhal_ipc_enable_interrupt()
635 CY_ASSERT(NULL != queue_handle); in _cyhal_ipc_find_last_element()
651 CY_ASSERT(NULL != queue_to_be_added); in _cyhal_ipc_check_queue_number_used()
676 CY_ASSERT(NULL != obj); in _cyhal_ipc_add_queue_element()
[all …]
Dcyhal_rtc.c117 CY_ASSERT(NULL != pdlTime); in _cyhal_rtc_from_pdl_time()
118 CY_ASSERT(NULL != time); in _cyhal_rtc_from_pdl_time()
256 CY_ASSERT(NULL != obj); in cyhal_rtc_init()
271 CY_ASSERT(NULL != obj); in cyhal_rtc_init_cfg()
293 CY_ASSERT(NULL != obj); in cyhal_rtc_free()
303 CY_ASSERT(NULL != obj); in cyhal_rtc_is_enabled()
310 CY_ASSERT(NULL != obj); in cyhal_rtc_read()
325 CY_ASSERT(NULL != obj); in cyhal_rtc_write()
371 CY_ASSERT(NULL != obj); in cyhal_rtc_set_dst()
372 CY_ASSERT(NULL != start); in cyhal_rtc_set_dst()
[all …]
Dcyhal_utils_impl.c73 CY_ASSERT(CY_RSLT_SUCCESS == rslt); in _cyhal_utils_disconnect_and_free()
96 CY_ASSERT(false); in _cyhal_utils_convert_haltopdl_pm_mode()
119 CY_ASSERT(false); in _cyhal_utils_convert_pdltohal_pm_mode()
135 CY_ASSERT(false); in _cyhal_utils_calculate_tolerance()
233 CY_ASSERT(false); in _cyhal_utils_get_hfclk_for_peri_group()
261 CY_ASSERT(false); /* Use APIs provided by the clock driver */ in _cyhal_utils_get_hfclk_for_peri_group()
340 CY_ASSERT(false); /* Use APIs provided by the clock driver */ in _cyhal_utils_get_peri_group()
511 CY_ASSERT(NULL != clocked_item); in _cyhal_utils_allocate_clock()
544 CY_ASSERT(false); /* Use APIs provided by the clock driver */ in _cyhal_utils_allocate_clock()
558 CY_ASSERT(NULL != clocked_item); in _cyhal_utils_allocate_clock()
[all …]
Dcyhal_adc_mic.c127 CY_ASSERT(false); // Should never be called with a non-ADCMIC IRQn in _cyhal_adcmic_get_block_from_irqn()
234 CY_ASSERT(false); /* We only support GPIO channels and the above defines all of them */ in _cyhal_adcmic_convert_channel_sel()
245 CY_ASSERT(NULL != obj); in _cyhal_adc_config_hw()
397 CY_ASSERT(NULL != obj); in cyhal_adc_free()
468 CY_ASSERT(obj != NULL); in cyhal_adc_channel_init_diff()
469 CY_ASSERT(adc != NULL); in cyhal_adc_channel_init_diff()
543 CY_ASSERT(NULL != obj); in cyhal_adc_channel_configure()
560 CY_ASSERT(NULL != obj); in cyhal_adc_channel_free()
595 CY_ASSERT(retry > 0); in _cyhal_adc_read_raw()
601 CY_ASSERT(NULL != obj); in cyhal_adc_read_u16()
[all …]
Dcyhal_nvm.c411 CY_ASSERT(NULL != obj); in cyhal_nvm_init()
459 CY_ASSERT(NULL != obj); in cyhal_nvm_free()
466 CY_ASSERT(_cyhal_nvm_init_count > 0); in cyhal_nvm_free()
488 CY_ASSERT(NULL != obj); in cyhal_nvm_get_info()
489 CY_ASSERT(NULL != info); in cyhal_nvm_get_info()
498 CY_ASSERT(NULL != obj); in cyhal_nvm_read()
546 CY_ASSERT(NULL != obj); in cyhal_nvm_erase()
611 CY_ASSERT(NULL != obj); in cyhal_nvm_write()
661 CY_ASSERT(NULL != obj); in cyhal_nvm_otp_write()
694 CY_ASSERT(NULL != obj); in cyhal_nvm_program()
[all …]
Dcyhal_comp_lp.c109 CY_ASSERT(false); // Should never be called in _cyhal_lpcomp_get_block_from_irqn()
131 CY_ASSERT(false); in _cyhal_comp_lp_convert_power()
146 CY_ASSERT(false); in _cyhal_comp_lp_convert_power()
167 CY_ASSERT(false); in _cyhal_comp_lp_get_enabled_events()
185 CY_ASSERT(false); in _cyhal_comp_lp_convert_hal_event()
231 CY_ASSERT(NULL != obj); in _cyhal_comp_lp_init()
354 CY_ASSERT(NULL != obj); in _cyhal_comp_lp_free()
387 CY_ASSERT(NULL != obj); in _cyhal_comp_lp_configure()
400 CY_ASSERT(NULL != obj); in _cyhal_comp_lp_set_power()
412 CY_ASSERT(NULL != obj); in _cyhal_comp_lp_read()
Dcyhal_syspm.c329 CY_ASSERT(callback_data != NULL); in _cyhal_syspm_register_peripheral_callback()
335 CY_ASSERT(callback_data != NULL); in _cyhal_syspm_unregister_peripheral_callback()
459 CY_ASSERT(false); in cyhal_syspm_set_system_state()
469 CY_ASSERT(callback_data != NULL); in cyhal_syspm_register_callback()
475 CY_ASSERT(callback_data != NULL); in cyhal_syspm_unregister_callback()
481 CY_ASSERT(_cyhal_deep_sleep_lock != USHRT_MAX); in cyhal_syspm_lock_deepsleep()
489 CY_ASSERT(_cyhal_deep_sleep_lock != 0U); in cyhal_syspm_unlock_deepsleep()
515 CY_ASSERT(obj != NULL); in cyhal_syspm_tickless_sleep_deepsleep()
601 CY_ASSERT((size_t)supply <= CYHAL_VOLTAGE_SUPPLY_MAX); in cyhal_syspm_set_supply_voltage()
607 CY_ASSERT((size_t)supply <= CYHAL_VOLTAGE_SUPPLY_MAX); in cyhal_syspm_get_supply_voltage()
Dcyhal_comp_ctb.c131 CY_ASSERT(false); in _cyhal_comp_ctb_get_enabled_events()
149 CY_ASSERT(false); in _cyhal_comp_ctb_convert_hal_event()
202 CY_ASSERT(NULL != obj); in _cyhal_comp_ctb_init()
273 CY_ASSERT(NULL != obj); in _cyhal_comp_ctb_free()
274CY_ASSERT(_cyhal_comp_ctb_arrays_initialized); /* Should not be freeing if we never initialized an… in _cyhal_comp_ctb_free()
310 CY_ASSERT(NULL != obj); in _cyhal_comp_ctb_set_power()
319 CY_ASSERT(NULL != obj); in _cyhal_comp_ctb_configure()
340 CY_ASSERT(NULL != obj); in _cyhal_comp_ctb_read()
Dcyhal_gpio.c95 CY_ASSERT(false); /* Unknown port */ in _cyhal_gpio_irq_handler()
124 CY_ASSERT(false); /* Unknown port */ in _cyhal_gpio_irq_handler()
228 CY_ASSERT(false); in _cyhal_gpio_convert_drive_mode()
263 CY_ASSERT(false); /* Unknown port */ in _cyhal_get_irqn()
291 CY_ASSERT(false); /* Unknown port */ in _cyhal_get_irqn()
383 CY_ASSERT(false); /* Should not be freeing if we never initialized anything */ in cyhal_gpio_free()
413 CY_ASSERT(NULL != callback_data->callback); in cyhal_gpio_register_callback()
480 CY_ASSERT(1u == mapping.block_num); in cyhal_gpio_connect_digital()
524 CY_ASSERT(1u == mapping.block_num); in cyhal_gpio_enable_output()
560 CY_ASSERT(1u == mapping.block_num); in cyhal_gpio_disconnect_digital()
Dcyhal_ezi2c.c136 CY_ASSERT(false); in _cyhal_ezi2c_pm_callback_instance()
252 CY_ASSERT(NULL != obj); in _cyhal_ezi2c_setup_and_enable()
253 CY_ASSERT(NULL != slave1_cfg); in _cyhal_ezi2c_setup_and_enable()
276 CY_ASSERT(NULL != obj); in cyhal_ezi2c_init()
327 CY_ASSERT(NULL != obj); in cyhal_ezi2c_free()
395 CY_ASSERT(NULL != obj); in cyhal_ezi2c_init_cfg()
396 CY_ASSERT(NULL != cfg); in cyhal_ezi2c_init_cfg()
397 CY_ASSERT(NULL != cfg->config); in cyhal_ezi2c_init_cfg()
Dcyhal_comp.c147 CY_ASSERT(obj->resource.type == CYHAL_RSC_LPCOMP); in cyhal_comp_set_power()
163 CY_ASSERT(obj->resource.type == CYHAL_RSC_LPCOMP); in cyhal_comp_configure()
179 CY_ASSERT(obj->resource.type == CYHAL_RSC_LPCOMP); in cyhal_comp_read()
187 CY_ASSERT(NULL != obj); in cyhal_comp_register_callback()
207 CY_ASSERT(obj->resource.type == CYHAL_RSC_LPCOMP); in cyhal_comp_enable_event()
Dcyhal_adc_sar.c370 CY_ASSERT(false); // Should never be called with a non-SAR IRQn in _cyhal_adc_get_block_from_irqn()
615 CY_ASSERT(obj->resource.block_num < _CYHAL_ADC_SAR_INSTANCES); in _cyhal_adc_calculate_source()
645 CY_ASSERT(pin < sizeof(mux_lookup)/sizeof(mux_lookup[0])); in _cyhal_adc_get_mux_switch_control()
676 CY_ASSERT(pin < sizeof(vplus_lookup)/sizeof(vplus_lookup[0])); in _cyhal_adc_get_fw_switch_control()
696 CY_ASSERT(pin < sizeof(vplus_lookup)/sizeof(vplus_lookup[0])); in _cyhal_adc_get_pin_addr()
726 CY_ASSERT(pin < sizeof(vplus_lookup)/sizeof(vplus_lookup[0])); in _cyhal_adc_get_pin_addr()
745 CY_ASSERT(false); in _cyhal_adc_convert_vref()
791 CY_ASSERT(hal_config->ext_vref_mv > 0); // Should have been error checked already in _cyhal_adc_get_vref_mv()
796 CY_ASSERT(CYHAL_ADC_REF_VDDA == hal_config->vref); in _cyhal_adc_get_vref_mv()
1016 CY_ASSERT(CYHAL_ASYNC_DMA == obj->async_mode); in _cyhal_adc_irq_handler()
[all …]
Dcyhal_audio_common.c204 CY_ASSERT(false); // Should never be called with a non-I2S IRQn in _cyhal_audioss_get_block_from_irqn()
372 CY_ASSERT(false); // Should never be called with a non-TDM IRQn
550 CY_ASSERT(NULL != obj); in _cyhal_audioss_init()
946 CY_ASSERT(NULL != obj); in _cyhal_audioss_init_cfg()
1003 CY_ASSERT(NULL != obj); in _cyhal_audioss_free()
1223 CY_ASSERT(NULL != obj); in _cyhal_audioss_enable_event()
1380 CY_ASSERT(obj->word_length_rx <= 32); in _cyhal_audioss_read_until_empty()
1397 CY_ASSERT(NULL != obj); in _cyhal_audioss_read()
1446 CY_ASSERT(obj->word_length_tx <= 32); in _cyhal_audioss_write_until_full()
1461 CY_ASSERT(NULL != obj); in _cyhal_audioss_write()
[all …]
Dcyhal_udb_sdio.c163 CY_ASSERT(obj != NULL); in _cyhal_sdio_ds_callback()
219 CY_ASSERT(false); in _cyhal_sdio_ds_callback()
254 CY_ASSERT(NULL != obj); in cyhal_sdio_init()
378 CY_ASSERT(NULL != obj); in cyhal_sdio_free()
402 CY_ASSERT(NULL != obj); in cyhal_sdio_configure()
423 CY_ASSERT(NULL != obj); in cyhal_sdio_host_send_cmd()
475 CY_ASSERT(NULL != obj); in cyhal_sdio_host_bulk_transfer()
535 CY_ASSERT(NULL != obj); in cyhal_sdio_host_transfer_async()
Dcyhal_pdmpcm.c253 CY_ASSERT(false); // Should never be called with a non-PDM IRQn in _cyhal_pdm_pcm_get_block_from_irqn()
457 CY_ASSERT(false); in _cyhal_pdm_pcm_pm_callback()
465 CY_ASSERT(obj->async_read_remaining >= increment); in _cyhal_pdm_pcm_increment_async_buffer()
601 CY_ASSERT(CY_RSLT_SUCCESS == rslt); in _cyhal_pdm_pcm_hw_irq_handler()
685 CY_ASSERT(false); in _cyhal_pdm_pcm_word_length_from_pdl()
715 CY_ASSERT(false); in _cyhal_pdm_pcm_word_length_from_pdl()
1191 CY_ASSERT(NULL != obj); in cyhal_pdm_pcm_init()
1315 CY_ASSERT(NULL != obj); in cyhal_pdm_pcm_init_cfg()
1358 CY_ASSERT(NULL != obj); in cyhal_pdm_pcm_free()
1359CY_ASSERT(_cyhal_pdm_pcm_arrays_initialized); /* Should not be freeing if we never initialized any… in cyhal_pdm_pcm_free()
[all …]
Dcyhal_analog_common.c87 CY_ASSERT(cyhal_analog_ref_count > 0); in _cyhal_analog_free()
114 CY_ASSERT(cyhal_analog_ctb_ref_count > 0); in cyhal_analog_ctb_free()
133CY_ASSERT((NULL != vin_p0_map) || (NULL != _CYHAL_UTILS_GET_RESOURCE(vin_p, cyhal_pin_map_opamp_vi… in _cyhal_opamp_pin_to_mask()
135 CY_ASSERT(NULL != vin_p0_map); in _cyhal_opamp_pin_to_mask()
275 CY_ASSERT(false); in _cyhal_opamp_convert_power()
Dcyhal_timer.c97 CY_ASSERT(false); in _cyhal_timer_convert_direction()
158 CY_ASSERT(NULL != obj); in cyhal_timer_init()
332 CY_ASSERT(NULL != obj); in cyhal_timer_start()
369 CY_ASSERT(NULL != obj); in cyhal_timer_stop()
392 CY_ASSERT(NULL != obj); in cyhal_timer_reset()
415 CY_ASSERT(NULL != obj); in cyhal_timer_read()
445 CY_ASSERT(false); in _cyhal_timer_translate_input_signal()
463 CY_ASSERT(false); in _cyhal_timer_translate_output_signal()
Dcyhal_uart.c283 CY_ASSERT(CYHAL_DMA_TRANSFER_COMPLETE == event); in _cyhal_uart_dma_handler_tx()
286 CY_ASSERT(CYHAL_ASYNC_DMA == obj->async_mode); in _cyhal_uart_dma_handler_tx()
322 CY_ASSERT(CYHAL_DMA_TRANSFER_COMPLETE == event); in _cyhal_uart_dma_handler_rx()
325 CY_ASSERT(CYHAL_ASYNC_DMA == obj->async_mode); in _cyhal_uart_dma_handler_rx()
539 CY_ASSERT(false); in _cyhal_uart_pm_callback_instance()
573 CY_ASSERT(false); in _cyhal_uart_convert_stopbits()
683 CY_ASSERT(false); in _cyhal_uart_setup_resources()
806 CY_ASSERT(NULL != obj); in cyhal_uart_init()
864 CY_ASSERT(NULL != obj); in cyhal_uart_init_cfg()
865 CY_ASSERT(NULL != cfg); in cyhal_uart_init_cfg()
[all …]
/hal_infineon-latest/mtb-pdl-cat1/drivers/source/
Dcy_syspm_ppu.c59 CY_ASSERT(ppu != NULL); in cy_pd_ppu_init()
82 CY_ASSERT(ppu != NULL); in cy_pd_ppu_get_programmed_power_mode()
111 CY_ASSERT(ppu != NULL); in cy_pd_ppu_get_power_mode()
144 CY_ASSERT(ppu != NULL); in cy_pd_ppu_set_power_mode()
145 CY_ASSERT(mode < PPU_V1_MODE_COUNT); in cy_pd_ppu_set_power_mode()
178 CY_ASSERT(ppu != NULL); in cy_pd_ppu_enable_dynamic_mode()
211 CY_ASSERT(ppu != NULL); in cy_pd_ppu_set_static_power_mode()
212 CY_ASSERT(mode < PPU_V1_MODE_COUNT); in cy_pd_ppu_set_static_power_mode()
246 CY_ASSERT(ppu != NULL); in cy_pd_ppu_reset()
272 CY_ASSERT(ppu != NULL); in cy_pd_ppu_get_ds_fail_device()
Dcy_mcwdt_b.c239 CY_ASSERT(0u != 0u); in Cy_MCWDT_SetLowerAction()
278 CY_ASSERT(0u != 0u); in Cy_MCWDT_SetUpperAction()
317 CY_ASSERT(0u != 0u); in Cy_MCWDT_SetWarnAction()
381 CY_ASSERT(0u != 0u); in Cy_MCWDT_GetLowerAction()
421 CY_ASSERT(0u != 0u); in Cy_MCWDT_GetUpperAction()
468 CY_ASSERT(0u != 0u); in Cy_MCWDT_GetWarnAction()
535 CY_ASSERT(0u != 0u); in Cy_MCWDT_SetAutoService()
577 CY_ASSERT(0u != 0u); in Cy_MCWDT_GetAutoService()
621 CY_ASSERT(0u != 0u); in Cy_MCWDT_SetSleepDeepPause()
662 CY_ASSERT(0u != 0u); in Cy_MCWDT_GetSleepDeepPause()
[all …]
Dcy_syspm_pdcm.c62 CY_ASSERT(CY_SYSPM_IS_PDCM_ID_VALID(host_pd)); in cy_pd_pdcm_get_dependency()
63 CY_ASSERT(CY_SYSPM_IS_PDCM_ID_VALID(dest_pd)); in cy_pd_pdcm_get_dependency()
103 CY_ASSERT(CY_SYSPM_IS_PDCM_ID_VALID(host_pd)); in cy_pd_pdcm_set_dependency()
104 CY_ASSERT(CY_SYSPM_IS_PDCM_ID_VALID(dest_pd)); in cy_pd_pdcm_set_dependency()
142 CY_ASSERT(CY_SYSPM_IS_PDCM_ID_VALID(host_pd)); in cy_pd_pdcm_clear_dependency()
143 CY_ASSERT(CY_SYSPM_IS_PDCM_ID_VALID(dest_pd)); in cy_pd_pdcm_clear_dependency()
/hal_infineon-latest/abstraction-rtos/source/COMPONENT_RTX/
Dcyabs_rtos_rtxv5.c183 CY_ASSERT(((uint32_t)attr.cb_mem & CY_RTOS_ALIGNMENT_MASK) == 0UL); in cy_rtos_thread_create()
184 CY_ASSERT(((uint32_t)attr.stack_mem & CY_RTOS_ALIGNMENT_MASK) == 0UL); in cy_rtos_thread_create()
186 CY_ASSERT((*thread == attr.cb_mem) || (*thread == NULL)); in cy_rtos_thread_create()
468 CY_ASSERT(((uint32_t)attr.cb_mem & CY_RTOS_ALIGNMENT_MASK) == 0UL); in cy_rtos_mutex_init()
470 CY_ASSERT((*mutex == attr.cb_mem) || (*mutex == NULL)); in cy_rtos_mutex_init()
577 CY_ASSERT(((uint32_t)attr.cb_mem & CY_RTOS_ALIGNMENT_MASK) == 0UL); in cy_rtos_semaphore_init()
579 CY_ASSERT((*semaphore == attr.cb_mem) || (*semaphore == NULL)); in cy_rtos_semaphore_init()
712 CY_ASSERT(((uint32_t)attr.cb_mem & CY_RTOS_ALIGNMENT_MASK) == 0UL); in cy_rtos_event_init()
714 CY_ASSERT((*event == attr.cb_mem) || (*event == NULL)); in cy_rtos_event_init()
892 CY_ASSERT(((uint32_t)attr.cb_mem & CY_RTOS_ALIGNMENT_MASK) == 0UL); in cy_rtos_queue_init()
[all …]
/hal_infineon-latest/whd-bsp-integration/COMPONENT_LWIP/
Dcy_network_buffer_lwip.c115 CY_ASSERT(buffer != NULL); in cy_buffer_get_current_piece_data_pointer()
126 CY_ASSERT(buffer != NULL); in cy_buffer_get_current_piece_size()
137 CY_ASSERT(buffer != NULL); in cy_buffer_set_size()
159 CY_ASSERT(buffer != NULL); in cy_buffer_add_remove_at_front()

1234