Searched refs:TWAI_CHECK (Results 1 – 1 of 1) sorted by relevance
/hal_espressif-3.6.0/components/driver/ |
D | twai.c | 29 #define TWAI_CHECK(cond, ret_val) ({ \ macro 401 TWAI_CHECK(g_config != NULL, ESP_ERR_INVALID_ARG); in twai_driver_install() 402 TWAI_CHECK(t_config != NULL, ESP_ERR_INVALID_ARG); in twai_driver_install() 403 TWAI_CHECK(f_config != NULL, ESP_ERR_INVALID_ARG); in twai_driver_install() 404 TWAI_CHECK(g_config->rx_queue_len > 0, ESP_ERR_INVALID_ARG); in twai_driver_install() 405 TWAI_CHECK(g_config->tx_io >= 0 && g_config->tx_io < GPIO_NUM_MAX, ESP_ERR_INVALID_ARG); in twai_driver_install() 406 TWAI_CHECK(g_config->rx_io >= 0 && g_config->rx_io < GPIO_NUM_MAX, ESP_ERR_INVALID_ARG); in twai_driver_install() 407 …TWAI_CHECK(t_config->brp >= SOC_TWAI_BRP_MIN && t_config->brp <= SOC_TWAI_BRP_MAX, ESP_ERR_INVALID… in twai_driver_install() 409 TWAI_CHECK(!(g_config->intr_flags & ESP_INTR_FLAG_IRAM), ESP_ERR_INVALID_ARG); in twai_driver_install() 420 TWAI_CHECK(p_twai_obj_dummy != NULL, ESP_ERR_NO_MEM); in twai_driver_install() [all …]
|