diff --git a/include/csp/interfaces/csp_if_can.h b/include/csp/interfaces/csp_if_can.h index ac515a561..9b1bad7de 100644 --- a/include/csp/interfaces/csp_if_can.h +++ b/include/csp/interfaces/csp_if_can.h @@ -51,6 +51,8 @@ struct csp_can_config { */ int csp_can_init(uint8_t mode, struct csp_can_config *conf); +csp_queue_handle_t * get_csp_can_queue(); + #ifdef __cplusplus } /* extern "C" */ #endif diff --git a/src/interfaces/csp_if_can.c b/src/interfaces/csp_if_can.c index 31c621023..4c4ef56dc 100644 --- a/src/interfaces/csp_if_can.c +++ b/src/interfaces/csp_if_can.c @@ -114,6 +114,12 @@ static csp_thread_handle_t csp_can_rx_task_h; /* RX frame queue */ static csp_queue_handle_t csp_can_rx_queue; + +csp_queue_handle_t get_csp_can_queue(){ + + return csp_can_rx_queue; +} + /* Identification number */ static int csp_can_id_init(void) {