Fork for fixes

Committer:
hudakz
Date:
Fri Jun 30 19:51:28 2017 +0000
Revision:
8:4acb22344932
Parent:
4:d774541a34da
Child:
15:53715cc81c63
'UIPEthernet' renamed to 'uIPEthernet'; 'UIPEthernetClass' renamed to 'UIPEthernet'; added IPAddress::toString() to support printing; added print support for debugging; bugs preventing offline build with GCC ARM toolchain fixed.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hudakz 3:5b17e4656dd0 1 #ifndef UTIL_H
hudakz 8:4acb22344932 2 #define UTIL_H
hudakz 3:5b17e4656dd0 3
hudakz 8:4acb22344932 4 #define htons(x) (u16_t) ((((u16_t) (x)) << 8) | (((u16_t) (x)) >> 8))
hudakz 8:4acb22344932 5 //#define ntohs(x) htons(x)
hudakz 8:4acb22344932 6 #define htonl(x) (((x) << 24 & 0xFF000000UL) | ((x) << 8 & 0x00FF0000UL) | ((x) >> 8 & 0x0000FF00UL) | ((x) >> 24 & 0x000000FFUL))
hudakz 8:4acb22344932 7 #define ntohl(x) htonl(x)
hudakz 3:5b17e4656dd0 8 #endif