|
@@ -34,15 +34,15 @@ struct rt_can_filter_item filter1item[4] =
|
|
};
|
|
};
|
|
struct rt_can_filter_config filter1 =
|
|
struct rt_can_filter_config filter1 =
|
|
{
|
|
{
|
|
- .count = 4,
|
|
|
|
- .actived = 1,
|
|
|
|
- .items = filter1item,
|
|
|
|
|
|
+ 4,
|
|
|
|
+ 1,
|
|
|
|
+ filter1item,
|
|
};
|
|
};
|
|
static struct can_app_struct can_data[1] = {
|
|
static struct can_app_struct can_data[1] = {
|
|
{
|
|
{
|
|
- .name = "lpccan1",
|
|
|
|
- .filter = &filter1,
|
|
|
|
- .eventopt = RT_EVENT_FLAG_OR | RT_EVENT_FLAG_CLEAR,
|
|
|
|
|
|
+ "lpccan1",
|
|
|
|
+ &filter1,
|
|
|
|
+ RT_EVENT_FLAG_OR | RT_EVENT_FLAG_CLEAR,
|
|
},
|
|
},
|
|
};
|
|
};
|
|
static rt_err_t lpccanind(rt_device_t dev, rt_size_t size)
|
|
static rt_err_t lpccanind(rt_device_t dev, rt_size_t size)
|