уменьшил размер максимального сообщения модбас до 27 элементов и вроде помещается... но надо проверить с структурой данных модбас под эти датчики

This commit is contained in:
2025-03-03 13:09:20 +03:00
parent b6978c385a
commit 884f1fc3f1
4 changed files with 20 additions and 89 deletions

View File

@@ -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. */