From 64bd625d2917dad001a8ceccf88112c26c9ecf1c Mon Sep 17 00:00:00 2001 From: Joseph Date: Thu, 14 Nov 2019 11:43:54 -0600 Subject: [PATCH] Added function to get the rx queue from can interface --- include/csp/interfaces/csp_if_can.h | 2 ++ src/interfaces/csp_if_can.c | 6 ++++++ 2 files changed, 8 insertions(+) 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) {