#define cVotingSamples 5 /**< Numbers of samples in the voting window used for majority voting of the RxD input. */
#define cVotingDelay (cVotingSamples-1)/2 /**< Number of samples of delay between the RxD input and the majority voted output in the glitch-free case. */
+#define FR_MAX_SYNC_FRAME_LIST_SIZE 15
+
/* Flags for indicating error during parameters check */
#define ERR_PARAM_NO_ERROR 0
/* Global parameters errors */
}
#endif
- if (Fr_ListSize > 15) { // Limit list size to 15
- Fr_ListSize = 15;
+ if (Fr_ListSize > FR_MAX_SYNC_FRAME_LIST_SIZE) { // Limit list size to 15
+ Fr_ListSize = FR_MAX_SYNC_FRAME_LIST_SIZE;
}
for (i = 0; i < Fr_ListSize; i++) {