Codec for an NRF24L01 based protocol

Files at this revision

API Documentation at this revision

Comitter:
ihunter
Date:
Tue Aug 30 21:20:23 2011 +0000
Parent:
2:4dd0a9382f0d
Commit message:

Changed in this revision

swtp_codec.h Show annotated file Show diff for this revision Revisions of this file
types.h Show annotated file Show diff for this revision Revisions of this file
diff -r 4dd0a9382f0d -r 80ed23c0ae01 swtp_codec.h
--- a/swtp_codec.h	Tue Aug 30 18:20:47 2011 +0000
+++ b/swtp_codec.h	Tue Aug 30 21:20:23 2011 +0000
@@ -1,15 +1,9 @@
 #ifndef SWTP_CODEC
 #define SWTP_CODEC
 
-#define SWTP_VERSION (0)
+#include "types.h"
 
-// I cant bear these '_t'
-typedef uint8_t  uint8;
-typedef uint16_t uint16;
-typedef uint32_t uint32;
-typedef int8_t   sint8;
-typedef int16_t  sint16;
-typedef int32_t  sint32;
+#define SWTP_VERSION (0)
 
 typedef struct  {
     uint16 mimeType;
diff -r 4dd0a9382f0d -r 80ed23c0ae01 types.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/types.h	Tue Aug 30 21:20:23 2011 +0000
@@ -0,0 +1,12 @@
+#ifndef TYPES_H
+#define TYPES_H
+
+// I cant bear these '_t'
+typedef uint8_t  uint8;
+typedef uint16_t uint16;
+typedef uint32_t uint32;
+typedef int8_t   sint8;
+typedef int16_t  sint16;
+typedef int32_t  sint32;
+
+#endif