Rebaseing to current master

pull/14677/head
Mohammed Mubeen 2021-06-21 14:34:48 +05:30
parent 5049b518fb
commit 2cc08cf5a6
1 changed files with 1 additions and 5 deletions

View File

@ -400,7 +400,7 @@ int can_write(can_t *obj, CAN_Message msg, int cc)
int can_read(can_t *obj, CAN_Message *msg, int handle)
{
UNUSED(handle); // Not supported
UNUSED(handle); // Not supported, RXFIFO0 is set default by can_filter and cannot be changed.
if (HAL_FDCAN_GetRxFifoFillLevel(&obj->CanHandle, FDCAN_RX_FIFO0) == 0) {
return 0; // No message arrived
@ -1109,10 +1109,6 @@ int can_mode(can_t *obj, CanMode mode)
int can_filter(can_t *obj, uint32_t id, uint32_t mask, CANFormat format, int32_t handle)
{
int success = 0;
if(handle != 0) { // message filter handle not supported yet for STM controllers
return 0;
}
// filter for CANAny format cannot be configured for STM32
if ((format == CANStandard) || (format == CANExtended)) {