From 58e0376479aafd05f9173b43013b0d56b98d55cc Mon Sep 17 00:00:00 2001 From: jinbangju <730456@qq.com> Date: Thu, 16 Dec 2021 03:57:37 +0000 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E3=80=91=E4=BF=AE=E6=94=B9=20RT=5FCAN=5FFILTER=5FITEM=5FINIT?= =?UTF-8?q?=E4=B8=AD=E7=AC=AC4=E4=B8=AA=E5=8F=82=E6=95=B01=E4=B8=BA0=20str?= =?UTF-8?q?uct=20rt=5Fcan=5Ffilter=5Fitem=20items[5]=20=3D=20{=20=20=20=20?= =?UTF-8?q?=20RT=5FCAN=5FFILTER=5FITEM=5FINIT(0x100,=200,=200,=200,=200x70?= =?UTF-8?q?0,=20RT=5FNULL,=20RT=5FNULL),=20/*=20std,match=20ID:0x100~0x1ff?= =?UTF-8?q?=EF=BC=8Chdr=20=E4=B8=BA=20-=201=EF=BC=8C=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E8=BF=87=E6=BB=A4=E8=A1=A8=20*/=20=20=20=20?= =?UTF-8?q?=20RT=5FCAN=5FFILTER=5FITEM=5FINIT(0x300,=200,=200,=200,=200x70?= =?UTF-8?q?0,=20RT=5FNULL,=20RT=5FNULL),=20/*=20std,match=20ID:0x300~0x3ff?= =?UTF-8?q?=EF=BC=8Chdr=20=E4=B8=BA=20-=201=20*/=20=20=20=20=20RT=5FCAN=5F?= =?UTF-8?q?FILTER=5FITEM=5FINIT(0x211,=200,=200,=200,=200x7ff,=20RT=5FNULL?= =?UTF-8?q?,=20RT=5FNULL),=20/*=20std,match=20ID:0x211=EF=BC=8Chdr=20?= =?UTF-8?q?=E4=B8=BA=20-=201=20*/=20=20=20=20=20RT=5FCAN=5FFILTER=5FSTD=5F?= =?UTF-8?q?INIT(0x486,=20RT=5FNULL,=20RT=5FNULL),=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20/*=20std,match=20ID:0x486?= =?UTF-8?q?=EF=BC=8Chdr=20=E4=B8=BA=20-=201=20*/=20=20=20=20=20{0x555,=200?= =?UTF-8?q?,=200,=200,=200x7ff,=207,}=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20/*=20std,match=20ID:0x555=EF=BC=8Chdr=20?= =?UTF-8?q?=E4=B8=BA=207=EF=BC=8C=E6=8C=87=E5=AE=9A=E8=AE=BE=E7=BD=AE=207?= =?UTF-8?q?=20=E5=8F=B7=E8=BF=87=E6=BB=A4=E8=A1=A8=20*/=20};?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../programming-manual/device/can/can.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rt-thread-version/rt-thread-standard/programming-manual/device/can/can.md b/rt-thread-version/rt-thread-standard/programming-manual/device/can/can.md index 0db30be..90e87e2 100644 --- a/rt-thread-version/rt-thread-standard/programming-manual/device/can/can.md +++ b/rt-thread-version/rt-thread-standard/programming-manual/device/can/can.md @@ -515,11 +515,11 @@ static void can_rx_thread(void *parameter) #ifdef RT_CAN_USING_HDR struct rt_can_filter_item items[5] = { - RT_CAN_FILTER_ITEM_INIT(0x100, 0, 0, 1, 0x700, RT_NULL, RT_NULL), /* std,match ID:0x100~0x1ff,hdr 为 - 1,设置默认过滤表 */ - RT_CAN_FILTER_ITEM_INIT(0x300, 0, 0, 1, 0x700, RT_NULL, RT_NULL), /* std,match ID:0x300~0x3ff,hdr 为 - 1 */ - RT_CAN_FILTER_ITEM_INIT(0x211, 0, 0, 1, 0x7ff, RT_NULL, RT_NULL), /* std,match ID:0x211,hdr 为 - 1 */ + RT_CAN_FILTER_ITEM_INIT(0x100, 0, 0, 0, 0x700, RT_NULL, RT_NULL), /* std,match ID:0x100~0x1ff,hdr 为 - 1,设置默认过滤表 */ + RT_CAN_FILTER_ITEM_INIT(0x300, 0, 0, 0, 0x700, RT_NULL, RT_NULL), /* std,match ID:0x300~0x3ff,hdr 为 - 1 */ + RT_CAN_FILTER_ITEM_INIT(0x211, 0, 0, 0, 0x7ff, RT_NULL, RT_NULL), /* std,match ID:0x211,hdr 为 - 1 */ RT_CAN_FILTER_STD_INIT(0x486, RT_NULL, RT_NULL), /* std,match ID:0x486,hdr 为 - 1 */ - {0x555, 0, 0, 1, 0x7ff, 7,} /* std,match ID:0x555,hdr 为 7,指定设置 7 号过滤表 */ + {0x555, 0, 0, 0, 0x7ff, 7,} /* std,match ID:0x555,hdr 为 7,指定设置 7 号过滤表 */ }; struct rt_can_filter_config cfg = {5, 1, items}; /* 一共有 5 个过滤表 */ /* 设置硬件过滤表 */ -- Gitee