Skip to content

Commit

Permalink
Added function to get the rx queue from can interface
Browse files Browse the repository at this point in the history
  • Loading branch information
joehowarth17 authored and aminya committed Dec 15, 2020
1 parent c9c177e commit 64bd625
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/csp/interfaces/csp_if_can.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/interfaces/csp_if_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 64bd625

Please sign in to comment.