#ifndef TASK01_DELAY_STATE_MODEL_H #define TASK01_DELAY_STATE_MODEL_H #include #include static inline int fc04_periods_are_exact( const uint32_t * ticks, size_t count, uint32_t period ) { size_t index; if( ticks == NULL || count < 2U ) { return 0; } for( index = 1U; index < count; ++index ) { if( ticks[ index ] - ticks[ index - 1U ] != period ) { return 0; } } return 1; } #endif