From b7571b55497aaf8050ee9bad3725ec7881c5da48 Mon Sep 17 00:00:00 2001 From: "Aubr.Cool" Date: Tue, 7 Jul 2015 12:24:01 +0800 Subject: [PATCH] [BSP] stm32f10x fix bxcan for new changed driver --- bsp/stm32f10x/drivers/bxcan.c | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/bsp/stm32f10x/drivers/bxcan.c b/bsp/stm32f10x/drivers/bxcan.c index 6f1f05c32b..576b9871ab 100644 --- a/bsp/stm32f10x/drivers/bxcan.c +++ b/bsp/stm32f10x/drivers/bxcan.c @@ -1088,16 +1088,6 @@ static const struct rt_can_ops canops = recvmsg, }; #ifdef USING_BXCAN1 -#ifdef RT_CAN_USING_LED -static struct rt_can_led can1rcvled = -{ - CANRT1,PIN_MODE_OUTPUT_OD,1, -}; -static struct rt_can_led can1errled = -{ - CANERR1,PIN_MODE_OUTPUT_OD,1, -}; -#endif static struct stm_bxcan bxcan1data = { .reg = CAN1, @@ -1222,16 +1212,6 @@ void CAN1_SCE_IRQHandler(void) #endif /*USING_BXCAN1*/ #ifdef USING_BXCAN2 -#ifdef RT_CAN_USING_LED -static struct rt_can_led can2rcvled = -{ - CANRT2,PIN_MODE_OUTPUT_OD,1, -}; -static struct rt_can_led can2errled = -{ - CANERR2,PIN_MODE_OUTPUT_OD,1, -}; -#endif static struct stm_bxcan bxcan2data = { .reg = CAN2, @@ -1368,11 +1348,6 @@ int stm32_bxcan_init(void) bxcan1.config.sndboxnumber=3; bxcan1.config.mode=RT_CAN_MODE_NORMAL; bxcan1.config.privmode=0; - #ifdef RT_CAN_USING_LED - bxcan1.config.rcvled = &can1rcvled; - bxcan1.config.sndled = RT_NULL; - bxcan1.config.errled = &can1errled; - #endif bxcan1.config.ticks = 50; #ifdef RT_CAN_USING_HDR bxcan1.config.maxhdr = BX_CAN2_FMRSTART * 4; @@ -1392,11 +1367,6 @@ int stm32_bxcan_init(void) bxcan2.config.sndboxnumber=3; bxcan2.config.mode=RT_CAN_MODE_NORMAL; bxcan2.config.privmode=0; - #ifdef RT_CAN_USING_LED - bxcan2.config.rcvled = &can2rcvled; - bxcan2.config.sndled = RT_NULL; - bxcan2.config.errled = &can2errled; - #endif bxcan2.config.ticks = 50; #ifdef RT_CAN_USING_HDR bxcan2.config.maxhdr = (BX_CAN_FMRNUMBER - BX_CAN2_FMRSTART) * 4; -- GitLab