Browse Source

[DeviceDriver]add missing hdr define

Aubr.Cool 10 years ago
parent
commit
5f860e8f94
1 changed files with 3 additions and 1 deletions
  1. 3 1
      components/drivers/can/can.c

+ 3 - 1
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;
     int size;
     struct rt_can_rx_fifo *rx_fifo;
     struct rt_can_rx_fifo *rx_fifo;
-
     RT_ASSERT(can != RT_NULL);
     RT_ASSERT(can != RT_NULL);
     size = msgs;
     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)
     while (msgs)
     {
     {
         rt_base_t level;
         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;
         struct rt_can_msg_list *listmsg = RT_NULL;
 
 
         /* disable interrupt */
         /* disable interrupt */