Project Embedded Systems E-ict Denayer
Dependencies: BSP_DISCO_F746NG F7_Ethernet LCD_DISCO_F746NG TS_DISCO_F746NG mbed-rtos mbed
main.h@5:0518cef07365, 2017-08-17 (annotated)
- Committer:
- Ayrton_L
- Date:
- Thu Aug 17 14:36:34 2017 +0000
- Revision:
- 5:0518cef07365
- Parent:
- 4:860566e5814e
Final publish; Wrong branch was added last time
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 | 3:7aef6c427f97 | 10 | |
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 | 5:0518cef07365 | 14 | #include "ping.h" |
Ayrton_L | 3:7aef6c427f97 | 15 | |
Ayrton_L | 3:7aef6c427f97 | 16 | |
Ayrton_L | 3:7aef6c427f97 | 17 | #ifndef NTP_SERVER_ADDRESS |
Ayrton_L | 3:7aef6c427f97 | 18 | #define NTP_SERVER_ADDRESS "1.be.pool.ntp.org" |
Ayrton_L | 3:7aef6c427f97 | 19 | #endif |
Ayrton_L | 3:7aef6c427f97 | 20 | |
Ayrton_L | 3:7aef6c427f97 | 21 | #ifndef NTP_SERVER_ADDRESS_IP |
Ayrton_L | 3:7aef6c427f97 | 22 | #define NTP_SERVER_ADDRESS_IP "185.77.199.1" |
Ayrton_L | 3:7aef6c427f97 | 23 | #endif |
Ayrton_L | 3:7aef6c427f97 | 24 | |
Ayrton_L | 3:7aef6c427f97 | 25 | #ifndef NTP_SERVER_PORT |
Ayrton_L | 3:7aef6c427f97 | 26 | #define NTP_SERVER_PORT 123 |
Ayrton_L | 3:7aef6c427f97 | 27 | #endif |
Ayrton_L | 3:7aef6c427f97 | 28 | |
Ayrton_L | 3:7aef6c427f97 | 29 | |
Ayrton_L | 3:7aef6c427f97 | 30 | #ifndef NTP_PACKET_SIZE |
Ayrton_L | 3:7aef6c427f97 | 31 | #define NTP_PACKET_SIZE 48 |
Ayrton_L | 3:7aef6c427f97 | 32 | #endif |
Ayrton_L | 3:7aef6c427f97 | 33 | |
Ayrton_L | 0:16bcf70d262e | 34 | |
Ayrton_L | 1:a2f7adf6db3d | 35 | /*-----------------------------------------------------------*/ |
Ayrton_L | 0:16bcf70d262e | 36 | |
Ayrton_L | 0:16bcf70d262e | 37 | struct Network |
Ayrton_L | 0:16bcf70d262e | 38 | { |
Ayrton_L | 0:16bcf70d262e | 39 | char c_Netmask[16]; |
Ayrton_L | 0:16bcf70d262e | 40 | char c_Gateway[16]; |
Ayrton_L | 0:16bcf70d262e | 41 | char c_IPAddress[16]; |
Ayrton_L | 0:16bcf70d262e | 42 | char c_MACAddress[16]; |
Ayrton_L | 0:16bcf70d262e | 43 | }; |
Ayrton_L | 0:16bcf70d262e | 44 | |
Ayrton_L | 1:a2f7adf6db3d | 45 | |
Ayrton_L | 1:a2f7adf6db3d | 46 | EthernetInterface Eth; |
Ayrton_L | 1:a2f7adf6db3d | 47 | LCD_DISCO_F746NG display; |
Ayrton_L | 1:a2f7adf6db3d | 48 | TS_DISCO_F746NG Touch; |
Ayrton_L | 3:7aef6c427f97 | 49 | |
Ayrton_L | 3:7aef6c427f97 | 50 | |
Ayrton_L | 1:a2f7adf6db3d | 51 | /*-----------------------------------------------------------*/ |
Ayrton_L | 1:a2f7adf6db3d | 52 | |
Ayrton_L | 3:7aef6c427f97 | 53 | int32_t l_ResetDisplay( void ); |
Ayrton_L | 3:7aef6c427f97 | 54 | int32_t l_ShowSettings( void ); |
Ayrton_L | 3:7aef6c427f97 | 55 | int32_t l_sendNTPpacket(void); |
Ayrton_L | 1:a2f7adf6db3d | 56 | |
Ayrton_L | 1:a2f7adf6db3d | 57 | /*-----------------------------------------------------------*/ |
Ayrton_L | 1:a2f7adf6db3d | 58 | |
Ayrton_L | 0:16bcf70d262e | 59 | #endif |