__main_loop_top.h 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //ARDUINO_FUNCT_INIT_RESULT_T ARDUINO_FUNCT_INIT_RESULT_Slave_Ports_queue__add ;
  2. if(ARDUINO_LOOP_LATENCY_COUNTER__MAIN_A <= ARDUINO_LOOP_LATENCY_COUNTER_INIT ) {
  3. if(ARDUINO_FUNCT_INIT_RESULT__Slave_Ports_LOCAL_init == true ){
  4. #ifdef DEBUG
  5. Serial.println(" ");
  6. Serial.print("#331__BBB main loop top bypassed ARDUINO_FUNCT_INIT_RESULT__Slave_Ports_LOCAL_init ");
  7. Serial.print(ARDUINO_FUNCT_INIT_RESULT__Slave_Ports_LOCAL_init);
  8. Serial.println("]");
  9. #endif
  10. } else {
  11. #ifdef DEBUG
  12. Serial.print("#331___ccc main loop top ARDUINO_FUNCT_INIT_RESULT__Slave_Ports_LOCAL_init=[");
  13. Serial.print(ARDUINO_FUNCT_INIT_RESULT__Slave_Ports_LOCAL_init);
  14. Serial.println("]");
  15. #endif
  16. ARDUINO_FUNCT_INIT_RESULT__Slave_Ports_LOCAL_init =
  17. _Slave_Ports_LOCAL_init(
  18. Slave_Ports_Status_A ,
  19. Slave_Ports_Status_T_ARDUINO_ATTR_ARRAY_A,
  20. Slave_Ports_Status_T_ARDUINO_ARRAY_INDEX_TABLE_A,
  21. Slave_Ports_Status_T_ARDUINO_ARRAY_INDEX_T_TO_DELETE_A,
  22. Slave_Ports_Status_T_ARDUINO_ARRAY_ASSOC_TABLE_S_Port_ID_A,
  23. DISPLAY_A , DISPLAY_T_ARDUINO_ATTR_ARRAY_A
  24. //, DISPLAY_PHYSICAL_CHAR_A
  25. );
  26. #ifdef DEBUG
  27. Serial.print("#331_AAA main loop top ARDUINO_FUNCT_INIT_RESULT__Slave_Ports_LOCAL_init ");
  28. Serial.println(ARDUINO_FUNCT_INIT_RESULT__Slave_Ports_LOCAL_init);
  29. #endif
  30. }
  31. if(ARDUINO_FUNCT_INIT_RESULT_Slave_Ports_queue__add == true) {
  32. #if defined(DEBUG)
  33. Serial.println(" ");
  34. Serial.print("#75 main loop top bypassed ARDUINO_FUNCT_INIT_RESULT_Slave_Ports_queue__add=[");
  35. Serial.print(ARDUINO_FUNCT_INIT_RESULT_Slave_Ports_queue__add);
  36. Serial.println("]");
  37. #endif
  38. } else {
  39. #if defined(DEBUG)
  40. Serial.println(" ");
  41. Serial.print("#777 main loop top ARDUINO_FUNCT_INIT_RESULT_Slave_Ports_queue__add=[");
  42. Serial.print(ARDUINO_FUNCT_INIT_RESULT_Slave_Ports_queue__add);
  43. Serial.println("]");
  44. #endif
  45. ARDUINO_FUNCT_INIT_RESULT_Slave_Ports_queue__add = _Slave_Ports_queue__add( Slave_Ports_Status_QUEUE_A, TASK_TYPE_T_Slave_Ports_broadcast____ ,TASK_PORT_ASSOC_EMPTY ,millis(), millis() + ARDUINO_time_seq_id_A_INCREMENT , ARDUINO_ARRAY_INDEX_NOT_SET ) ; // "_Slave_Ports_broadcast", //4
  46. ARDUINO_FUNCT_INIT_RESULT_Slave_Ports_queue__add = _Slave_Ports_queue__add( Slave_Ports_Status_QUEUE_A, TASK_TYPE_T_Slave_Ports_set_I2C______ ,TASK_PORT_ASSOC_EMPTY ,millis(), millis() + ARDUINO_time_seq_id_A_INCREMENT , ARDUINO_ARRAY_INDEX_NOT_SET) ; //"_Slave_Ports_set_I2C" //5 - to set ports associated on PW
  47. //ARDUINO_FUNCT_INIT_RESULT_Slave_Ports_queue__add = _Slave_Ports_queue__add( Slave_Ports_Status_QUEUE_A, TASK_TYPE_T_DISPLAY_queue_pop________ ,TASK_PORT_ASSOC_EMPTY ,millis(), millis() + ARDUINO_time_seq_id_A_INCREMENT , ) ; //"_Slave_Ports_set_I2C" //5 - to set ports associated on PW
  48. }
  49. }
  50. if(ARDUINO_LOOP_LATENCY_COUNTER__MAIN_A <= ARDUINO_LOOP_LATENCY_COUNTER_INIT ) {
  51. Serial.print("#66 ARDUINO_LOOP_LATENCY_COUNTER__MAIN_A"); Serial.print(ARDUINO_LOOP_LATENCY_COUNTER__MAIN_A); Serial.println("] ");
  52. ARDUINO_LOOP_LATENCY_COUNTER__MAIN_A = ARDUINO_LOOP_LATENCY__MAIN_A ;
  53. } else {
  54. ARDUINO_LOOP_LATENCY_COUNTER__MAIN_A -- ;
  55. }