summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-03-17 10:04:05 +0800
committerGitHub <[email protected]>2019-03-17 10:04:05 +0800
commit0adf83b6a1127da2498686714a71245f58523e98 (patch)
tree10f8d3175441ee78a48380f2c81e1965a3e08e83 /components
parentcac8e7aab5eac572f4bbab6128dd151f513c04d3 (diff)
parentafe802733fa7cdb4b570b98f82f5292154d34201 (diff)
Merge pull request #2352 from ylz0923/master
[bsp][stm32] add can driver.
Diffstat (limited to 'components')
-rw-r--r--components/drivers/can/can.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/can/can.c b/components/drivers/can/can.c
index 81fdf25a1e..078d8bb64a 100644
--- a/components/drivers/can/can.c
+++ b/components/drivers/can/can.c
@@ -53,7 +53,7 @@ rt_inline int _can_int_rx(struct rt_can_device *can, struct rt_can_msg *data, in
{
rt_base_t level;
#ifdef RT_CAN_USING_HDR
- rt_int32_t hdr;
+ rt_int8_t hdr;
#endif /*RT_CAN_USING_HDR*/
struct rt_can_msg_list *listmsg = RT_NULL;
@@ -760,7 +760,7 @@ void rt_hw_can_isr(struct rt_can_device *can, int event)
struct rt_can_rx_fifo *rx_fifo;
struct rt_can_msg_list *listmsg = RT_NULL;
#ifdef RT_CAN_USING_HDR
- rt_int32_t hdr;
+ rt_int8_t hdr;
#endif
int ch = -1;
rt_base_t level;