Project Embedded Systems E-ict Denayer
Dependencies: BSP_DISCO_F746NG F7_Ethernet LCD_DISCO_F746NG TS_DISCO_F746NG mbed-rtos mbed
main.h@1:a2f7adf6db3d, 2017-01-24 (annotated)
- Committer:
- Ayrton_L
- Date:
- Tue Jan 24 00:23:30 2017 +0000
- Revision:
- 1:a2f7adf6db3d
- Parent:
- 0:16bcf70d262e
- Child:
- 2:1a5565ee8219
Latest stable
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 | 1:a2f7adf6db3d | 13 | |
Ayrton_L | 0:16bcf70d262e | 14 | #include "ping.h" |
Ayrton_L | 0:16bcf70d262e | 15 | |
Ayrton_L | 1:a2f7adf6db3d | 16 | /*-----------------------------------------------------------*/ |
Ayrton_L | 0:16bcf70d262e | 17 | |
Ayrton_L | 0:16bcf70d262e | 18 | struct Network |
Ayrton_L | 0:16bcf70d262e | 19 | { |
Ayrton_L | 0:16bcf70d262e | 20 | char c_Netmask[16]; |
Ayrton_L | 0:16bcf70d262e | 21 | char c_Gateway[16]; |
Ayrton_L | 0:16bcf70d262e | 22 | char c_IPAddress[16]; |
Ayrton_L | 0:16bcf70d262e | 23 | char c_MACAddress[16]; |
Ayrton_L | 0:16bcf70d262e | 24 | }; |
Ayrton_L | 0:16bcf70d262e | 25 | |
Ayrton_L | 1:a2f7adf6db3d | 26 | |
Ayrton_L | 1:a2f7adf6db3d | 27 | EthernetInterface Eth; |
Ayrton_L | 1:a2f7adf6db3d | 28 | LCD_DISCO_F746NG display; |
Ayrton_L | 1:a2f7adf6db3d | 29 | TS_DISCO_F746NG Touch; |
Ayrton_L | 1:a2f7adf6db3d | 30 | TCPSocketConnection myTCP; |
Ayrton_L | 1:a2f7adf6db3d | 31 | |
Ayrton_L | 1:a2f7adf6db3d | 32 | MemoryPool<Network, 16> mpool; |
Ayrton_L | 1:a2f7adf6db3d | 33 | Queue<Network, 16> queue; |
Ayrton_L | 0:16bcf70d262e | 34 | |
Ayrton_L | 0:16bcf70d262e | 35 | |
Ayrton_L | 1:a2f7adf6db3d | 36 | /*-----------------------------------------------------------*/ |
Ayrton_L | 1:a2f7adf6db3d | 37 | |
Ayrton_L | 1:a2f7adf6db3d | 38 | uint32_t ul_ResetDisplay( void ); |
Ayrton_L | 1:a2f7adf6db3d | 39 | uint32_t ul_CheckDHCP( void ); |
Ayrton_L | 1:a2f7adf6db3d | 40 | uint32_t ul_CheckInternet( void ); |
Ayrton_L | 1:a2f7adf6db3d | 41 | uint32_t ul_CreateMenu( void ); |
Ayrton_L | 1:a2f7adf6db3d | 42 | uint32_t ul_ShowSettings( void ); |
Ayrton_L | 1:a2f7adf6db3d | 43 | uint32_t ul_ShowDevices( void ); |
Ayrton_L | 1:a2f7adf6db3d | 44 | void v_TouchThread( void const *args ); |
Ayrton_L | 1:a2f7adf6db3d | 45 | |
Ayrton_L | 1:a2f7adf6db3d | 46 | /*-----------------------------------------------------------*/ |
Ayrton_L | 1:a2f7adf6db3d | 47 | |
Ayrton_L | 0:16bcf70d262e | 48 | #endif |