Project Embedded Systems E-ict Denayer

Dependencies:   BSP_DISCO_F746NG F7_Ethernet LCD_DISCO_F746NG TS_DISCO_F746NG mbed-rtos mbed

Committer:
Ayrton_L
Date:
Thu Jan 26 10:40:35 2017 +0000
Revision:
2:1a5565ee8219
Parent:
1:a2f7adf6db3d
Child:
3:7aef6c427f97
presentatie

Who changed what in which revision?

UserRevisionLine numberNew 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 2:1a5565ee8219 32 MemoryPool<Network, 64> mpool;
Ayrton_L 2:1a5565ee8219 33 Queue<Network, 64> 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