-#define DEBUG_SOCKET_POLL 0x40000000 ///< Display the socket poll messages\r
-#define DEBUG_PORT_WORK 0x20000000 ///< Display the port work messages\r
-#define DEBUG_SERVER_TIMER 0x10000000 ///< Display the socket poll messages\r
-#define DEBUG_TFTP_PORT 0x08000000 ///< Display the TFTP port messages\r
-#define DEBUG_TFTP_REQUEST 0x04000000 ///< Display the TFTP request messages\r
-#define DEBUG_TX 0x02000000 ///< Display transmit messages\r
-#define DEBUG_RX 0x01000000 ///< Display receive messages\r
-#define DEBUG_TFTP_ACK 0x00800000 ///< Display the TFTP ACK messages\r
+#define ACK_SHIFT 4 ///< Number of samples in ACK average\r
+\r
+#define DEBUG_WINDOW 0x00000001 ///< Display the window messages\r
+#define DEBUG_TX_PACKET 0x00000002 ///< Display the transmit packet messages\r
+#define DEBUG_FILE_BUFFER 0x00000004 ///< Display the file buffer messages\r
+#define DEBUG_SERVER_TIMER 0x00000008 ///< Display the socket poll messages\r
+#define DEBUG_TFTP_REQUEST 0x00000010 ///< Display the TFTP request messages\r
+#define DEBUG_PORT_WORK 0x00000020 ///< Display the port work messages\r
+#define DEBUG_SOCKET_POLL 0x00000040 ///< Display the socket poll messages\r
+#define DEBUG_TFTP_PORT 0x00000080 ///< Display the TFTP port messages\r
+#define DEBUG_TX 0x00000100 ///< Display transmit messages\r
+#define DEBUG_RX 0x00000200 ///< Display receive messages\r
+#define DEBUG_TFTP_ACK 0x00000400 ///< Display the TFTP ACK messages\r
+#define DEBUG_ENTER_EXIT 0x00000800 ///< Display entry and exit messages\r
+\r
+#define MAX_PACKETS 8 ///< Maximum number of packets in the window\r