forked from mirrors/qmk_userspace
Improve PS/2 mouse performance (#17111)
This commit is contained in:
parent
d44a950c10
commit
ecce9900c9
4 changed files with 22 additions and 6 deletions
|
@ -66,8 +66,8 @@ uint8_t ps2_error = PS2_ERR_NONE;
|
|||
|
||||
static inline uint8_t pbuf_dequeue(void);
|
||||
static inline void pbuf_enqueue(uint8_t data);
|
||||
static inline bool pbuf_has_data(void);
|
||||
static inline void pbuf_clear(void);
|
||||
bool pbuf_has_data(void);
|
||||
|
||||
#if defined(PROTOCOL_CHIBIOS)
|
||||
void ps2_interrupt_service_routine(void);
|
||||
|
@ -309,7 +309,7 @@ static inline uint8_t pbuf_dequeue(void) {
|
|||
|
||||
return val;
|
||||
}
|
||||
static inline bool pbuf_has_data(void) {
|
||||
bool pbuf_has_data(void) {
|
||||
#if defined(__AVR__)
|
||||
uint8_t sreg = SREG;
|
||||
cli();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue