Project Embedded Systems E-ict Denayer
Dependencies: BSP_DISCO_F746NG F7_Ethernet LCD_DISCO_F746NG TS_DISCO_F746NG mbed-rtos mbed
Diff: main.h
- Revision:
- 0:16bcf70d262e
- Child:
- 1:a2f7adf6db3d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.h Sat Jan 21 23:05:11 2017 +0000 @@ -0,0 +1,38 @@ +#ifndef MAIN_H +#define MAIN_H + +#include "mbed.h" + +#include "stdint.h" + +#include "rtos.h" +#include "EthernetInterface.h" +#include "Socket/TCPSocketConnection.h" +#include "TS_DISCO_F746NG.h" +#include "LCD_DISCO_F746NG.h" +#include "ping.h" + +EthernetInterface Eth; +LCD_DISCO_F746NG display; +TS_DISCO_F746NG Touch; +TCPSocketConnection myTCP; + +uint32_t ul_ResetDisplay(); +uint32_t ul_CheckDHCP( struct Network DynNetwork ); +uint32_t ul_CheckInternet(); +uint32_t ul_CreateMenu(); +uint32_t ul_ShowDynamicMenu( struct Network DynNetwork ); +uint32_t ul_ShowStaticMenu( ); + +struct Network +{ + char c_Netmask[16]; + char c_Gateway[16]; + char c_IPAddress[16]; + char c_MACAddress[16]; +}; + +static bool b_Dynamic = true; + + +#endif \ No newline at end of file