Project Embedded Systems E-ict Denayer

Dependencies:   BSP_DISCO_F746NG F7_Ethernet LCD_DISCO_F746NG TS_DISCO_F746NG mbed-rtos mbed

Revision:
3:7aef6c427f97
Parent:
2:1a5565ee8219
Child:
4:860566e5814e
--- a/main.h	Thu Jan 26 10:40:35 2017 +0000
+++ b/main.h	Mon Jul 17 01:00:39 2017 +0000
@@ -7,11 +7,29 @@
 
 #include "rtos.h"
 #include "EthernetInterface.h"
-#include "Socket/TCPSocketConnection.h"
+
 #include "TS_DISCO_F746NG.h"
 #include "LCD_DISCO_F746NG.h"
 
-#include "ping.h"
+
+
+#ifndef NTP_SERVER_ADDRESS                                  
+#define NTP_SERVER_ADDRESS          "1.be.pool.ntp.org"
+#endif
+
+#ifndef NTP_SERVER_ADDRESS_IP
+#define NTP_SERVER_ADDRESS_IP       "185.77.199.1"
+#endif
+
+#ifndef NTP_SERVER_PORT                                  
+#define NTP_SERVER_PORT             123                     
+#endif
+
+
+#ifndef NTP_PACKET_SIZE
+#define NTP_PACKET_SIZE     48
+#endif
+
 
 /*-----------------------------------------------------------*/
 
@@ -27,7 +45,9 @@
 EthernetInterface Eth;
 LCD_DISCO_F746NG display;
 TS_DISCO_F746NG Touch;
-TCPSocketConnection myTCP;
+
+
+
 
 MemoryPool<Network, 64> mpool;
 Queue<Network, 64> queue;
@@ -35,13 +55,10 @@
 
 /*-----------------------------------------------------------*/
 
-uint32_t ul_ResetDisplay( void );
-uint32_t ul_CheckDHCP( void );
-uint32_t ul_CheckInternet( void );
-uint32_t ul_CreateMenu( void );
-uint32_t ul_ShowSettings( void );
-uint32_t ul_ShowDevices( void );
-void v_TouchThread( void const *args );
+int32_t l_ResetDisplay( void );
+int32_t l_CreateMenu( void );
+int32_t l_ShowSettings( void );
+int32_t l_sendNTPpacket(void);
 
 /*-----------------------------------------------------------*/