lwip operating system abstraction layer implementation based on CMSIS-RTOS
Dependents: LwIPNetworking NetServicesMin EthernetInterface EthernetInterface_RSF ... more
Revision 3:e640ea98ada0, committed 2012-07-03
- Comitter:
- donatien
- Date:
- Tue Jul 03 13:43:17 2012 +0000
- Parent:
- 2:75ce99217072
- Child:
- 4:dd37867293e7
- Commit message:
- Put reverse helper macro in cc.h
Changed in this revision
| arch/cc.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/arch/cc.h Fri Jun 22 15:16:26 2012 +0000
+++ b/arch/cc.h Tue Jul 03 13:43:17 2012 +0000
@@ -86,7 +86,7 @@
/* Used with IP headers only */
#define LWIP_CHKSUM_ALGORITHM 1
-#ifdef LWIP_DEBUG
+#if LWIP_DEBUG
#include "stdio.h"
@@ -100,4 +100,8 @@
#define LWIP_PLATFORM_ASSERT(flag) { while (1); }
#endif
+#include "cmsis.h"
+#define LWIP_PLATFORM_HTONS(x) __REV16(x)
+#define LWIP_PLATFORM_HTONL(x) __REV(x)
+
#endif /* __CC_H__ */
mbed official


