[bsp][essemi] update bsp es32f0654

This commit is contained in:
liuhy 2021-10-15 14:39:03 +08:00
parent cda8caeda0
commit 5334f1aa8a
3 changed files with 11 additions and 11 deletions

View File

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

View File

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

View File

@ -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);
}