Skip to content

Commit 1291aaa

Browse files
committed
Ethernet, SD and LiquidCrystal to the new library format
1 parent 040f99f commit 1291aaa

38 files changed

+5847
-0
lines changed

arch/avr/util.h

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#ifndef UTIL_H
2+
#define UTIL_H
3+
4+
#define htons(x) ( ((x)<<8) | (((x)>>8)&0xFF) )
5+
#define ntohs(x) htons(x)
6+
7+
#define htonl(x) ( ((x)<<24 & 0xFF000000UL) | \
8+
((x)<< 8 & 0x00FF0000UL) | \
9+
((x)>> 8 & 0x0000FF00UL) | \
10+
((x)>>24 & 0x000000FFUL) )
11+
#define ntohl(x) htonl(x)
12+
13+
#endif

0 commit comments

Comments
 (0)