summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorAubr.Cool <[email protected]>2015-07-07 12:01:03 +0800
committerAubr.Cool <[email protected]>2015-07-07 12:01:56 +0800
commit5f860e8f94445bd2186d2fbcac1a714c1815a9c1 (patch)
tree303598dcb5ec34051a2381d57e45b5d16ea5d90f /components/drivers
parent0f20bf12fda09cceda71eb7005539726516acf78 (diff)
[DeviceDriver]add missing hdr define
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/can/can.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/drivers/can/can.c b/components/drivers/can/can.c
index a0e5178107..4de965a2fa 100644
--- a/components/drivers/can/can.c
+++ b/components/drivers/can/can.c
@@ -56,7 +56,6 @@ rt_inline int _can_int_rx(struct rt_can_device *can, struct rt_can_msg *data, in
{
int size;
struct rt_can_rx_fifo *rx_fifo;
-
RT_ASSERT(can != RT_NULL);
size = msgs;
@@ -67,6 +66,9 @@ rt_inline int _can_int_rx(struct rt_can_device *can, struct rt_can_msg *data, in
while (msgs)
{
rt_base_t level;
+#ifdef RT_CAN_USING_HDR
+ rt_int32_t hdr;
+#endif /*RT_CAN_USING_HDR*/
struct rt_can_msg_list *listmsg = RT_NULL;
/* disable interrupt */