[DeviceDriver]add missing hdr define

This commit is contained in:
Aubr.Cool 2015-07-07 12:01:03 +08:00
parent 0f20bf12fd
commit 5f860e8f94
1 changed files with 3 additions and 1 deletions

View File

@ -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 */