mirror of
https://github.com/ArteryTek/AT32F415_Firmware_Library.git
synced 2026-05-21 09:22:11 +00:00
update version to v2.1.2
This commit is contained in:
@@ -108,7 +108,7 @@ static void can_configuration(void)
|
||||
nvic_irq_enable(CAN1_SE_IRQn, 0x00, 0x00);
|
||||
nvic_irq_enable(CAN1_RX0_IRQn, 0x00, 0x00);
|
||||
can_interrupt_enable(CAN1, CAN_RF0MIEN_INT, TRUE);
|
||||
|
||||
|
||||
/* error interrupt enable */
|
||||
can_interrupt_enable(CAN1, CAN_ETRIEN_INT, TRUE);
|
||||
can_interrupt_enable(CAN1, CAN_EOIEN_INT, TRUE);
|
||||
@@ -148,7 +148,7 @@ static void can_transmit_data(void)
|
||||
void CAN1_RX0_IRQHandler(void)
|
||||
{
|
||||
can_rx_message_type rx_message_struct;
|
||||
if(can_flag_get(CAN1,CAN_RF0MN_FLAG) != RESET)
|
||||
if(can_interrupt_flag_get(CAN1,CAN_RF0MN_FLAG) != RESET)
|
||||
{
|
||||
can_message_receive(CAN1, CAN_RX_FIFO0, &rx_message_struct);
|
||||
if(rx_message_struct.standard_id == 0x400)
|
||||
@@ -166,7 +166,7 @@ void CAN1_RX0_IRQHandler(void)
|
||||
void CAN1_SE_IRQHandler(void)
|
||||
{
|
||||
__IO uint32_t err_index = 0;
|
||||
if(can_flag_get(CAN1,CAN_ETR_FLAG) != RESET)
|
||||
if(can_interrupt_flag_get(CAN1,CAN_ETR_FLAG) != RESET)
|
||||
{
|
||||
err_index = CAN1->ests & 0x70;
|
||||
can_flag_clear(CAN1, CAN_ETR_FLAG);
|
||||
|
||||
@@ -133,7 +133,7 @@ static void can_configuration(void)
|
||||
nvic_irq_enable(CAN1_SE_IRQn, 0x00, 0x00);
|
||||
nvic_irq_enable(CAN1_RX0_IRQn, 0x00, 0x00);
|
||||
can_interrupt_enable(CAN1, CAN_RF0MIEN_INT, TRUE);
|
||||
|
||||
|
||||
/* error interrupt enable */
|
||||
can_interrupt_enable(CAN1, CAN_ETRIEN_INT, TRUE);
|
||||
can_interrupt_enable(CAN1, CAN_EOIEN_INT, TRUE);
|
||||
@@ -260,7 +260,7 @@ static void can_transmit_data(void)
|
||||
void CAN1_RX0_IRQHandler(void)
|
||||
{
|
||||
can_rx_message_type rx_message_struct;
|
||||
if(can_flag_get(CAN1,CAN_RF0MN_FLAG) != RESET)
|
||||
if(can_interrupt_flag_get(CAN1,CAN_RF0MN_FLAG) != RESET)
|
||||
{
|
||||
if(test_result == 4)
|
||||
{
|
||||
@@ -288,7 +288,7 @@ void CAN1_RX0_IRQHandler(void)
|
||||
void CAN1_SE_IRQHandler(void)
|
||||
{
|
||||
__IO uint32_t err_index = 0;
|
||||
if(can_flag_get(CAN1,CAN_ETR_FLAG) != RESET)
|
||||
if(can_interrupt_flag_get(CAN1,CAN_ETR_FLAG) != RESET)
|
||||
{
|
||||
err_index = CAN1->ests & 0x70;
|
||||
can_flag_clear(CAN1, CAN_ETR_FLAG);
|
||||
|
||||
@@ -108,7 +108,7 @@ static void can_configuration(void)
|
||||
nvic_irq_enable(CAN1_SE_IRQn, 0x00, 0x00);
|
||||
nvic_irq_enable(CAN1_RX0_IRQn, 0x00, 0x00);
|
||||
can_interrupt_enable(CAN1, CAN_RF0MIEN_INT, TRUE);
|
||||
|
||||
|
||||
/* error interrupt enable */
|
||||
can_interrupt_enable(CAN1, CAN_ETRIEN_INT, TRUE);
|
||||
can_interrupt_enable(CAN1, CAN_EOIEN_INT, TRUE);
|
||||
@@ -148,7 +148,7 @@ static void can_transmit_data(void)
|
||||
void CAN1_RX0_IRQHandler(void)
|
||||
{
|
||||
can_rx_message_type rx_message_struct;
|
||||
if(can_flag_get(CAN1,CAN_RF0MN_FLAG) != RESET)
|
||||
if(can_interrupt_flag_get(CAN1,CAN_RF0MN_FLAG) != RESET)
|
||||
{
|
||||
can_message_receive(CAN1, CAN_RX_FIFO0, &rx_message_struct);
|
||||
if(rx_message_struct.standard_id == 0x400)
|
||||
@@ -164,7 +164,7 @@ void CAN1_RX0_IRQHandler(void)
|
||||
void CAN1_SE_IRQHandler(void)
|
||||
{
|
||||
__IO uint32_t err_index = 0;
|
||||
if(can_flag_get(CAN1,CAN_ETR_FLAG) != RESET)
|
||||
if(can_interrupt_flag_get(CAN1,CAN_ETR_FLAG) != RESET)
|
||||
{
|
||||
err_index = CAN1->ests & 0x70;
|
||||
can_flag_clear(CAN1, CAN_ETR_FLAG);
|
||||
|
||||
Reference in New Issue
Block a user