Changeset cddd151 in mainline for uspace/drv/bus/usb/usbhid/kbd/kbdrepeat.c
- Timestamp:
- 2011-10-14T14:37:32Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7b54b99
- Parents:
- e5024111
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/kbd/kbdrepeat.c
re5024111 rcddd151 85 85 } 86 86 87 fibril_mutex_lock( kbd->repeat_mtx);87 fibril_mutex_lock(&kbd->repeat_mtx); 88 88 89 89 if (kbd->repeat.key_new > 0) { … … 109 109 delay = CHECK_DELAY; 110 110 } 111 fibril_mutex_unlock( kbd->repeat_mtx);111 fibril_mutex_unlock(&kbd->repeat_mtx); 112 112 113 113 async_usleep(delay); … … 156 156 void usb_kbd_repeat_start(usb_kbd_t *kbd, unsigned int key) 157 157 { 158 fibril_mutex_lock( kbd->repeat_mtx);158 fibril_mutex_lock(&kbd->repeat_mtx); 159 159 kbd->repeat.key_new = key; 160 fibril_mutex_unlock( kbd->repeat_mtx);160 fibril_mutex_unlock(&kbd->repeat_mtx); 161 161 } 162 162 … … 174 174 void usb_kbd_repeat_stop(usb_kbd_t *kbd, unsigned int key) 175 175 { 176 fibril_mutex_lock( kbd->repeat_mtx);176 fibril_mutex_lock(&kbd->repeat_mtx); 177 177 if (key == kbd->repeat.key_new) { 178 178 kbd->repeat.key_new = 0; 179 179 } 180 fibril_mutex_unlock( kbd->repeat_mtx);180 fibril_mutex_unlock(&kbd->repeat_mtx); 181 181 } 182 182
Note:
See TracChangeset
for help on using the changeset viewer.