联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp

您当前位置:首页 >> C/C++编程C/C++编程

日期:2018-06-22 03:59


/**


 ******************************************************************************

 * @copy

 *

 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS

 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE

 * TIME. AS A RESULT, HANGZHOU NORMAL UNIVERSITY SHAOGUOJIAN SHALL NOT BE HELD LIABLE

 * FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS

 * ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF

 * THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

 *


 */

/* Includes ------------------------------------------------------------------*/

#include "stm32f10x_scom.h"

/** @addtogroup My_Driver

 * @{

 */

/**

 * @}

 */

/** @defgroup SCOM_Import_Functions

 * @{

 */


/**

 * @}

 */


/** @defgroup SCOM_FunctionPrototypes

 * @{

 */

/**

 * @brief  USART1 interrupt service routine

 * @param  None.

 * @retval None.

 */

void USART1_IRQHandler(void)

{

SCOM_USART1_IRQHandler();

}

void SCOM_USART1_IRQHandler(void)

{

#if(SCOM1_USART_IRQn == 37)

SCOM_USART_IRQHandler(SCOM1);

#endif

#if(SCOM2_USART_IRQn == 37)

SCOM_USART_IRQHandler(SCOM2);

#endif

#if(SCOM3_USART_IRQn == 37)

SCOM_USART_IRQHandler(SCOM3);

#endif

#if(SCOM4_USART_IRQn == 37)

SCOM_USART_IRQHandler(SCOM4);

#endif

#if(SCOM5_USART_IRQn == 37)

SCOM_USART_IRQHandler(SCOM5);

#endif

}



/**

 * @brief  USART2 interrupt service routine

 * @param  None.

 * @retval None.

 */

void USART2_IRQHandler(void)

{

SCOM_USART2_IRQHandler();

}

void SCOM_USART2_IRQHandler(void)

{

#if(SCOM1_USART_IRQn == 38)

SCOM_USART_IRQHandler(SCOM1);

#endif

#if(SCOM2_USART_IRQn == 38)

SCOM_USART_IRQHandler(SCOM2);

#endif

#if(SCOM3_USART_IRQn == 38)

SCOM_USART_IRQHandler(SCOM3);

#endif


#if(SCOM4_USART_IRQn == 38)

SCOM_USART_IRQHandler(SCOM4);

#endif


#if(SCOM5_USART_IRQn == 38)

SCOM_USART_IRQHandler(SCOM5);

#endif

}


/**

 * @brief  USART3 interrupt service routine

 * @param  None.

 * @retval None.

 */

void USART3_IRQHandler(void)

{

SCOM_USART3_IRQHandler();

}

void SCOM_USART3_IRQHandler(void)

{

#if(SCOM1_USART_IRQn == 39)

SCOM_USART_IRQHandler(SCOM1);

#endif

#if(SCOM2_USART_IRQn == 39)

SCOM_USART_IRQHandler(SCOM2);

#endif

#if(SCOM3_USART_IRQn == 39)

SCOM_USART_IRQHandler(SCOM3);

#endif

#if(SCOM4_USART_IRQn == 39)

SCOM_USART_IRQHandler(SCOM4);

#endif

#if(SCOM5_USART_IRQn == 39)

SCOM_USART_IRQHandler(SCOM5);

#endif

}


void UART4_IRQHandler(void)

{

SCOM_USART4_IRQHandler();

}

void SCOM_USART4_IRQHandler(void)

{

#if(SCOM1_USART_IRQn == 52)

SCOM_USART_IRQHandler(SCOM1);

#endif

#if(SCOM2_USART_IRQn == 52)

SCOM_USART_IRQHandler(SCOM2);

#endif

#if(SCOM3_USART_IRQn == 52)

SCOM_USART_IRQHandler(SCOM3);

#endif

#if(SCOM4_USART_IRQn == 52)

SCOM_USART_IRQHandler(SCOM4);

#endif

#if(SCOM5_USART_IRQn == 52)

SCOM_USART_IRQHandler(SCOM5);

#endif

}


void UART5_IRQHandler(void)

{

SCOM_USART5_IRQHandler();

}

void SCOM_USART5_IRQHandler(void)

