__main_loop_top.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. #ifndef DISABLE_LOOP
  5. #ifdef DEBUG
  6. Serial.println(" ");
  7. Serial.print("#331__BBB main loop top bypassed ARDUINO_FUNCT_INIT_RESULT__Slave_Ports_LOCAL_init ");
  8. Serial.print(ARDUINO_FUNCT_INIT_RESULT__Slave_Ports_LOCAL_init);
  9. Serial.println("]");
  10. #endif
  11. #endif
  12. } else {
  13. #ifdef DEBUG
  14. Serial.print("#331___ccc main loop top ARDUINO_FUNCT_INIT_RESULT__Slave_Ports_LOCAL_init=[");
  15. Serial.print(ARDUINO_FUNCT_INIT_RESULT__Slave_Ports_LOCAL_init);
  16. Serial.println("]");
  17. #endif
  18. ARDUINO_FUNCT_INIT_RESULT__Slave_Ports_LOCAL_init =
  19. _Slave_Ports_LOCAL_init(
  20. Slave_Ports_Status_A ,
  21. Slave_Ports_Status_T_ARDUINO_ATTR_ARRAY_A,
  22. Slave_Ports_Status_T_ARDUINO_ARRAY_INDEX_TABLE_A,
  23. Slave_Ports_Status_T_ARDUINO_ARRAY_INDEX_T_TO_DELETE_A,
  24. Slave_Ports_Status_T_ARDUINO_ARRAY_ASSOC_TABLE_S_Port_ID_A,
  25. DISPLAY_A , DISPLAY_T_ARDUINO_ATTR_ARRAY_A
  26. //, DISPLAY_PHYSICAL_CHAR_A
  27. );
  28. #ifdef DEBUG
  29. Serial.print("#331_AAA main loop top ARDUINO_FUNCT_INIT_RESULT__Slave_Ports_LOCAL_init ");
  30. Serial.println(ARDUINO_FUNCT_INIT_RESULT__Slave_Ports_LOCAL_init);
  31. #endif
  32. }
  33. if(ARDUINO_FUNCT_INIT_RESULT_Slave_Ports_queue__add == true) {
  34. #ifndef DISABLE_LOOP
  35. #if defined(DEBUG)
  36. Serial.println(" ");
  37. Serial.print("#75 main loop top bypassed ARDUINO_FUNCT_INIT_RESULT_Slave_Ports_queue__add=[");
  38. Serial.print(ARDUINO_FUNCT_INIT_RESULT_Slave_Ports_queue__add);
  39. Serial.println("]");
  40. #endif
  41. #endif
  42. } else {
  43. #if defined(DEBUG)
  44. Serial.println(" ");
  45. Serial.print("#777 main loop top ARDUINO_FUNCT_INIT_RESULT_Slave_Ports_queue__add=[");
  46. Serial.print(ARDUINO_FUNCT_INIT_RESULT_Slave_Ports_queue__add);
  47. Serial.println("]");
  48. #endif
  49. 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
  50. 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
  51. //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
  52. }
  53. }
  54. if(ARDUINO_LOOP_LATENCY_COUNTER__MAIN_A <= ARDUINO_LOOP_LATENCY_COUNTER_INIT ) {
  55. #ifndef DISABLE_LOOP
  56. Serial.print("#66 ARDUINO_LOOP_LATENCY_COUNTER__MAIN_A"); Serial.print(ARDUINO_LOOP_LATENCY_COUNTER__MAIN_A); Serial.println("] ");
  57. #endif
  58. ARDUINO_LOOP_LATENCY_COUNTER__MAIN_A = ARDUINO_LOOP_LATENCY__MAIN_A ;
  59. } else {
  60. ARDUINO_LOOP_LATENCY_COUNTER__MAIN_A -- ;
  61. }