+freertos

но надо еще коменты подправить
This commit is contained in:
2025-08-31 13:24:11 +03:00
parent 1c4f4d689a
commit ef623e8b0b
5 changed files with 126 additions and 67 deletions

View File

@@ -1,9 +1,13 @@
#include "rs_message.h"
#include "FreeRTOS.h"
void setup() {
// put your setup code here, to run once:
MODBUS_FirstInit();
//hmodbus1.RS_STATUS = RS_Init(&hmodbus1, &rs_huart, MB_SPEED, 0);
xTaskCreatePinnedToCore(RS_Task, "Modbus", 4096, &hmodbus1, 2, NULL, 1);
Serial.begin(115200); // для отладки
Serial.println("start");
@@ -11,9 +15,5 @@ void setup() {
}
void loop() {
// put your main code here, to run repeatedly:
RS_Process(&hmodbus1);
//delay(500);
//Serial.println("start");
//rs_huart.println("start1");
}
//RS_Process(&hmodbus1);
}