summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuhy <[email protected]>2021-10-15 14:39:03 +0800
committerliuhy <[email protected]>2021-10-15 14:39:03 +0800
commit5334f1aa8a58bc91ae0da66f9f8e42e85b00f907 (patch)
tree1d622346cccd1f04c7e922dbb59be7e0478e5b1b
parentcda8caeda0cf105dd660192e367017eea0d407ec (diff)
[bsp][essemi] update bsp es32f0654
-rw-r--r--bsp/essemi/es32f0654/drivers/ES/es_conf_info_can.h2
-rw-r--r--bsp/essemi/es32f0654/drivers/ES/es_conf_info_map.h16
-rw-r--r--bsp/essemi/es32f0654/drivers/drv_can.c4
3 files changed, 11 insertions, 11 deletions
diff --git a/bsp/essemi/es32f0654/drivers/ES/es_conf_info_can.h b/bsp/essemi/es32f0654/drivers/ES/es_conf_info_can.h
index a25b903bc5..7254f5660b 100644
--- a/bsp/essemi/es32f0654/drivers/ES/es_conf_info_can.h
+++ b/bsp/essemi/es32f0654/drivers/ES/es_conf_info_can.h
@@ -54,7 +54,7 @@
#endif
#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
#ifndef ES_CAN0_SPEED
#define ES_CAN0_SPEED 1000000
diff --git a/bsp/essemi/es32f0654/drivers/ES/es_conf_info_map.h b/bsp/essemi/es32f0654/drivers/ES/es_conf_info_map.h
index a19f03f548..fc3bafe7e5 100644
--- a/bsp/essemi/es32f0654/drivers/ES/es_conf_info_map.h
+++ b/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
#endif
#ifndef ES_USART1_CTS_GPIO_PORT
-#define ES_USART1_CTS_GPIO_PORT GPIOF
+#define ES_USART1_CTS_GPIO_PORT GPIOA
#endif
#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
#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
@@ -2470,15 +2470,15 @@ static const struct pin_index pins[] =
#define ES_GP16C2T0_CH1_GPIO_FUNC GPIO_FUNC_2
#endif
#ifndef ES_GP16C2T0_CH1_GPIO_PORT
-#define ES_GP16C2T0_CH1_GPIO_PORT GPIOF
+#define ES_GP16C2T0_CH1_GPIO_PORT GPIOA
#endif
#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
#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
diff --git a/bsp/essemi/es32f0654/drivers/drv_can.c b/bsp/essemi/es32f0654/drivers/drv_can.c
index a173d61455..c58ae1f2b2 100644
--- a/bsp/essemi/es32f0654/drivers/drv_can.c
+++ b/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);
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_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);
}