уменьшил размер максимального сообщения модбас до 27 элементов и вроде помещается... но надо проверить с структурой данных модбас под эти датчики
This commit is contained in:
@@ -75,23 +75,23 @@ void SysTick_Handler(void)
|
||||
HAL_IncTick();
|
||||
}
|
||||
|
||||
//#include "rs_message.h"
|
||||
///**
|
||||
// * @brief This function handles USART1.
|
||||
// */
|
||||
//void USART1_IRQHandler(void)
|
||||
//{
|
||||
// RS_UART_Handler(&hmodbus1);
|
||||
//}
|
||||
#include "rs_message.h"
|
||||
/**
|
||||
* @brief This function handles USART1.
|
||||
*/
|
||||
void USART1_IRQHandler(void)
|
||||
{
|
||||
RS_UART_Handler(&hmodbus1);
|
||||
}
|
||||
|
||||
///**
|
||||
// * @brief This function handles TIM2 global interrupt.
|
||||
// */
|
||||
//void TIM14_IRQHandler(void)
|
||||
//{
|
||||
// /* USER CODE BEGIN TIM2_IRQn 0 */
|
||||
// RS_TIM_Handler(&hmodbus1);
|
||||
//}
|
||||
/**
|
||||
* @brief This function handles TIM2 global interrupt.
|
||||
*/
|
||||
void TIM14_IRQHandler(void)
|
||||
{
|
||||
/* USER CODE BEGIN TIM2_IRQn 0 */
|
||||
RS_TIM_Handler(&hmodbus1);
|
||||
}
|
||||
/******************************************************************************/
|
||||
/* PY32F002B Peripheral Interrupt Handlers */
|
||||
/* Add here the Interrupt Handlers for the used peripherals. */
|
||||
|
||||
Reference in New Issue
Block a user