Home
last modified time | relevance | path

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

123

/hal_infineon-3.6.0/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.c291 CY_ASSERT(false); in _cyhal_ipc_rtos_get_rtos_sema_index()
453 CY_ASSERT(NULL != obj); in _cyhal_ipc_acquire_core_sync_sema()
454 CY_ASSERT(NULL != timeout_us); in _cyhal_ipc_acquire_core_sync_sema()
484 CY_ASSERT(NULL != obj); in _cyhal_ipc_clear_interrupt()
506 CY_ASSERT(NULL != obj); in _cyhal_ipc_check_isr_handled()
507 CY_ASSERT(NULL != timeout); in _cyhal_ipc_check_isr_handled()
561 CY_ASSERT(NULL != obj); in _cyhal_ipc_enable_interrupt()
595 CY_ASSERT(NULL != queue_handle); in _cyhal_ipc_find_last_element()
604 CY_ASSERT(NULL != queue_to_be_added); in _cyhal_ipc_check_queue_number_used()
624 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()
504 CY_ASSERT(NULL != clocked_item); in _cyhal_utils_allocate_clock()
536 CY_ASSERT(false); /* Use APIs provided by the clock driver */ in _cyhal_utils_allocate_clock()
546 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.c396 CY_ASSERT(NULL != obj); in cyhal_nvm_init()
434 CY_ASSERT(NULL != obj); in cyhal_nvm_free()
441 CY_ASSERT(_cyhal_nvm_init_count > 0); in cyhal_nvm_free()
463 CY_ASSERT(NULL != obj); in cyhal_nvm_get_info()
464 CY_ASSERT(NULL != info); in cyhal_nvm_get_info()
473 CY_ASSERT(NULL != obj); in cyhal_nvm_read()
521 CY_ASSERT(NULL != obj); in cyhal_nvm_erase()
580 CY_ASSERT(NULL != obj); in cyhal_nvm_write()
630 CY_ASSERT(NULL != obj); in cyhal_nvm_otp_write()
663 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.c327 CY_ASSERT(callback_data != NULL); in _cyhal_syspm_register_peripheral_callback()
333 CY_ASSERT(callback_data != NULL); in _cyhal_syspm_unregister_peripheral_callback()
483 CY_ASSERT(false); in cyhal_syspm_set_system_state()
493 CY_ASSERT(callback_data != NULL); in cyhal_syspm_register_callback()
499 CY_ASSERT(callback_data != NULL); in cyhal_syspm_unregister_callback()
505 CY_ASSERT(_cyhal_deep_sleep_lock != USHRT_MAX); in cyhal_syspm_lock_deepsleep()
513 CY_ASSERT(_cyhal_deep_sleep_lock != 0U); in cyhal_syspm_unlock_deepsleep()
539 CY_ASSERT(obj != NULL); in cyhal_syspm_tickless_sleep_deepsleep()
596 CY_ASSERT((size_t)supply <= CYHAL_VOLTAGE_SUPPLY_MAX); in cyhal_syspm_set_supply_voltage()
602 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_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_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_gpio.c87 CY_ASSERT(false); /* Unknown port */ in _cyhal_gpio_irq_handler()
116 CY_ASSERT(false); /* Unknown port */ in _cyhal_gpio_irq_handler()
220 CY_ASSERT(false); in _cyhal_gpio_convert_drive_mode()
312 CY_ASSERT(false); /* Should not be freeing if we never initialized anything */ in cyhal_gpio_free()
342 CY_ASSERT(NULL != callback_data->callback); in cyhal_gpio_register_callback()
381 CY_ASSERT(false); /* Unknown port */ in cyhal_gpio_enable_event()
410 CY_ASSERT(false); /* Unknown port */ in cyhal_gpio_enable_event()
461 CY_ASSERT(1u == mapping.block_num); in cyhal_gpio_connect_digital()
505 CY_ASSERT(1u == mapping.block_num); in cyhal_gpio_enable_output()
541 CY_ASSERT(1u == mapping.block_num); in cyhal_gpio_disconnect_digital()
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()
368 CY_ASSERT(NULL != obj); in cyhal_sdio_free()
392 CY_ASSERT(NULL != obj); in cyhal_sdio_configure()
413 CY_ASSERT(NULL != obj); in cyhal_sdio_host_send_cmd()
465 CY_ASSERT(NULL != obj); in cyhal_sdio_host_bulk_transfer()
525 CY_ASSERT(NULL != obj); in cyhal_sdio_host_transfer_async()
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_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_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_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_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()
597 CY_ASSERT(CY_RSLT_SUCCESS == rslt); in _cyhal_pdm_pcm_hw_irq_handler()
681 CY_ASSERT(false); in _cyhal_pdm_pcm_word_length_from_pdl()
711 CY_ASSERT(false); in _cyhal_pdm_pcm_word_length_from_pdl()
1187 CY_ASSERT(NULL != obj); in cyhal_pdm_pcm_init()
1311 CY_ASSERT(NULL != obj); in cyhal_pdm_pcm_init_cfg()
1354 CY_ASSERT(NULL != obj); in cyhal_pdm_pcm_free()
1355CY_ASSERT(_cyhal_pdm_pcm_arrays_initialized); /* Should not be freeing if we never initialized any… in cyhal_pdm_pcm_free()
[all …]
Dcyhal_keyscan.c110 CY_ASSERT(CY_RSLT_SUCCESS == result); in _cyhal_keyscan_irq_handler()
168 CY_ASSERT(false); in _cyhal_keyscan_pm_callback()
341 CY_ASSERT(NULL != obj); in cyhal_keyscan_init()
366 CY_ASSERT(NULL != obj); in cyhal_keyscan_init_cfg()
367 CY_ASSERT(NULL != cfg); in cyhal_keyscan_init_cfg()
368 CY_ASSERT(NULL != cfg->config); in cyhal_keyscan_init_cfg()
391 CY_ASSERT(NULL != obj); in cyhal_keyscan_free()
/hal_infineon-3.6.0/mtb-pdl-cat1/drivers/source/
Dcy_syspm_ppu.c57 CY_ASSERT(ppu != NULL); in cy_pd_ppu_init()
80 CY_ASSERT(ppu != NULL); in cy_pd_ppu_get_programmed_power_mode()
101 CY_ASSERT(ppu != NULL); in cy_pd_ppu_get_power_mode()
125 CY_ASSERT(ppu != NULL); in cy_pd_ppu_set_power_mode()
126 CY_ASSERT(mode < PPU_V1_MODE_COUNT); in cy_pd_ppu_set_power_mode()
153 CY_ASSERT(ppu != NULL); in cy_pd_ppu_set_static_power_mode()
154 CY_ASSERT(mode < PPU_V1_MODE_COUNT); in cy_pd_ppu_set_static_power_mode()
180 CY_ASSERT(ppu != NULL); in cy_pd_ppu_reset()
206 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.c60 CY_ASSERT(CY_SYSPM_IS_PDCM_ID_VALID(host_pd)); in cy_pd_pdcm_get_dependency()
61 CY_ASSERT(CY_SYSPM_IS_PDCM_ID_VALID(dest_pd)); in cy_pd_pdcm_get_dependency()
95 CY_ASSERT(CY_SYSPM_IS_PDCM_ID_VALID(host_pd)); in cy_pd_pdcm_set_dependency()
96 CY_ASSERT(CY_SYSPM_IS_PDCM_ID_VALID(dest_pd)); in cy_pd_pdcm_set_dependency()
128 CY_ASSERT(CY_SYSPM_IS_PDCM_ID_VALID(host_pd)); in cy_pd_pdcm_clear_dependency()
129 CY_ASSERT(CY_SYSPM_IS_PDCM_ID_VALID(dest_pd)); in cy_pd_pdcm_clear_dependency()
/hal_infineon-3.6.0/abstraction-rtos/source/COMPONENT_RTX/
Dcyabs_rtos_rtxv5.c182 CY_ASSERT(((uint32_t)attr.cb_mem & CY_RTOS_ALIGNMENT_MASK) == 0UL); in cy_rtos_create_thread()
183 CY_ASSERT(((uint32_t)attr.stack_mem & CY_RTOS_ALIGNMENT_MASK) == 0UL); in cy_rtos_create_thread()
185 CY_ASSERT((*thread == attr.cb_mem) || (*thread == NULL)); in cy_rtos_create_thread()
420 CY_ASSERT(((uint32_t)attr.cb_mem & CY_RTOS_ALIGNMENT_MASK) == 0UL); in cy_rtos_init_mutex2()
422 CY_ASSERT((*mutex == attr.cb_mem) || (*mutex == NULL)); in cy_rtos_init_mutex2()
529 CY_ASSERT(((uint32_t)attr.cb_mem & CY_RTOS_ALIGNMENT_MASK) == 0UL); in cy_rtos_init_semaphore()
531 CY_ASSERT((*semaphore == attr.cb_mem) || (*semaphore == NULL)); in cy_rtos_init_semaphore()
665 CY_ASSERT(((uint32_t)attr.cb_mem & CY_RTOS_ALIGNMENT_MASK) == 0UL); in cy_rtos_init_event()
667 CY_ASSERT((*event == attr.cb_mem) || (*event == NULL)); in cy_rtos_init_event()
847 CY_ASSERT(((uint32_t)attr.cb_mem & CY_RTOS_ALIGNMENT_MASK) == 0UL); in cy_rtos_init_queue()
[all …]
/hal_infineon-3.6.0/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()

123