]> git.gir.st - tmk_keyboard.git/blob - util.h
Synchronous USART support for PS/2 on V-USB stack
[tmk_keyboard.git] / util.h
1 #ifndef UTIL_H
2 #define UTIL_H 1
3
4 #include <stdint.h>
5
6 // convert to L string
7 #define LSTR(s) XLSTR(s)
8 #define XLSTR(s) L ## #s
9 // convert to string
10 #define STR(s) XSTR(s)
11 #define XSTR(s) #s
12
13
14 int bitpop(uint8_t bits);
15 int biton(uint8_t bits);
16
17 #endif
Imprint / Impressum