{

#if(SCOM1_USART_IRQn == 53)

SCOM_USART_IRQHandler(SCOM1);

#endif

#if(SCOM2_USART_IRQn == 53)

SCOM_USART_IRQHandler(SCOM2);

#endif

#if(SCOM3_USART_IRQn == 53)

SCOM_USART_IRQHandler(SCOM3);

#endif

#if(SCOM4_USART_IRQn == 53)

SCOM_USART_IRQHandler(SCOM4);

#endif

#if(SCOM5_USART_IRQn == 53)

SCOM_USART_IRQHandler(SCOM5);

#endif

}



/**

 * @brief  DMA1_Channel2 interrupt SendData service routine

 * @param  None.

 * @retval None.

 */

void DMA1_Channel2_IRQHandler(void)

{

SCOM_DMA1_Channel2_IRQHandler();

}

void SCOM_DMA1_Channel2_IRQHandler(void)

{


#if(SCOM1_tx_DMA_Channel_IRQn == 12)

   SCOM_TX_DMA_IRQHandler(SCOM1);

#endif

#if(SCOM2_tx_DMA_Channel_IRQn == 12)

   SCOM_TX_DMA_IRQHandler(SCOM2);

#endif

#if(SCOM3_tx_DMA_Channel_IRQn == 12)

   SCOM_TX_DMA_IRQHandler(SCOM3);

#endif

#if(SCOM4_tx_DMA_Channel_IRQn == 12)

   SCOM_TX_DMA_IRQHandler(SCOM4);

#endif

}




/**

 * @brief  DMA1_Channel4 interrupt SendData  service routine

 * @param  None.

 * @retval None.

 */

void DMA1_Channel4_IRQHandler(void)

{

SCOM_DMA1_Channel4_IRQHandler();

}

void SCOM_DMA1_Channel4_IRQHandler(void)

{

#if(SCOM1_tx_DMA_Channel_IRQn == 14)

   SCOM_TX_DMA_IRQHandler(SCOM1);

#endif

#if(SCOM2_tx_DMA_Channel_IRQn == 14)

   SCOM_TX_DMA_IRQHandler(SCOM2);

#endif

#if(SCOM3_tx_DMA_Channel_IRQn == 14)

   SCOM_TX_DMA_IRQHandler(SCOM3);

#endif


#if(SCOM4_tx_DMA_Channel_IRQn == 14)

   SCOM_TX_DMA_IRQHandler(SCOM4);

#endif

}


/**

 * @brief  DMA1_Channel7 interrupt SendData service routine

 * @param  None.

 * @retval None.

 */

void DMA1_Channel7_IRQHandler(void)

{

SCOM_DMA1_Channel7_IRQHandler();

}

void SCOM_DMA1_Channel7_IRQHandler(void)

{

#if(SCOM1_tx_DMA_Channel_IRQn == 17)

   SCOM_TX_DMA_IRQHandler(SCOM1);

#endif

#if(SCOM2_tx_DMA_Channel_IRQn == 17)

   SCOM_TX_DMA_IRQHandler(SCOM2);

#endif

#if(SCOM3_tx_DMA_Channel_IRQn == 17)

   SCOM_TX_DMA_IRQHandler(SCOM3);

#endif


#if(SCOM4_tx_DMA_Channel_IRQn == 17)

   SCOM_TX_DMA_IRQHandler(SCOM4);

#endif

}


void DMA2_Channel4_5_IRQHandler(void)  

{

SCOM_DMA2_Channel5_IRQHandler();

}

void SCOM_DMA2_Channel5_IRQHandler(void)

{

#if(SCOM1_tx_DMA_Channel_IRQn == 59)

 SCOM_TX_DMA_IRQHandler(SCOM1);

#endif

#if(SCOM2_tx_DMA_Channel_IRQn == 59)

 SCOM_TX_DMA_IRQHandler(SCOM2);

#endif


#if(SCOM3_tx_DMA_Channel_IRQn == 59)

 SCOM_TX_DMA_IRQHandler(SCOM3);

#endif


#if(SCOM4_tx_DMA_Channel_IRQn == 59)

 SCOM_TX_DMA_IRQHandler(SCOM4);

#endif

#if(SCOM5_tx_DMA_Channel_IRQn == 59)

 SCOM_TX_DMA_IRQHandler(SCOM5);

#endif

}


/**

 * @}

 */



版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp