|
|
@@ -75,12 +75,11 @@
|
|
|
* logic
|
|
|
*/
|
|
|
|
|
|
-
|
|
|
#include "Queue.h"
|
|
|
|
|
|
Queue<int> _Slave_Ports_queue = Queue<int>(10);
|
|
|
+#include "Slave_Ports_Status.h"
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
#define _ControllerID 0x101
|
|
|
@@ -176,10 +175,33 @@ MCP_CAN CAN0(CAN_CSpin); // Set CS to pin 10
|
|
|
|
|
|
|
|
|
#include "_PCINT.h"
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
void setup() {
|
|
|
- Serial.begin(115200);
|
|
|
+
|
|
|
+ Serial.begin(115200);
|
|
|
+ #include "_Slave_Ports_LOCAL_LIST.h"
|
|
|
+ Slave_Ports_Status_T _add[] = { 1, Active_ControllerID, 0x01, 0x00, 1, 0x01, 0x01, 0x01 };
|
|
|
+
|
|
|
+
|
|
|
+ Slave_Ports_Status_C.list_ports();
|
|
|
+
|
|
|
+//Slave_Ports_Status_C.add_empty();
|
|
|
+ delay(10000);
|
|
|
+//Queue<int> _Slave_Ports_queue = Queue<int>(10);
|
|
|
+// LiquidCrystal lcd(LCD1602rs, LCD1602en, LCD1602db4, LCD1602db5, LCD1602db6, LCD1602db7);
|
|
|
+
|
|
|
+
|
|
|
+ //Slave_Ports_Status_T
|
|
|
+//struct Slave_Ports_Status_S _add;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
// _LCD_print_queue.push(1);
|
|
|
// _LCD_print_queue.push(2);
|
|
|
// _LCD_print_queue.push(3);
|
|
|
@@ -349,6 +371,8 @@ void loop() {
|
|
|
|
|
|
#include "_PCINT_loop.h"
|
|
|
|
|
|
+
|
|
|
+
|
|
|
time = millis();
|
|
|
Serial.print("Time: " );
|
|
|
Serial.println(time);
|