Browse Source

[bsp][essemi] update bsp es32f0654

liuhy 3 years ago
parent
commit
5334f1aa8a

+ 1 - 1
bsp/essemi/es32f0654/drivers/ES/es_conf_info_can.h

@@ -54,7 +54,7 @@
 #endif
 #endif
 
 
 #ifndef  ES_CAN0_AUTO_BAN_RE_T
 #ifndef  ES_CAN0_AUTO_BAN_RE_T
-#define ES_CAN0_AUTO_BAN_RE_T    ES_C_ENABLE
+#define ES_CAN0_AUTO_BAN_RE_T    ES_C_DISABLE
 #endif
 #endif
 #ifndef  ES_CAN0_SPEED
 #ifndef  ES_CAN0_SPEED
 #define ES_CAN0_SPEED           1000000
 #define ES_CAN0_SPEED           1000000

+ 8 - 8
bsp/essemi/es32f0654/drivers/ES/es_conf_info_map.h

@@ -1233,15 +1233,15 @@ static const struct pin_index pins[] =
 #define ES_USART1_CTS_GPIO_FUNC GPIO_FUNC_3
 #define ES_USART1_CTS_GPIO_FUNC GPIO_FUNC_3
 #endif
 #endif
 #ifndef ES_USART1_CTS_GPIO_PORT
 #ifndef ES_USART1_CTS_GPIO_PORT
-#define ES_USART1_CTS_GPIO_PORT GPIOF
+#define ES_USART1_CTS_GPIO_PORT GPIOA
 #endif
 #endif
 #ifndef ES_USART1_CTS_GPIO_PIN
 #ifndef ES_USART1_CTS_GPIO_PIN
-#define ES_USART1_CTS_GPIO_PIN GPIO_PIN_7
+#define ES_USART1_CTS_GPIO_PIN GPIO_PIN_0
 #endif
 #endif
 
 
 #ifndef ES_USART1_CTS_PIN
 #ifndef ES_USART1_CTS_PIN
-#ifdef ES_PIN_GPIO_F_7
-#define ES_USART1_CTS_PIN ES_PIN_GPIO_F_7
+#ifdef ES_PIN_GPIO_A_0
+#define ES_USART1_CTS_PIN ES_PIN_GPIO_A_0
 #endif
 #endif
 #endif
 #endif
 
 
@@ -2470,15 +2470,15 @@ static const struct pin_index pins[] =
 #define ES_GP16C2T0_CH1_GPIO_FUNC GPIO_FUNC_2
 #define ES_GP16C2T0_CH1_GPIO_FUNC GPIO_FUNC_2
 #endif
 #endif
 #ifndef ES_GP16C2T0_CH1_GPIO_PORT
 #ifndef ES_GP16C2T0_CH1_GPIO_PORT
-#define ES_GP16C2T0_CH1_GPIO_PORT GPIOF
+#define ES_GP16C2T0_CH1_GPIO_PORT GPIOA
 #endif
 #endif
 #ifndef ES_GP16C2T0_CH1_GPIO_PIN
 #ifndef ES_GP16C2T0_CH1_GPIO_PIN
-#define ES_GP16C2T0_CH1_GPIO_PIN GPIO_PIN_7
+#define ES_GP16C2T0_CH1_GPIO_PIN GPIO_PIN_0
 #endif
 #endif
 
 
 #ifndef ES_GP16C2T0_CH1_PIN
 #ifndef ES_GP16C2T0_CH1_PIN
-#ifdef ES_PIN_GPIO_F_7
-#define ES_GP16C2T0_CH1_PIN ES_PIN_GPIO_F_7
+#ifdef ES_PIN_GPIO_A_0
+#define ES_GP16C2T0_CH1_PIN ES_PIN_GPIO_A_0
 #endif
 #endif
 #endif
 #endif
 
 

+ 2 - 2
bsp/essemi/es32f0654/drivers/drv_can.c

@@ -190,10 +190,10 @@ static rt_err_t _can_control(struct rt_can_device *can_device, int cmd, void *ar
             NVIC_EnableIRQ(CAN0_IRQn);
             NVIC_EnableIRQ(CAN0_IRQn);
 
 
             ald_can_interrupt_config(&drv_can->CanHandle, CAN_IT_FP0, ENABLE);
             ald_can_interrupt_config(&drv_can->CanHandle, CAN_IT_FP0, ENABLE);
-            ald_can_interrupt_config(&drv_can->CanHandle, CAN_IT_FF0, ENABLE);
+//            ald_can_interrupt_config(&drv_can->CanHandle, CAN_IT_FF0, ENABLE);
             ald_can_interrupt_config(&drv_can->CanHandle, CAN_IT_FOV0, ENABLE);
             ald_can_interrupt_config(&drv_can->CanHandle, CAN_IT_FOV0, ENABLE);
             ald_can_interrupt_config(&drv_can->CanHandle, CAN_IT_FP1, ENABLE);
             ald_can_interrupt_config(&drv_can->CanHandle, CAN_IT_FP1, ENABLE);
-            ald_can_interrupt_config(&drv_can->CanHandle, CAN_IT_FF1, ENABLE);
+//            ald_can_interrupt_config(&drv_can->CanHandle, CAN_IT_FF1, ENABLE);
             ald_can_interrupt_config(&drv_can->CanHandle, CAN_IT_FOV1, ENABLE);
             ald_can_interrupt_config(&drv_can->CanHandle, CAN_IT_FOV1, ENABLE);
 
 
         }
         }