58 #if TIME_MEASUREMENT == _ENABLE_
75 #if APP_LOG_LED_INDICATION == _ENABLE_
78 #endif // APP_LOG_LED_INDICATION
84 #if APP_LOG_TEMP_AND_HUM_SENSORS == _ENABLE_
91 #endif // APP_LOG_TEMP_AND_HUM_SENSORS
94 #if APP_LOG_LIGHT_SENSORS == _ENABLE_
101 #endif // APP_LOG_LIGHT_SENSORS
105 unsigned long long ullPreviousTimeTick = 0;
106 unsigned long long ullCurrentTimeTick = 0;
117 #if (APP_LOG_TEMP_AND_HUM_SENSORS == _ENABLE_) || (APP_LOG_LIGHT_SENSORS == _ENABLE_)
140 #if TIME_MEASUREMENT == _ENABLE_
149 FS_Write(&fileObject, &uniCLEONHeader,
sizeof(uniCLEONHeader), &
bw);
161 #if TIME_MEASUREMENT == _ENABLE_
169 ullPreviousTimeTick = ullCurrentTimeTick;
174 if(((ullPreviousTimeTick/10000) +
ulChunkGap) <= (ullCurrentTimeTick/10000)){
175 ullPreviousTimeTick = ullCurrentTimeTick;
191 FS_Write(&fileObject, &uniCLEONGPSData,
sizeof(uniCLEONGPSData), &
bw);
201 #if (APP_LOG_TEMP_AND_HUM_SENSORS == _ENABLE_) || (APP_LOG_LIGHT_SENSORS == _ENABLE_)
205 FS_Write(&fileObject, &uniCLEONSensorData,
sizeof(uniCLEONSensorData), &
bw);
229 #if APP_LOG_LED_INDICATION == _ENABLE_
232 #endif // APP_LOG_LED_INDICATION
236 #if TIME_MEASUREMENT == _ENABLE_
247 printf(
"Sample %d\n", i);
248 printf(
"%lld ms\n", (stTimeMeasurement[i].ullTimeAtStartAPPLog - stTimeMeasurement[i].ullTimeAtUserButtonPressed) / 10000);
249 printf(
"%lld ms\n", (stTimeMeasurement[i].ullTimeAtWriteHeaderToSDCard - stTimeMeasurement[i].ullTimeAtStartAPPLog) / 10000);
250 printf(
"%lld ms\n\n", (stTimeMeasurement[i].ullTimeAtFirstChunk - stTimeMeasurement[i].ullTimeAtWriteHeaderToSDCard) / 10000);