Searched refs:p_obj (Results 1 – 1 of 1) sorted by relevance
314 static void twai_free_driver_obj(twai_obj_t *p_obj) in twai_free_driver_obj() argument318 if (p_obj->pm_lock != NULL) { in twai_free_driver_obj()319 ESP_ERROR_CHECK(esp_pm_lock_delete(p_obj->pm_lock)); in twai_free_driver_obj()323 if (p_obj->tx_queue != NULL) { in twai_free_driver_obj()324 vQueueDelete(p_obj->tx_queue); in twai_free_driver_obj()326 if (p_obj->rx_queue != NULL) { in twai_free_driver_obj()327 vQueueDelete(p_obj->rx_queue); in twai_free_driver_obj()329 if (p_obj->alert_semphr != NULL) { in twai_free_driver_obj()330 vSemaphoreDelete(p_obj->alert_semphr); in twai_free_driver_obj()334 free(p_obj->tx_queue_buff); in twai_free_driver_obj()[all …]