Project Embedded Systems E-ict Denayer
Dependencies: BSP_DISCO_F746NG F7_Ethernet LCD_DISCO_F746NG TS_DISCO_F746NG mbed-rtos mbed
main.h@0:16bcf70d262e, 2017-01-21 (annotated)
- Committer:
- Ayrton_L
- Date:
- Sat Jan 21 23:05:11 2017 +0000
- Revision:
- 0:16bcf70d262e
- Child:
- 1:a2f7adf6db3d
First up
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Ayrton_L | 0:16bcf70d262e | 1 | #ifndef MAIN_H |
Ayrton_L | 0:16bcf70d262e | 2 | #define MAIN_H |
Ayrton_L | 0:16bcf70d262e | 3 | |
Ayrton_L | 0:16bcf70d262e | 4 | #include "mbed.h" |
Ayrton_L | 0:16bcf70d262e | 5 | |
Ayrton_L | 0:16bcf70d262e | 6 | #include "stdint.h" |
Ayrton_L | 0:16bcf70d262e | 7 | |
Ayrton_L | 0:16bcf70d262e | 8 | #include "rtos.h" |
Ayrton_L | 0:16bcf70d262e | 9 | #include "EthernetInterface.h" |
Ayrton_L | 0:16bcf70d262e | 10 | #include "Socket/TCPSocketConnection.h" |
Ayrton_L | 0:16bcf70d262e | 11 | #include "TS_DISCO_F746NG.h" |
Ayrton_L | 0:16bcf70d262e | 12 | #include "LCD_DISCO_F746NG.h" |
Ayrton_L | 0:16bcf70d262e | 13 | #include "ping.h" |
Ayrton_L | 0:16bcf70d262e | 14 | |
Ayrton_L | 0:16bcf70d262e | 15 | EthernetInterface Eth; |
Ayrton_L | 0:16bcf70d262e | 16 | LCD_DISCO_F746NG display; |
Ayrton_L | 0:16bcf70d262e | 17 | TS_DISCO_F746NG Touch; |
Ayrton_L | 0:16bcf70d262e | 18 | TCPSocketConnection myTCP; |
Ayrton_L | 0:16bcf70d262e | 19 | |
Ayrton_L | 0:16bcf70d262e | 20 | uint32_t ul_ResetDisplay(); |
Ayrton_L | 0:16bcf70d262e | 21 | uint32_t ul_CheckDHCP( struct Network DynNetwork ); |
Ayrton_L | 0:16bcf70d262e | 22 | uint32_t ul_CheckInternet(); |
Ayrton_L | 0:16bcf70d262e | 23 | uint32_t ul_CreateMenu(); |
Ayrton_L | 0:16bcf70d262e | 24 | uint32_t ul_ShowDynamicMenu( struct Network DynNetwork ); |
Ayrton_L | 0:16bcf70d262e | 25 | uint32_t ul_ShowStaticMenu( ); |
Ayrton_L | 0:16bcf70d262e | 26 | |
Ayrton_L | 0:16bcf70d262e | 27 | struct Network |
Ayrton_L | 0:16bcf70d262e | 28 | { |
Ayrton_L | 0:16bcf70d262e | 29 | char c_Netmask[16]; |
Ayrton_L | 0:16bcf70d262e | 30 | char c_Gateway[16]; |
Ayrton_L | 0:16bcf70d262e | 31 | char c_IPAddress[16]; |
Ayrton_L | 0:16bcf70d262e | 32 | char c_MACAddress[16]; |
Ayrton_L | 0:16bcf70d262e | 33 | }; |
Ayrton_L | 0:16bcf70d262e | 34 | |
Ayrton_L | 0:16bcf70d262e | 35 | static bool b_Dynamic = true; |
Ayrton_L | 0:16bcf70d262e | 36 | |
Ayrton_L | 0:16bcf70d262e | 37 | |
Ayrton_L | 0:16bcf70d262e | 38 | #endif |