Updated comments appropriately

pull/14677/head
Mohammed Mubeen 2021-06-22 14:22:16 +05:30
parent 2cc08cf5a6
commit 9732cdcce6
1 changed files with 2 additions and 4 deletions

View File

@ -967,10 +967,8 @@ int can_write(can_t *obj, CAN_Message msg, int cc)
int can_read(can_t *obj, CAN_Message *msg, int handle)
{
//handle is the FIFO number
int rxfifo_default = DEFAULT_RXFIFO; //FIFO selection cannot be controlled by software for STM32, default FIFO is 0
//FIFO selection cannot be controlled by software for STM32, default FIFO is 0, hence handle is not used
int rxfifo_default = DEFAULT_RXFIFO;
CAN_TypeDef *can = obj->CanHandle.Instance;
// check FPM0 which holds the pending message count in FIFO 0