]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - util.h
PS/2: request to resend when error is occured.
[max/tmk_keyboard.git] / util.h
diff --git a/util.h b/util.h
index 256bda020ce7da15cc1f45df908e13d51a6d646b..2b607ad284423bbf98e40c83db9c392a1c268b96 100644 (file)
--- a/util.h
+++ b/util.h
@@ -1,7 +1,17 @@
 #ifndef UTIL_H
 #define UTIL_H 1
 
-#define XSTR(s) STR(s)
-#define STR(s) #s
+#include <stdint.h>
+
+// convert to L string
+#define LSTR(s) XLSTR(s)
+#define XLSTR(s) L ## #s
+// convert to string
+#define STR(s) XSTR(s)
+#define XSTR(s) #s
+
+
+int bitpop(uint8_t bits);
+int biton(uint8_t bits);
 
 #endif