Rev 1875 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1875 | Rev 1896 | ||
---|---|---|---|
Line 51... | Line 51... | ||
51 | #define PRESSED_CAPSLOCK (1<<1) |
51 | #define PRESSED_CAPSLOCK (1<<1) |
52 | #define LOCKED_CAPSLOCK (1<<0) |
52 | #define LOCKED_CAPSLOCK (1<<0) |
53 | 53 | ||
54 | #define ACTIVE_READ_BUFF_SIZE 16 /* Must be power of 2 */ |
54 | #define ACTIVE_READ_BUFF_SIZE 16 /* Must be power of 2 */ |
55 | 55 | ||
- | 56 | chardev_t kbrd; |
|
- | 57 | ||
56 | static uint8_t active_read_buff[ACTIVE_READ_BUFF_SIZE]; |
58 | static uint8_t active_read_buff[ACTIVE_READ_BUFF_SIZE]; |
57 | 59 | ||
58 | SPINLOCK_INITIALIZE(keylock); /**< keylock protects keyflags and lockflags. */ |
60 | SPINLOCK_INITIALIZE(keylock); /**< keylock protects keyflags and lockflags. */ |
59 | static volatile int keyflags; /**< Tracking of multiple keypresses. */ |
61 | static volatile int keyflags; /**< Tracking of multiple keypresses. */ |
60 | static volatile int lockflags; /**< Tracking of multiple keys lockings. */ |
62 | static volatile int lockflags; /**< Tracking of multiple keys lockings. */ |