📄 stm8s_it.c
字号:
/**
* @brief Timer2 Update/Overflow/Break interrupt routine.
* @par Parameters:
* None
* @retval void None
* @par Required preconditions:
* None
* @par Called functions:
* None
*/
@near @interrupt void TIM2_UPD_OVF_BRK_IRQHandler (void)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
return;
}
/**
* @brief Timer2 Capture/Compare interrupt routine.
* @par Parameters:
* None
* @retval void None
* @par Required preconditions:
* None
* @par Called functions:
* None
*/
@near @interrupt void TIM2_CAP_COM_IRQHandler (void)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
return;
}
/**
* @brief Timer3 Update/Overflow/Break interrupt routine.
* @par Parameters:
* None
* @retval void None
* @par Required preconditions:
* None
* @par Called functions:
* None
*/
@near @interrupt void TIM3_UPD_OVF_BRK_IRQHandler (void)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
return;
}
/**
* @brief Timer3 Capture/Compare interrupt routine.
* @par Parameters:
* None
* @retval void None
* @par Required preconditions:
* None
* @par Called functions:
* None
*/
@near @interrupt void TIM3_CAP_COM_IRQHandler (void)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
return;
}
/**
* @brief UART1 TX interrupt routine.
* @par Parameters:
* None
* @retval void None
* @par Required preconditions:
* None
* @par Called functions:
* None
*/
@near @interrupt void UART1_TX_IRQHandler (void)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
/* Write one byte to the transmit data register */
UART1_SendData8(TxBuffer1[IncrementVar_TxCounter1()]);
if (GetVar_TxCounter1() == GetVar_NbrOfDataToTransfer1())
{
/* Disable the UART1 Transmit interrupt */
UART1_ITConfig(UART1_IT_TXE, DISABLE);
}
return;
}
/**
* @brief UART1 RX interrupt routine.
* @par Parameters:
* None
* @retval void None
* @par Required preconditions:
* None
* @par Called functions:
* None
*/
@near @interrupt void UART1_RX_IRQHandler (void)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
/* Read one byte from the receive data register */
RxBuffer1[IncrementVar_RxCounter1()] = UART1_ReceiveData8();
if (GetVar_RxCounter1() == GetVar_NbrOfDataToRead1())
{
/* Disable the UART1 Receive interrupt */
UART1_ITConfig(UART1_IT_RXNE_OR, DISABLE);
}
return;
}
/**
* @brief I2C interrupt routine.
* @par Parameters:
* None
* @retval void None
* @par Required preconditions:
* None
* @par Called functions:
* None
*/
@near @interrupt void I2C_IRQHandler (void)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
return;
}
/**
* @brief UART2 TX interrupt routine.
* @par Parameters:
* None
* @retval void None
* @par Required preconditions:
* None
* @par Called functions:
* None
*/
@near @interrupt void UART2_TX_IRQHandler (void)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
return;
}
/**
* @brief UART2 RX interrupt routine.
* @par Parameters:
* None
* @retval void None
* @par Required preconditions:
* None
* @par Called functions:
* None
*/
@near @interrupt void UART2_RX_IRQHandler (void)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
return;
}
/**
* @brief UART3 TX interrupt routine.
* @par Parameters:
* None
* @retval void None
* @par Required preconditions:
* None
* @par Called functions:
* None
*/
@near @interrupt void UART3_TX_IRQHandler (void)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
/* Write one byte to the transmit data register */
UART3_SendData8(TxBuffer2[IncrementVar_TxCounter2()]);
if (GetVar_TxCounter2() == GetVar_NbrOfDataToTransfer2())
{
/* Disable the UART3 Transmit interrupt */
UART3_ITConfig(UART3_IT_TXE, DISABLE);
}
return;
}
/**
* @brief UART3 RX interrupt routine.
* @par Parameters:
* None
* @retval void None
* @par Required preconditions:
* None
* @par Called functions:
* None
*/
@near @interrupt void UART3_RX_IRQHandler (void)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
/* Read one byte from the receive data register */
RxBuffer2[IncrementVar_RxCounter2()] = UART3_ReceiveData8();
if (GetVar_RxCounter2() == GetVar_NbrOfDataToRead2())
{
/* Disable the UART1 Receive interrupt */
UART3_ITConfig(UART3_IT_RXNE_OR, DISABLE);
}
return;
}
/**
* @brief ADC1 interrupt routine.
* @par Parameters:
* None
* @retval void None
* @par Required preconditions:
* None
* @par Called functions:
* None
*/
@near @interrupt void ADC1_IRQHandler (void)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
return;
}
/**
* @brief ADC2 interrupt routine.
* @par Parameters:
* None
* @retval void None
* @par Required preconditions:
* None
* @par Called functions:
* None
*/
@near @interrupt void ADC2_IRQHandler (void)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
return;
}
/**
* @brief Timer4 Update/Overflow interrupt routine.
* @par Parameters:
* None
* @retval void None
* @par Required preconditions:
* None
* @par Called functions:
* None
*/
@near @interrupt void TIM4_UPD_OVF_IRQHandler (void)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
return;
}
/**
* @brief Eeprom EEC interrupt routine.
* @par Parameters:
* None
* @retval void None
* @par Required preconditions:
* None
* @par Called functions:
* None
*/
@near @interrupt void EEPROM_EEC_IRQHandler (void)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
return;
}
/**
* @}
*/
/******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -