Browse Source

如果开启了RT_CAN_USING_HDR,则提示该驱动不支持硬件过滤器,请取消RT_CAN_USING_HDR。

zhangjun1996 6 years ago
parent
commit
778199f876
1 changed files with 4 additions and 0 deletions
  1. 4 0
      bsp/stm32/libraries/HAL_Drivers/drv_can.c

+ 4 - 0
bsp/stm32/libraries/HAL_Drivers/drv_can.c

@@ -15,6 +15,10 @@
 
 
 #ifdef RT_USING_CAN
 #ifdef RT_USING_CAN
 
 
+#ifdef RT_CAN_USING_HDR
+  #error "The CAN driver does not support hardware filters, Please disable RT_CAN_USING_HDR"
+#endif
+
 #if defined (SOC_SERIES_STM32F1)
 #if defined (SOC_SERIES_STM32F1)
 static const struct stm_baud_rate_tab can_baud_rate_tab[] =
 static const struct stm_baud_rate_tab can_baud_rate_tab[] =
 {
 {