targets/plc_main_tail.c
changeset 1800 1711339585ce
parent 1479 8f41aa88aa46
equal deleted inserted replaced
1799:9fd7bbf6ec45 1800:1711339585ce
     3  **/
     3  **/
     4 
     4 
     5 /** 
     5 /** 
     6  * LOGGING
     6  * LOGGING
     7  **/
     7  **/
       
     8 #ifndef TARGET_LOGGING_DISABLE
     8 
     9 
     9 #ifndef LOG_BUFFER_SIZE
    10 #ifndef LOG_BUFFER_SIZE
    10 #define LOG_BUFFER_SIZE (1<<14) /*16Ko*/
    11 #define LOG_BUFFER_SIZE (1<<14) /*16Ko*/
    11 #endif
    12 #endif
    12 #ifndef LOG_BUFFER_ATTRS
    13 #ifndef LOG_BUFFER_ATTRS
   131             return totalsize;
   132             return totalsize;
   132         }
   133         }
   133     }
   134     }
   134     return 0;
   135     return 0;
   135 }
   136 }
       
   137 
       
   138 #endif
       
   139 
       
   140 #ifndef TARGET_EXT_SYNC_DISABLE
   136 
   141 
   137 #define CALIBRATED -2
   142 #define CALIBRATED -2
   138 #define NOT_CALIBRATED -1
   143 #define NOT_CALIBRATED -1
   139 static int calibration_count = NOT_CALIBRATED;
   144 static int calibration_count = NOT_CALIBRATED;
   140 static IEC_TIME cal_begin;
   145 static IEC_TIME cal_begin;
   217 			/* DO ALIGNEMENT */
   222 			/* DO ALIGNEMENT */
   218 			PLC_SetTimer(Tcorr - elapsed, PeriodicTcorr);
   223 			PLC_SetTimer(Tcorr - elapsed, PeriodicTcorr);
   219 		}
   224 		}
   220 	}
   225 	}
   221 }
   226 }
       
   227 
       
   228 #endif